fryers


Namefryers JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryA wrapper around fyers_apiv3 to make it easier to use
upload_time2024-01-12 09:44:50
maintainer
docs_urlNone
author
requires_python>=3.11
licenseMIT
keywords fyers fyers-api trading fyers_apiv3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![badge1](https://img.shields.io/badge/Fyers-Wrapper-blue)
![badge2](https://img.shields.io/badge/built%20for-python-orange?logo=python)
![badge3](https://img.shields.io/badge/fyers-v3-yello)


## Why Fryers?
> The reason i created this wrapper module for the `fyers_apiv3` module provided by the Fyers platform is because one has to make sure the access token is valid and if not generate new access token or use refresh_token, which added overhead to the scripts created using this module. But my wrapper takes care of all that.

> We Just have to provide my wrapper class `Fyers` with the `client_id`, `secret_key` and the `pin`. Once thats given, the login flow will be taken care of and we can enjoy the scripting without any hassel.


## How to Install
```terminal
pip install fryers
```

## Simple way to use
We can use this module for login flow and then use the native fyersModel instance to interact with the API.

Simple code to do this would be
```python
from fryers import Fyers

client_id = "xxxxx"
secret_key = "xxyyxyxy"
pin = "4783"

# Fyers logins automatically uses a saved token, if exists
# otherwise it re-initiates the login flow
# it outputs the returned URL which user has to visit
# and then copy the auth_code from there and paste it in the terminal
fyers = Fyers(client_id, secret_key, pin=pin)    # creates a file tokens.txt where tokens are stored

# grab the native instance and use native api
native_fyers = fyers.get_native_instance()

# we can use native api from (native_fyers) which is an instance of FyersModel
```

### NOTE
> This is current in development, i will be adding more features to make the api easy to use. I will also create a comprehensive documentation for this wrapper so that users dont have an issue using it.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "fryers",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "fyers,fyers-api,trading,fyers_apiv3",
    "author": "",
    "author_email": "shoaib wani <wanishoaib@protonmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/46/78/1a167b9f22d3ada459b0762033207390bd673ab26820353e5558eaf6c046/fryers-1.0.0.tar.gz",
    "platform": null,
    "description": "![badge1](https://img.shields.io/badge/Fyers-Wrapper-blue)\r\n![badge2](https://img.shields.io/badge/built%20for-python-orange?logo=python)\r\n![badge3](https://img.shields.io/badge/fyers-v3-yello)\r\n\r\n\r\n## Why Fryers?\r\n> The reason i created this wrapper module for the `fyers_apiv3` module provided by the Fyers platform is because one has to make sure the access token is valid and if not generate new access token or use refresh_token, which added overhead to the scripts created using this module. But my wrapper takes care of all that.\r\n\r\n> We Just have to provide my wrapper class `Fyers` with the `client_id`, `secret_key` and the `pin`. Once thats given, the login flow will be taken care of and we can enjoy the scripting without any hassel.\r\n\r\n\r\n## How to Install\r\n```terminal\r\npip install fryers\r\n```\r\n\r\n## Simple way to use\r\nWe can use this module for login flow and then use the native fyersModel instance to interact with the API.\r\n\r\nSimple code to do this would be\r\n```python\r\nfrom fryers import Fyers\r\n\r\nclient_id = \"xxxxx\"\r\nsecret_key = \"xxyyxyxy\"\r\npin = \"4783\"\r\n\r\n# Fyers logins automatically uses a saved token, if exists\r\n# otherwise it re-initiates the login flow\r\n# it outputs the returned URL which user has to visit\r\n# and then copy the auth_code from there and paste it in the terminal\r\nfyers = Fyers(client_id, secret_key, pin=pin)    # creates a file tokens.txt where tokens are stored\r\n\r\n# grab the native instance and use native api\r\nnative_fyers = fyers.get_native_instance()\r\n\r\n# we can use native api from (native_fyers) which is an instance of FyersModel\r\n```\r\n\r\n### NOTE\r\n> This is current in development, i will be adding more features to make the api easy to use. I will also create a comprehensive documentation for this wrapper so that users dont have an issue using it.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A wrapper around fyers_apiv3 to make it easier to use",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/pyloris/Fryers"
    },
    "split_keywords": [
        "fyers",
        "fyers-api",
        "trading",
        "fyers_apiv3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19b82091da14847f3fc8c63085bf7983c06659117263a69720987036a3451f33",
                "md5": "7855e187ec4cc486ec00730ca7ec2bb0",
                "sha256": "17531dcd99be673a5a04ebcf4cecfee4ca9a72e0bc13310bc353bf4a07008f44"
            },
            "downloads": -1,
            "filename": "fryers-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7855e187ec4cc486ec00730ca7ec2bb0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 5357,
            "upload_time": "2024-01-12T09:44:49",
            "upload_time_iso_8601": "2024-01-12T09:44:49.084774Z",
            "url": "https://files.pythonhosted.org/packages/19/b8/2091da14847f3fc8c63085bf7983c06659117263a69720987036a3451f33/fryers-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "46781a167b9f22d3ada459b0762033207390bd673ab26820353e5558eaf6c046",
                "md5": "d512932132c5ce1d098747725a105126",
                "sha256": "9d8849ae38673a8733bf4b4e48c5c65ff616104bfec153dfe64bcf61dc145589"
            },
            "downloads": -1,
            "filename": "fryers-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d512932132c5ce1d098747725a105126",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 5183,
            "upload_time": "2024-01-12T09:44:50",
            "upload_time_iso_8601": "2024-01-12T09:44:50.976315Z",
            "url": "https://files.pythonhosted.org/packages/46/78/1a167b9f22d3ada459b0762033207390bd673ab26820353e5558eaf6c046/fryers-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-12 09:44:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pyloris",
    "github_project": "Fryers",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fryers"
}
        
Elapsed time: 2.09520s