add symbols and improve code style for bc call

This commit is contained in:
2026-02-13 10:40:48 -06:00
parent e61c190a2f
commit 684e217f74
2 changed files with 10 additions and 1 deletions

View File

@@ -74,12 +74,18 @@
{
"Symbol": "META"
},
{
"Symbol": "MSTR"
},
{
"Symbol": "NFLX"
},
{
"Symbol": "NVDA"
},
{
"Symbol": "PG"
},
{
"Symbol": "PM"
},
@@ -95,6 +101,9 @@
{
"Symbol": "RCL"
},
{
"Symbol": "REMX"
},
{
"Symbol": "SLV"
},

View File

@@ -89,7 +89,7 @@ if [[ "${checkPositionExists}" = true ]]; then
fi
# Get the Middle price...
price=$(echo "scale=2; ((${longBid}+${longAsk})/2) + ${priceOffset}" | bc)
price=$(bc <<< "scale=2; ((${longBid}+${longAsk})/2) + ${priceOffset}")
orderJson=$(jq -c <<-EOM
{