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
+12
-1
@@ -242,7 +242,16 @@ module.exports = class btcbox extends Exchange {
|
||||
|
||||
parseOrder (order, market = undefined) {
|
||||
//
|
||||
// {"id":11,"datetime":"2014-10-21 10:47:20","type":"sell","price":42000,"amount_original":1.2,"amount_outstanding":1.2,"status":"closed","trades":[]}
|
||||
// {
|
||||
// "id":11,
|
||||
// "datetime":"2014-10-21 10:47:20",
|
||||
// "type":"sell",
|
||||
// "price":42000,
|
||||
// "amount_original":1.2,
|
||||
// "amount_outstanding":1.2,
|
||||
// "status":"closed",
|
||||
// "trades":[]
|
||||
// }
|
||||
//
|
||||
const id = this.safeString (order, 'id');
|
||||
const datetimeString = this.safeString (order, 'datetime');
|
||||
@@ -281,6 +290,7 @@ module.exports = class btcbox extends Exchange {
|
||||
const side = this.safeString (order, 'type');
|
||||
return {
|
||||
'id': id,
|
||||
'clientOrderId': undefined,
|
||||
'timestamp': timestamp,
|
||||
'datetime': this.iso8601 (timestamp),
|
||||
'lastTradeTimestamp': undefined,
|
||||
@@ -296,6 +306,7 @@ module.exports = class btcbox extends Exchange {
|
||||
'trades': trades,
|
||||
'fee': undefined,
|
||||
'info': order,
|
||||
'average': undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user