Fixing more of the log conversions to exit with errorleve even when logging as warning. Also, hardcode the Price of the 1DTE trade

This commit is contained in:
2024-08-28 15:14:16 -05:00
parent d1e6337b08
commit d9c479af18
4 changed files with 5 additions and 1 deletions

View File

@@ -74,6 +74,7 @@ priceOffset=0.00 # try to get a little better price
# 2) Round to the Coloses full number
# 3) Divide by 20
priceOpen=$(echo "scale=2; exact=((${shortBidC}+${shortAskC})/2) + ((${shortBidP}+${shortAskP})/2) - ((${longBidC}+${longAskC})/2) - ((${longBidP}+${longAskP})/2) + ${priceOffset}; scale=0; round5=exact*20/1; scale=2; round5/20" | bc)
priceOpen=4.85 # All nice calculating a price, but I want those to be filled and reasonably, they will (hopefully) be filled at 485
orderJson=$(jq -c <<-EOM
{