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

+16
View File
@@ -305,6 +305,8 @@ module.exports = class coinone extends Exchange {
'remaining': amount,
'status': 'open',
'fee': undefined,
'clientOrderId': undefined,
'trades': undefined,
};
this.orders[id] = order;
return order;
@@ -356,6 +358,17 @@ module.exports = class coinone extends Exchange {
}
parseOrder (order, market = undefined) {
//
// {
// "index": "0",
// "orderId": "68665943-1eb5-4e4b-9d76-845fc54f5489",
// "timestamp": "1449037367",
// "price": "444000.0",
// "qty": "0.3456",
// "type": "ask",
// "feeRate": "-0.0015"
// }
//
const info = this.safeValue (order, 'info');
const id = this.safeStringUpper (info, 'orderId');
const timestamp = this.safeTimestamp (info, 'timestamp');
@@ -398,6 +411,7 @@ module.exports = class coinone extends Exchange {
return {
'info': order,
'id': id,
'clientOrderId': undefined,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'lastTradeTimestamp': undefined,
@@ -411,6 +425,8 @@ module.exports = class coinone extends Exchange {
'remaining': remaining,
'status': status,
'fee': fee,
'average': undefined,
'trades': undefined,
};
}