Add caching to market hour and cater for (long) weekends in the 1DTE trade automation
This commit is contained in:
@@ -21,6 +21,4 @@ echo $fromEnteredTime
|
||||
./getNewAccessToken.sh
|
||||
|
||||
curl -s -X GET "https://api.schwabapi.com/trader/v1/orders?fromEnteredTime=${fromEnteredTime}&toEnteredTime=${toEnteredTime}" -H "Authorization: Bearer $(<access_token.dat)" > ${tempFile}
|
||||
#jq -r 'map(.enteredTime)[]' < ${tempFile}
|
||||
#jq -r '.[].orderLegCollection[].instrument.symbol' < ${tempFile}
|
||||
jq -r '.[] | [.orderId | tostring][0] + "," + .status + "," + .orderLegCollection[].instrument.symbol' < ${tempFile}
|
||||
|
||||
Reference in New Issue
Block a user