change the access token to be cached
This commit is contained in:
@@ -24,7 +24,7 @@ for range in ITM OTM NTM; do
|
||||
log "Querying for Symbol: _${symbol}_ query string: _${queryString}&range=${range}_" debug
|
||||
|
||||
curl -s -X GET "https://api.schwabapi.com/marketdata/v1/chains${queryString}&range=${range}" \
|
||||
-H "Authorization: Bearer $(<access_token.dat)" > temp/optionChain.${symbol}.${range}.tmp.$$.json
|
||||
-H "Authorization: Bearer $(./getNewAccessToken.sh)" > temp/optionChain.${symbol}.${range}.tmp.$$.json
|
||||
|
||||
jqQuery=".symbol"
|
||||
symbolCheck=$(jq -r ${jqQuery} < temp/optionChain.${symbol}.${range}.tmp.$$.json)
|
||||
|
||||
Reference in New Issue
Block a user