- Separate getting option chains from recording

- Add checking for market open
- Remove SPX from recording
- Hopefully precent the refresh token from being
  overwritten sometimes
This commit is contained in:
2024-08-26 15:18:24 -05:00
parent 917703386d
commit 5535bdae7f
10 changed files with 508 additions and 37 deletions

View File

@@ -17,11 +17,12 @@ if [[ $? -ne 0 ]]; then
fi
#echo Access Token: $(<access_token.dat)
# I have not seen it change, but let's see if they give us a new one before expiry...
# after all they send it so we should probably process it.
jq -e -r .refresh_token temp/accessTokenReqResp.$$.json > temp/refresh_token.dat
if [[ $? -eq 0 ]]; then
mv temp/refresh_token.dat refresh_token.dat
fi
#echo Refresh Token: $(<refresh_token.dat)
## I found the refresh token to be empty after the network is unreachable, therefore I don't handle the refresh token here...
## I have not seen it change, but let's see if they give us a new one before expiry...
## after all they send it so we should probably process it.
#jq -e -r .refresh_token temp/accessTokenReqResp.$$.json > temp/refresh_token.dat
#if [[ $? -eq 0 ]]; then
# mv temp/refresh_token.dat refresh_token.dat
#fi
##echo Refresh Token: $(<refresh_token.dat)
#