add symbols and improve code style for bc call
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user