Update TradingSimulation.js

This commit is contained in:
Luis Fernando Molina committed 2020-05-16 14:53:57 +02:00
1 parent 2e4b7bd2d5
commit 0bd0b9cfcf
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