Introduce mnemonic account name resolution in getAccountNumbers
This commit is contained in:
@@ -3,7 +3,7 @@ set -x
|
||||
IFS=$'\0'
|
||||
|
||||
daysOutMin=90
|
||||
daysOutMax=91
|
||||
daysOutMax=95
|
||||
deltaMin=0.35
|
||||
deltaMax=0.40
|
||||
|
||||
@@ -104,10 +104,10 @@ fi
|
||||
|
||||
./getNewAccessToken.sh
|
||||
|
||||
curl -s -X POST \
|
||||
'https://api.schwabapi.com/trader/v1/accounts/5A5B921917D97B89FDA53E1E1D13D2EB11E488ADA20A20B3C787477DE59A770E/orders' \
|
||||
-H "Authorization: Bearer $(<access_token.dat)" \
|
||||
echo curl -s -X POST \
|
||||
"https://api.schwabapi.com/trader/v1/accounts/$(./getAccountNumbers.sh Roth)/orders" \
|
||||
-H "Authorization: Bearer $(<access_token.dat)" \
|
||||
-H 'accept: */*' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d "${orderJson}"
|
||||
-d "${orderJson}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user