Fix already done trade detecation and e-mail address in deadswitch call

This commit is contained in:
2024-10-01 16:28:14 -05:00
parent b8b99a8a9e
commit bbb9d5dce6
5 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ longSymbol=$(jq -r '.symbol' < temp/longLeg.json)
log "Long Symbol: _${longSymbol}_ Strike: _${longStrike}_ Bid: _${longBid}_ Ask: _${longAsk}_" info
#Check if this order has already been submitted.
./getOrders.sh | grep '\(WORKING\|FILLED\),'${longSymbolC:0:12} > temp/existingOrders.$$
./getOrders.sh | grep '\(WORKING\|FILLED\),'"${longSymbol:0:12}" > temp/existingOrders.$$
if [[ $(wc -l < temp/existingOrders.$$) -eq 0 ]];then
log "Not Yet traded, continuing" info
else