I would like to know if there is a way to start a code enter the request token and then sleep for 8hrs and continue trading once the market opens. Context: I am a night owl and I generally work at night and wake up at noon. I tried starting my algorithm at 1 am and after providing the access token went to sleep. The problem is that the code wakes up at 9:15 am but the access token has expired by then requiring me to log in and enter the request token again.
Is there a way to start a code and keep it awake for a longer duration without the access token being expired?
@durghy_trades, As per the exchange regulations, it mandatory that a user has to login manually at least once a day. We don't recommend automating login.
You can generate a token by firing the script at say 0600 and get a fresh token every day.
To extend it further, you can also set your script to 'sleep' at say 1530 and wake up again the next day.
As per the exchange regulations, it mandatory that a user has to login manually at least once a day. We don't recommend automating login.