Skip to content

Commit

Permalink
fix(bybit): parseTicker default type
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Mar 4, 2023
1 parent d7602b3 commit 8a929fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/bybit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1746,9 +1746,9 @@ module.exports = class bybit extends Exchange {
//
const timestamp = this.safeInteger (ticker, 'time');
const marketId = this.safeString (ticker, 'symbol');
const marketType = (market !== undefined) ? market['type'] : 'linear';
market = this.safeMarket (marketId, market, undefined, marketType);
const symbol = this.safeSymbol (marketId, market, undefined, marketType);
const defaultType = this.safeString (this.options, 'defaultType', 'spot');
market = this.safeMarket (marketId, market, undefined, defaultType);
const symbol = this.safeSymbol (marketId, market, undefined, defaultType);
const last = this.safeString (ticker, 'lastPrice');
const open = this.safeString (ticker, 'prevPrice24h');
let percentage = this.safeString (ticker, 'price24hPcnt');
Expand Down

0 comments on commit 8a929fa

Please sign in to comment.