Fix already done trade detecation and e-mail address in deadswitch call
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user