IPC removed, replaced by WS
This commit is contained in:
1 parent
ba4217fb24
commit
656c193511
503 files changed
+28128
-34498
No files matched your search
+8
-15
@@ -29,7 +29,7 @@ module.exports = class bcex extends Exchange {
|
||||
'fetchTradingLimits': true,
|
||||
},
|
||||
'urls': {
|
||||
'logo': 'https://user-images.githubusercontent.com/1294454/43362240-21c26622-92ee-11e8-9464-5801ec526d77.jpg',
|
||||
'logo': 'https://user-images.githubusercontent.com/51840849/77231516-851c6900-6bac-11ea-8fd6-ee5c23eddbd4.jpg',
|
||||
'api': 'https://www.bcex.top',
|
||||
'www': 'https://www.bcex.top',
|
||||
'doc': 'https://github.com/BCEX-TECHNOLOGY-LIMITED/API_Docs/wiki/Interface',
|
||||
@@ -75,8 +75,8 @@ module.exports = class bcex extends Exchange {
|
||||
'trading': {
|
||||
'tierBased': false,
|
||||
'percentage': true,
|
||||
'buy': 0.0,
|
||||
'sell': 0.2 / 100,
|
||||
'maker': 0.1 / 100,
|
||||
'taker': 0.2 / 100,
|
||||
},
|
||||
'funding': {
|
||||
'tierBased': false,
|
||||
@@ -369,6 +369,7 @@ module.exports = class bcex extends Exchange {
|
||||
'cost': cost,
|
||||
'order': orderId,
|
||||
'fee': undefined,
|
||||
'takerOrMaker': undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -517,6 +518,8 @@ module.exports = class bcex extends Exchange {
|
||||
'remaining': this.safeFloat (order, 'numberover'),
|
||||
'status': status,
|
||||
'fee': undefined,
|
||||
'clientOrderId': undefined,
|
||||
'trades': undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -543,6 +546,7 @@ module.exports = class bcex extends Exchange {
|
||||
const result = {
|
||||
'info': order,
|
||||
'id': id,
|
||||
'clientOrderId': undefined,
|
||||
'timestamp': timestamp,
|
||||
'datetime': this.iso8601 (timestamp),
|
||||
'lastTradeTimestamp': undefined,
|
||||
@@ -557,6 +561,7 @@ module.exports = class bcex extends Exchange {
|
||||
'remaining': remaining,
|
||||
'status': status,
|
||||
'fee': fee,
|
||||
'trades': undefined,
|
||||
};
|
||||
return result;
|
||||
}
|
||||
@@ -671,16 +676,4 @@ module.exports = class bcex extends Exchange {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
calculateFee (symbol, type, side, amount, price, takerOrMaker = 'taker', params = {}) {
|
||||
const market = this.markets[symbol];
|
||||
const rate = market[side];
|
||||
const cost = parseFloat (this.costToPrecision (symbol, amount * price));
|
||||
return {
|
||||
'type': takerOrMaker,
|
||||
'currency': market['quote'],
|
||||
'rate': rate,
|
||||
'cost': parseFloat (this.feeToPrecision (symbol, rate * cost)),
|
||||
};
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user