|
@@ -92,7 +92,7 @@ const orderHandler = async function(context, task) {
|
|
|
for (const fill of buyRst.fills) {
|
|
for (const fill of buyRst.fills) {
|
|
|
executedQty += parseFloat(fill.qty)
|
|
executedQty += parseFloat(fill.qty)
|
|
|
// 扣除支付的手续费
|
|
// 扣除支付的手续费
|
|
|
- if (fill.commissionAsset === 'HOOK') {
|
|
|
|
|
|
|
+ if (fill.commissionAsset === token.exchange.symbol) {
|
|
|
executedQty -= parseFloat(fill.commission)
|
|
executedQty -= parseFloat(fill.commission)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|