Skip to content

Commit

Permalink
ftx parseTrade OTC trades market id refix
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jan 14, 2022
1 parent 9a90b0f commit ca93241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ftx.js
Expand Up @@ -995,10 +995,10 @@ module.exports = class ftx extends Exchange {
const quoteId = this.safeString (trade, 'quoteCurrency');
let defaultMarketId = undefined;
if ((baseId !== undefined) && (quoteId !== undefined)) {
defaultMarketId = baseId + '-' + quoteId;
defaultMarketId = baseId + '/' + quoteId;
}
const marketId = this.safeString (trade, 'market', defaultMarketId);
market = this.safeMarket (marketId, market);
market = this.safeMarket (marketId, market, '/');
const symbol = market['symbol'];
const timestamp = this.parse8601 (this.safeString (trade, 'time'));
const priceString = this.safeString (trade, 'price');
Expand Down

0 comments on commit ca93241

Please sign in to comment.