diff --git a/autoTradeQQQLongCall.sh b/autoTradeQQQLongCall.sh index 1a16498..912ac75 100755 --- a/autoTradeQQQLongCall.sh +++ b/autoTradeQQQLongCall.sh @@ -94,7 +94,7 @@ read ./getNewAccessToken.sh curl -s -X POST \ - 'https://api.schwabapi.com/trader/v1/accounts/5A5B921917D97B89FDA53E1E1D13D2EB11E488ADA20A20B3C787477DE59A770E/orders' \ + 'https://api.schwabapi.com/trader/v1/accounts/CEF970366D4CC9553B5E8846E35FD92A1867F3E73C1082A52647256F42E4746B/orders' \ -H "Authorization: Bearer $(&2 echo "${errMsg}" + if [[ "${ErrorLogLevel}" == "err" ]]; then + >&2 echo "${errMsg}" + fi exit 2 else optionChainFileName=$(date "+%Y-%m-%d %H_%M_%S")_optionChain.${symbol}.json