Commit 9b714cab by zihan

日志调整

parent 2ffcc307
......@@ -68,12 +68,12 @@ class Order {
return;
}
const order = result.data || {};
console.log(order);
if(!order.dealAmount && !order.pendingAmount){
console.error("没有返回amount 和deal amount字段,继续搜索");
console.log(result)
this.api.searchOrder(orderId, symbol, side, this._handleFOKSearchResult.bind(this, orderId, symbol, side, price, finalCallback));
}else if (order.pendingAmount === 0 || !order.isActive) {
console.log(order);
finalCallback(null, convertToRecordOrder(order, price));
} else if (order.dealAmount === 0 || (order.dealAmount > 0 && order.pendingAmount >0)) {
this.api.cancelOrder(orderId, symbol, side, (error, result) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment