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
+21
@@ -255,6 +255,8 @@ module.exports = class lykke extends Exchange {
|
||||
'max': undefined,
|
||||
},
|
||||
},
|
||||
'baseId': undefined,
|
||||
'quoteId': undefined,
|
||||
});
|
||||
}
|
||||
return result;
|
||||
@@ -316,6 +318,23 @@ module.exports = class lykke extends Exchange {
|
||||
}
|
||||
|
||||
parseOrder (order, market = undefined) {
|
||||
//
|
||||
// {
|
||||
// "Id": "string",
|
||||
// "Status": "Unknown",
|
||||
// "AssetPairId": "string",
|
||||
// "Volume": 0,
|
||||
// "Price": 0,
|
||||
// "RemainingVolume": 0,
|
||||
// "LastMatchTime": "2020-03-26T20:58:50.710Z",
|
||||
// "CreatedAt": "2020-03-26T20:58:50.710Z",
|
||||
// "Type": "Unknown",
|
||||
// "LowerLimitPrice": 0,
|
||||
// "LowerPrice": 0,
|
||||
// "UpperLimitPrice": 0,
|
||||
// "UpperPrice": 0
|
||||
// }
|
||||
//
|
||||
const status = this.parseOrderStatus (this.safeString (order, 'Status'));
|
||||
let symbol = undefined;
|
||||
if (market === undefined) {
|
||||
@@ -341,6 +360,7 @@ module.exports = class lykke extends Exchange {
|
||||
return {
|
||||
'info': order,
|
||||
'id': id,
|
||||
'clientOrderId': undefined,
|
||||
'timestamp': timestamp,
|
||||
'datetime': this.iso8601 (timestamp),
|
||||
'lastTradeTimestamp': lastTradeTimestamp,
|
||||
@@ -355,6 +375,7 @@ module.exports = class lykke extends Exchange {
|
||||
'remaining': remaining,
|
||||
'status': status,
|
||||
'fee': undefined,
|
||||
'trades': undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user