Skip to main content

No project description provided

Project description

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-3

Fyers Token Generator

from fyers_token_manager_v3 import FyersTokenManager

fyersTokenManager = FyersTokenManager(
    username=config["username"],
    totp_key=config["totp_key"],
    pin=config["pin"],
    client_id=config["client_id"],
    secret_key=config["secret_key"],
    redirect_url=config["redirect_url"],
)

print(fyersTokenManager.http_access_token)
print(fyersTokenManager.ws_access_token)

HTTP Client

  • fyersTokenManager.http_client.get_profile()

WebSocket Client

  • fyersTokenManager.ws_client.subscribe(payload)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fyers_token_manager_3-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

fyers_token_manager_3-0.1.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page