Skip to content

Commit

Permalink
fix symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
frosty00 committed Oct 20, 2020
1 parent eddec24 commit 902bd18
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/idex.js
Expand Up @@ -415,10 +415,8 @@ module.exports = class idex extends Exchange {
const amount = this.safeFloat (trade, 'quantity');
const cost = this.safeFloat (trade, 'quoteQuantity');
const timestamp = this.safeInteger (trade, 'time');
let symbol = undefined;
if (market !== undefined) {
symbol = market['symbol'];
}
const marketId = this.safeString (trade, 'market');
const symbol = this.safeSymbol (marketId, market, '-');
// this code handles the duality of public vs private trades
const makerSide = this.safeString (trade, 'makerSide');
const oppositeSide = (makerSide === 'buy') ? 'sell' : 'buy';
Expand Down

0 comments on commit 902bd18

Please sign in to comment.