fyers-access-token
v1.0.0
Published
Generate Fyers Access Token with TOTP login using Fyers API
Downloads
3
Maintainers
Readme
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,
});