Able to get the authcode using client_id and secret and pasting the URL in the browser with the redirect URL.
When I use the authcode to get access token, I am getting the error
-209 Please provide the validation parameter
Node API Version - V3
I am stuck in the initial steps itself. Kindly help.
Z4PBvkQGyF
(Inactive Member)
2
Hi @panky.tiwari-qvw
After generating auth code , please use this code to generate access token
// Define the authorization code and secret key required for generating access token
const auth_code="exyj....."
// Replace with your secret key provided by Fyers
const secretKey = "RJ1W2XG5L4"
fyers.generate_access_token({ "secret_key": secretKey, "auth_code": auth_code }).then((response) => {
console.log(response)
}).catch((error) => {
console.log(error)
})
I am able to fetch token directly via axios api but not through fyers. Anyway, I am using axios now to get the data