Code Polishing
This commit is contained in:
1 parent
006d9c9551
commit
6a195a4677
2 files changed
+105
-67
No files matched your search
@@ -608,9 +608,6 @@ exports.newTradingSystem = function newTradingSystem(bot, logger, tradingEngineM
|
||||
/* Position size and rate */
|
||||
tradingPositionModule.updateSizeAndRate(getPositionSize(), getPositionRate())
|
||||
|
||||
/* We take what was calculated at the formula of position rate and apply the slippage, if needed. */
|
||||
tradingPositionModule.applySlippageToRate()
|
||||
|
||||
function getPositionSize() {
|
||||
let balance
|
||||
if (bot.sessionAndMarketBaseAssetsAreEqual) {
|
||||
|
||||
Reference in new issue
Block a user