various smaller maintenance changes

This commit is contained in:
2024-12-07 09:56:54 -06:00
parent bbb9d5dce6
commit aabc2d235e
4 changed files with 12 additions and 2 deletions

View File

@@ -74,7 +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.75 # All nice calculating a price, but I want those to be filled and reasonably, they will (hopefully) be filled at 475
priceOpen=4.75 # All nice calculating a price, but I want those to be filled and reasonably, changing to 475 as 480 failed me on 2024-12-03
orderJson=$(jq -c <<-EOM
{