change the access token to be cached
This commit is contained in:
@@ -8,7 +8,7 @@ mkdir -p "${outDir}"
|
||||
mkdir -p temp
|
||||
|
||||
curl -s -X GET "https://api.schwabapi.com/marketdata/v1/${symbol}/quotes?fields=quote%2Creference" \
|
||||
-H "Authorization: Bearer $(<access_token.dat)" > temp/quote.${symbol}.tmp.$$.json
|
||||
-H "Authorization: Bearer $(./getNewAccessToken.sh)" > temp/quote.${symbol}.tmp.$$.json
|
||||
|
||||
jqQuery=".\"${symbol}\".symbol"
|
||||
symbolCheck=$(jq -r ${jqQuery} < temp/quote.${symbol}.tmp.$$.json)
|
||||
|
||||
Reference in New Issue
Block a user