Skip to content

Commit

Permalink
Fixes poloniex parse trade
Browse files Browse the repository at this point in the history
  • Loading branch information
isimic95 committed Dec 6, 2017
1 parent 45409e3 commit b867e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/poloniex.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ module.exports = class poloniex extends Exchange {
let timestamp = this.parse8601 (trade['date']);
let symbol = undefined;
if ((!market) && ('currencyPair' in trade))
market = this.markets_by_id[trade['currencyPair']]['symbol'];
market = this.markets_by_id[trade['currencyPair']];
if (market)
symbol = market['symbol'];
let side = trade['type'];
Expand Down

0 comments on commit b867e9b

Please sign in to comment.