Trying to automate getting quotes for x number of tickers in a loop which would run during market hours. I have see webinar & github docs which says hit the url with apikey to get the token but that is getting it manually every time you run the program (token expires with each run of program). How do I get the request token programatically ??
@UE6253 You should generate access token only once and use it to run your program multiple times. For example, if you are running your strategy every five minutes then you should generate access token initially only once and use it in your program and run it multiple times.
ok, I get the access token once but how do I get the request token first time programatically (and not using browser to get it ) ? For how long access token is valid ? Few hours, a day ?
@UE6253 You need to login manually to get request token from URL, as per exchange policy, auto-login is not allowed. Access token is valid through the day, until you log-out/destroy the session.
You should generate access token only once and use it to run your program multiple times. For example, if you are running your strategy every five minutes then you should generate access token initially only once and use it in your program and run it multiple times.
You need to login manually to get request token from URL, as per exchange policy, auto-login is not allowed. Access token is valid through the day, until you log-out/destroy the session.