IPC removed, replaced by WS

This commit is contained in:
Luis Fernando Molina committed 2020-04-06 08:33:07 +02:00
1 parent ba4217fb24
commit 656c193511
503 files changed
+28128 -34498

No files matched your search

+5 -4
View File
@@ -15,6 +15,7 @@ module.exports = class poloniex extends Exchange {
'countries': [ 'US' ],
'rateLimit': 1000, // up to 6 calls per second
'certified': true, // 2019-06-07
'pro': true,
'has': {
'CORS': false,
'createDepositAddress': true,
@@ -228,7 +229,7 @@ module.exports = class poloniex extends Exchange {
if (limit === undefined) {
request['start'] = request['end'] - this.parseTimeframe ('1w'); // max range = 1 week
} else {
request['start'] = request['end'] - this.sum (limit) * this.parseTimeframe (timeframe);
request['start'] = request['end'] - limit * this.parseTimeframe (timeframe);
}
} else {
request['start'] = parseInt (since / 1000);
@@ -423,9 +424,6 @@ module.exports = class poloniex extends Exchange {
for (let i = 0; i < ids.length; i++) {
const id = ids[i];
const currency = response[id];
// todo: will need to rethink the fees
// to add support for multiple withdrawal/deposit methods and
// differentiated fees for each particular method
const precision = 8; // default precision, todo: fix "magic constants"
const code = this.safeCurrencyCode (id);
const active = (currency['delisted'] === 0) && !currency['disabled'];
@@ -751,6 +749,7 @@ module.exports = class poloniex extends Exchange {
// },
// ],
// 'fee': '0.00000000',
// 'clientOrderId': '12345',
// 'currencyPair': 'BTC_MANA',
// // ---------------------------------------------------------
// // the following fields are injected by createOrder
@@ -837,9 +836,11 @@ module.exports = class poloniex extends Exchange {
'currency': feeCurrencyCode,
};
}
const clientOrderId = this.safeString (order, 'clientOrderId');
return {
'info': order,
'id': id,
'clientOrderId': clientOrderId,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'lastTradeTimestamp': lastTradeTimestamp,