|
|
@@ -96,10 +96,9 @@ const orderHandler = async function(context, task) {
|
|
|
executedQty -= parseFloat(fill.commission)
|
|
|
}
|
|
|
}
|
|
|
- executedQty = NumKit.getSubFloat(executedQty, token.exchange.lotSize)
|
|
|
|
|
|
- token.orderAmount = executedQty
|
|
|
- token.orderPrice = cummulativeQuoteQty / executedQty
|
|
|
+ token.orderAmount = NumKit.getSubFloat(executedQty, token.exchange.lotSize)
|
|
|
+ token.orderPrice = NumKit.getSubFloat(cummulativeQuoteQty / executedQty, token.exchange.tickSize)
|
|
|
|
|
|
fileLogger.info(`[单]${pair}, volume:${cummulativeQuoteQty}, 买入${executedQty}, 均价${token.orderPrice}.`)
|
|
|
|