Bug Fixes

This commit is contained in:
Luis Fernando Molina committed 2020-02-09 16:35:17 +01:00
1 parent 82bc086e92
commit b1af6e078c
131 files changed
+8597 -1930

No files matched your search

+7 -12
View File
@@ -109,12 +109,9 @@ module.exports = class poloniex extends Exchange {
},
'fees': {
'trading': {
// https://github.com/ccxt/ccxt/issues/6064
// starting from October 21, 2019 17:00 UTC
// all spot trading fees will be reduced to 0.00%
// until December 31, 2019 23:59 UTC
'maker': 0.0,
'taker': 0.0,
// starting from Jan 8 2020
'maker': 0.0009,
'taker': 0.0009,
},
'funding': {},
},
@@ -325,16 +322,14 @@ module.exports = class poloniex extends Exchange {
return orderbook;
}
async fetchOrderBooks (symbols = undefined, params = {}) {
async fetchOrderBooks (symbols = undefined, limit = undefined, params = {}) {
await this.loadMarkets ();
const request = {
'currencyPair': 'all',
};
//
// if (limit !== undefined) {
// request['depth'] = limit; // 100
// }
//
if (limit !== undefined) {
request['depth'] = limit; // 100
}
const response = await this.publicGetReturnOrderBook (this.extend (request, params));
const marketIds = Object.keys (response);
const result = {};