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?