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
+13
@@ -324,6 +324,16 @@ module.exports = class zaif extends Exchange {
|
||||
}
|
||||
|
||||
parseOrder (order, market = undefined) {
|
||||
//
|
||||
// {
|
||||
// "currency_pair": "btc_jpy",
|
||||
// "action": "ask",
|
||||
// "amount": 0.03,
|
||||
// "price": 56000,
|
||||
// "timestamp": 1402021125,
|
||||
// "comment" : "demo"
|
||||
// }
|
||||
//
|
||||
let side = this.safeString (order, 'action');
|
||||
side = (side === 'bid') ? 'buy' : 'sell';
|
||||
const timestamp = this.safeTimestamp (order, 'timestamp');
|
||||
@@ -348,6 +358,7 @@ module.exports = class zaif extends Exchange {
|
||||
}
|
||||
return {
|
||||
'id': id,
|
||||
'clientOrderId': undefined,
|
||||
'timestamp': timestamp,
|
||||
'datetime': this.iso8601 (timestamp),
|
||||
'lastTradeTimestamp': undefined,
|
||||
@@ -362,6 +373,8 @@ module.exports = class zaif extends Exchange {
|
||||
'remaining': undefined,
|
||||
'trades': undefined,
|
||||
'fee': undefined,
|
||||
'info': undefined,
|
||||
'average': undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user