I have been trying to read historical data. By using the API key and access token i am able to fetch the instrument details but the moment i run the code to fetch the data it says invalid key, access token. I have verified multiple times that the key and token are correct however just when i run the code to fetch the data it fails.. any suggestions please.. I am new to this and feeling very overwhelmed....
There are 2 things you need to improve. the Date formatting is wrong:
: %M: %S")
and best practices is to keep a token mapping with instrument name, instrument tokens have to be updated everyday with their insrument name. going forward start implementing them right away. Also create a config file which you load for data fetch so that you dont have to update your script with access token and api key or secret api. rest all looks fine
: %M: %S")
and best practices is to keep a token mapping with instrument name, instrument tokens have to be updated everyday with their insrument name. going forward start implementing them right away. Also create a config file which you load for data fetch so that you dont have to update your script with access token and api key or secret api. rest all looks fine