change the access token to be cached
This commit is contained in:
@@ -40,7 +40,7 @@ done
|
||||
log "Querying for markets: _${markets}_ query string: _${queryString}_" debug
|
||||
|
||||
curl -s -X GET "https://api.schwabapi.com/marketdata/v1/markets${queryString}" \
|
||||
-H "Authorization: Bearer $(<access_token.dat)" > ${cacheFileName}
|
||||
-H "Authorization: Bearer $(./getNewAccessToken.sh)" > ${cacheFileName}
|
||||
|
||||
|
||||
marketsCheck=$(jq -e -r '.. | .isOpen?' ${cacheFileName} | grep -v null | wc -l)
|
||||
|
||||
Reference in New Issue
Block a user