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
+22
@@ -103,6 +103,9 @@ module.exports = class luno extends Exchange {
|
||||
'baseId': baseId,
|
||||
'quoteId': quoteId,
|
||||
'info': market,
|
||||
'active': undefined,
|
||||
'precision': this.precision,
|
||||
'limits': this.limits,
|
||||
});
|
||||
}
|
||||
return result;
|
||||
@@ -145,6 +148,23 @@ module.exports = class luno extends Exchange {
|
||||
}
|
||||
|
||||
parseOrder (order, market = undefined) {
|
||||
//
|
||||
// {
|
||||
// "base": "string",
|
||||
// "completed_timestamp": "string",
|
||||
// "counter": "string",
|
||||
// "creation_timestamp": "string",
|
||||
// "expiration_timestamp": "string",
|
||||
// "fee_base": "string",
|
||||
// "fee_counter": "string",
|
||||
// "limit_price": "string",
|
||||
// "limit_volume": "string",
|
||||
// "order_id": "string",
|
||||
// "pair": "string",
|
||||
// "state": "PENDING",
|
||||
// "type": "BID"
|
||||
// }
|
||||
//
|
||||
const timestamp = this.safeInteger (order, 'creation_timestamp');
|
||||
const status = (order['state'] === 'PENDING') ? 'open' : 'closed';
|
||||
const side = (order['type'] === 'ASK') ? 'sell' : 'buy';
|
||||
@@ -183,6 +203,7 @@ module.exports = class luno extends Exchange {
|
||||
const id = this.safeString (order, 'order_id');
|
||||
return {
|
||||
'id': id,
|
||||
'clientOrderId': undefined,
|
||||
'datetime': this.iso8601 (timestamp),
|
||||
'timestamp': timestamp,
|
||||
'lastTradeTimestamp': undefined,
|
||||
@@ -198,6 +219,7 @@ module.exports = class luno extends Exchange {
|
||||
'trades': undefined,
|
||||
'fee': fee,
|
||||
'info': order,
|
||||
'average': undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user