- 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:
@@ -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)
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user