From 0bd0b9cfcf0aa9ae9f58d65d8e87aa702d292e85 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 16 May 2020 14:53:57 +0200 Subject: [PATCH] Update TradingSimulation.js --- TradingSimulation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TradingSimulation.js b/TradingSimulation.js index 5b75cb670..0f0c30c34 100644 --- a/TradingSimulation.js +++ b/TradingSimulation.js @@ -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