fyers-access-token
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Fyers Access Token

Library for Generating Fyers Access Token with TOTP using Fyers API, written in TypeScript.

Installation

npm install fyers-access-token

Usage

import { generateAccessToken } from 'fyers-access-token';


const token = await generateAccessToken({
      fyersAppId: FYERS_APP_ID,
      fyersAppType: FYERS_APP_TYPE,
      fyersAppSecret: FYERS_APP_SECRET,
      fyersAppRedirectUrl: REDIRECT_URL,
      fyersUserId: FYERS_USER_ID,
      fyersUserPin: FYERS_USER_PIN,
      totpSecretKey: TOTP_SECRET_KEY,
    });

License

MIT © Vivek Thakur

Package Sidebar

Install

npm i fyers-access-token

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

18.7 kB

Total Files

16

Last publish

Collaborators

  • vivekvt