Commit db2f2afc by zihan

修复获取底仓的bug

parent 804d5868
......@@ -129,7 +129,7 @@ class BiboxCollector extends BaseCollector{
}else{
const balanceList = result.data.datas;
for(let detail of balanceList){
balanceMap[detail.coinType] = {available:(detail.balance - detail.freezeBalance),onOrder:detail.freezeBalance};
balanceMap[detail.coinType] = {available:detail.balance,onOrder:detail.freezeBalance};
}
let pageNos = result.data.pageNos
if(pageNos > 1){
......@@ -145,7 +145,7 @@ class BiboxCollector extends BaseCollector{
}else{
const balanceList = result.data.datas;
for(let detail of balanceList){
balanceMap[detail.coinType] = {available:(detail.balance - detail.freezeBalance),onOrder:detail.freezeBalance};
balanceMap[detail.coinType] = {available:detail.balance,onOrder:detail.freezeBalance};
}
}
if(need === amount){
......@@ -156,7 +156,7 @@ class BiboxCollector extends BaseCollector{
}else{
const balanceList = result.data.datas;
for(let detail of balanceList){
balanceMap[detail.coinType] = {available:(detail.balance - detail.freezeBalance),onOrder:detail.freezeBalance};
balanceMap[detail.coinType] = {available:detail.balance,onOrder:detail.freezeBalance};
}
callback(balanceMap)
}
......
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