Update TradingSimulation.js

This commit is contained in:
Luis Fernando Molina committed 2020-05-16 14:54:15 +02:00
1 parent 4ffbafffc2
commit 6b39c72151
1 file changed
+2 -2
+2 -2
View File
@@ -2339,7 +2339,7 @@
if (baseAsset === bot.market.baseAsset) {
orderSide = "sell"
orderPrice = tradePositionRate - 100 // This is going to be ingnored at the Exchange API for now since we only put market orders.
orderPrice = tradePositionRate
amountA = tradePositionSize * orderPrice
amountB = tradePositionSize
@@ -2347,7 +2347,7 @@
} else {
orderSide = "buy"
orderPrice = tradePositionRate // This is going to be ingnored at the Exchange API for now since we only put market orders.
orderPrice = tradePositionRate
amountA = tradePositionSize
amountB = tradePositionSize / orderPrice