add symbols and improve code style for bc call
This commit is contained in:
@@ -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