change the access token to be cached
This commit is contained in:
@@ -3,10 +3,8 @@ set -x
|
||||
IFS=$'\0'
|
||||
|
||||
. helpers.sh
|
||||
./getNewAccessToken.sh
|
||||
|
||||
|
||||
daysOutMin=90
|
||||
daysOutMin=87
|
||||
daysOutMax=95
|
||||
deltaMin=0.35
|
||||
deltaMax=0.40
|
||||
@@ -91,9 +89,9 @@ if [[ "${noconfirm}" != "true" ]]; then
|
||||
read
|
||||
fi
|
||||
|
||||
echo curl -s -X POST \
|
||||
curl -s -X POST \
|
||||
"https://api.schwabapi.com/trader/v1/accounts/$(./getAccountNumbers.sh Roth)/orders" \
|
||||
-H "Authorization: Bearer $(<access_token.dat)" \
|
||||
-H "Authorization: Bearer $(./getNewAccessToken.sh)" \
|
||||
-H 'accept: */*' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d "${orderJson}"
|
||||
|
||||
Reference in New Issue
Block a user