add symbols and improve code style for bc call
This commit is contained in:
@@ -74,12 +74,18 @@
|
|||||||
{
|
{
|
||||||
"Symbol": "META"
|
"Symbol": "META"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Symbol": "MSTR"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Symbol": "NFLX"
|
"Symbol": "NFLX"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Symbol": "NVDA"
|
"Symbol": "NVDA"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Symbol": "PG"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Symbol": "PM"
|
"Symbol": "PM"
|
||||||
},
|
},
|
||||||
@@ -95,6 +101,9 @@
|
|||||||
{
|
{
|
||||||
"Symbol": "RCL"
|
"Symbol": "RCL"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Symbol": "REMX"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Symbol": "SLV"
|
"Symbol": "SLV"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ if [[ "${checkPositionExists}" = true ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the Middle price...
|
# 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
|
orderJson=$(jq -c <<-EOM
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user