Skip to content

Commit

Permalink
Merge pull request ccxt#17070 from carlosmiei/bybit-markets-update
Browse files Browse the repository at this point in the history
fix(Bybit): spot market status

[ci skip]
  • Loading branch information
Travis CI committed Mar 6, 2023
1 parent ff4ff2b commit dab7efa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dist/ccxt.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -67689,7 +67689,8 @@ module.exports = class bybit extends Exchange {
const base = this.safeCurrencyCode (baseId);
const quote = this.safeCurrencyCode (quoteId);
const symbol = base + '/' + quote;
const active = this.safeInteger (market, 'status') === 1;
const status = this.safeString (market, 'status');
const active = (status === 'trading') || (status === '1'); // latter can be removed after 10/03
const lotSizeFilter = this.safeValue (market, 'lotSizeFilter');
const priceFilter = this.safeValue (market, 'priceFilter');
const quotePrecision = this.safeNumber (lotSizeFilter, 'quotePrecision');
Expand Down
3 changes: 2 additions & 1 deletion php/async/bybit.php
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,8 @@ public function fetch_spot_markets($params) {
$base = $this->safe_currency_code($baseId);
$quote = $this->safe_currency_code($quoteId);
$symbol = $base . '/' . $quote;
$active = $this->safe_integer($market, 'status') === 1;
$status = $this->safe_string($market, 'status');
$active = ($status === 'trading') || ($status === '1'); // latter can be removed after 10/03
$lotSizeFilter = $this->safe_value($market, 'lotSizeFilter');
$priceFilter = $this->safe_value($market, 'priceFilter');
$quotePrecision = $this->safe_number($lotSizeFilter, 'quotePrecision');
Expand Down
3 changes: 2 additions & 1 deletion php/bybit.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion python/ccxt/async_support/bybit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,8 @@ async def fetch_spot_markets(self, params):
base = self.safe_currency_code(baseId)
quote = self.safe_currency_code(quoteId)
symbol = base + '/' + quote
active = self.safe_integer(market, 'status') == 1
status = self.safe_string(market, 'status')
active = (status == 'trading') or (status == '1') # latter can be removed after 10/03
lotSizeFilter = self.safe_value(market, 'lotSizeFilter')
priceFilter = self.safe_value(market, 'priceFilter')
quotePrecision = self.safe_number(lotSizeFilter, 'quotePrecision')
Expand Down
3 changes: 2 additions & 1 deletion python/ccxt/bybit.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dab7efa

Please sign in to comment.