```
config = {
"username": "<USERNAME>",
"totp_key": "<TOTP_KEY>",
"pin": "<PIN>",
"client_id": "<CLIENT_ID>",
"secret_key": "<SECRET_KEY>",
"redirect_uri": <REDIRECT_URL>
}
```
## Install
```
pip install fyers-token-manager-v2
```
## Fyers Token Generator
```
from fyers_api import accessToken, fyersModel
from fyers_api.Websocket import ws
from fyers_token_manager_v2 import FyersTokenManager
```
#### Initialization
```
fyersTokenManager = FyersTokenManager(config, accessToken, fyersModel, ws)
print(fyersTokenManager.http_access_token)
print(fyersTokenManager.ws_access_token)
```
#### HTTP Client
- fyersTokenManager.http_client.get_profile()
#### WebSocket Client
- fyersTokenManager.ws_client.subscribe(payload)
Raw data
{
"_id": null,
"home_page": "https://github.com/krunaldodiya/fyers_token_manager",
"name": "fyers-token-manager-v3",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Krunal Dodiya",
"author_email": "kunal.dodiya1@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ed/8e/ab625a4d0657bb5868df27c11db62140103b0454d20e7a67aeb73f2bb4b7/fyers_token_manager_v3-0.1.1.tar.gz",
"platform": null,
"description": "```\nconfig = {\n \"username\": \"<USERNAME>\",\n \"totp_key\": \"<TOTP_KEY>\",\n \"pin\": \"<PIN>\",\n \"client_id\": \"<CLIENT_ID>\",\n \"secret_key\": \"<SECRET_KEY>\",\n \"redirect_uri\": <REDIRECT_URL>\n}\n```\n\n## Install\n\n```\npip install fyers-token-manager-v2\n```\n\n## Fyers Token Generator\n\n```\nfrom fyers_api import accessToken, fyersModel\nfrom fyers_api.Websocket import ws\n\nfrom fyers_token_manager_v2 import FyersTokenManager\n```\n\n#### Initialization\n\n```\nfyersTokenManager = FyersTokenManager(config, accessToken, fyersModel, ws)\n\nprint(fyersTokenManager.http_access_token)\nprint(fyersTokenManager.ws_access_token)\n```\n\n#### HTTP Client\n\n- fyersTokenManager.http_client.get_profile()\n\n#### WebSocket Client\n\n- fyersTokenManager.ws_client.subscribe(payload)\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Fyers Token Manager",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/krunaldodiya/fyers_token_manager"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ea6310df0baaf0beaac7e198663ee2795900aa51ffc82376318aee4d3a5b8e55",
"md5": "e3502087f4f8a89b7e50213b3d7ef6a4",
"sha256": "e2ed9beb6834a767371e406da1c55cb721b44c6f88ea656a63a7bb228922c841"
},
"downloads": -1,
"filename": "fyers_token_manager_v3-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e3502087f4f8a89b7e50213b3d7ef6a4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3730,
"upload_time": "2023-10-04T16:19:59",
"upload_time_iso_8601": "2023-10-04T16:19:59.659881Z",
"url": "https://files.pythonhosted.org/packages/ea/63/10df0baaf0beaac7e198663ee2795900aa51ffc82376318aee4d3a5b8e55/fyers_token_manager_v3-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ed8eab625a4d0657bb5868df27c11db62140103b0454d20e7a67aeb73f2bb4b7",
"md5": "17472dd9a132aeb940d8dd9258a7556d",
"sha256": "9f9557c7ae7dd8f6607057625fcb0930496c93537b909a311589b6c2b7cec73b"
},
"downloads": -1,
"filename": "fyers_token_manager_v3-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "17472dd9a132aeb940d8dd9258a7556d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3338,
"upload_time": "2023-10-04T16:20:01",
"upload_time_iso_8601": "2023-10-04T16:20:01.314482Z",
"url": "https://files.pythonhosted.org/packages/ed/8e/ab625a4d0657bb5868df27c11db62140103b0454d20e7a67aeb73f2bb4b7/fyers_token_manager_v3-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-04 16:20:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "krunaldodiya",
"github_project": "fyers_token_manager",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "fyers-token-manager-v3"
}