Skip to content

Commit

Permalink
reclean exmo
Browse files Browse the repository at this point in the history
  • Loading branch information
frosty00 committed Dec 28, 2022
1 parent fe47fa9 commit 4277eb1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions js/exmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,6 @@ module.exports = class exmo extends Exchange {
//
const id = this.safeString (order, 'order_id');
const timestamp = this.safeTimestamp (order, 'created');
let symbol = undefined;
const side = this.safeString (order, 'type');
let marketId = undefined;
if ('pair' in order) {
Expand All @@ -1505,6 +1504,7 @@ module.exports = class exmo extends Exchange {
}
}
market = this.safeMarket (marketId, market);
const symbol = market['symbol'];
let amount = this.safeString (order, 'quantity');
if (amount === undefined) {
const amountField = (side === 'buy') ? 'in_amount' : 'out_amount';
Expand All @@ -1513,18 +1513,14 @@ module.exports = class exmo extends Exchange {
const price = this.safeString (order, 'price');
const cost = this.safeString (order, 'amount');
const transactions = this.safeValue (order, 'trades', []);
const status = this.safeString (order, 'status'); // in case we need to redefine it for canceled orders
if (market !== undefined) {
symbol = market['symbol'];
}
const clientOrderId = this.safeInteger (order, 'client_id');
return this.safeOrder ({
'id': id,
'clientOrderId': clientOrderId,
'datetime': this.iso8601 (timestamp),
'timestamp': timestamp,
'lastTradeTimestamp': undefined,
'status': status,
'status': undefined,
'symbol': symbol,
'type': 'limit',
'timeInForce': undefined,
Expand Down

0 comments on commit 4277eb1

Please sign in to comment.