Bitfinex v2 fetch_markets() all price precisions are None
See original GitHub issue- OS: Linux Mint
- Programming Language version: Python 3.10
- CCXT version: 1.86.23
exchange = ccxt.bitfinex2()
print(exchange.fetch_markets())
...
{'id': 'tDUSK:BTC', 'symbol': 'DUSK/BTC', 'base': 'DUSK', 'quote': 'BTC', 'settle': None, 'baseId': 'fDUSK', 'quoteId': 'fBTC', 'settleId': 'fBTC', 'type': 'spot', 'spot': True, 'margin': False, 'swap': False, 'future': False, 'option': False, 'active': True, 'contract': False, 'linear': None, 'inverse': None, 'contractSize': None, 'expiry': None, 'expiryDatetime': None, 'strike': None, 'optionType': None, 'precision': {'amount': 8, 'price': None}, 'limits': {'leverage': {'min': None, 'max': None}, 'amount': {'min': 18.0, 'max': 100000.0}, 'price': {'min': 1e-08, 'max': None}, 'cost': {'min': None, 'max': None}}, 'info': [None, None, None, '18.0', '100000.0', None, None, None, None, None, None, None]}
...
All ‘price’ precisions are None. The information is not available in the ‘info’ section either. I believe this is because the end point to fetch this info was changed in the ccxt code recently.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Introduction - Bitfinex
Price Precision The precision level of all trading prices is based on significant figures. All pairs on Bitfinex use up to 5 significant...
Read more >python/ccxt/bitfinex.py - searchcode
1# -*- coding: utf-8 -*- 2 3# PLEASE DO NOT EDIT THIS FILE, ... 572 # The precision level of all trading prices...
Read more >ccxt Documentation - Read the Docs
ccxt Documentation, 1.13.142. 1 – id name ver doc countries bitfinex2. Bitfinex v2. 2. API. British Virgin Islands bitflyer.
Read more >V2 REST — Bitfinex 1.0.2 documentation
Client for the bitfinex.com API REST V2. ... bfx_client.platform_status() ... It is provided on a price aggregated basis, with customizable precision.
Read more >Error Messages, by Exakat
Message File Line
$this‑>id . ' allows limit orders only' /php/itbit.php 566
$this‑>id . ' returned ' . $this‑>json($response) /php/cex.php 1234
/php/cex.php 581
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@JovianMoon you’re right I had my master branch outdated so I got confused for a bit I’m sorry for that. I’ll fix that line soon
@JovianMoon sorry I misinterpreted the issue initially, as you said the information is not available in v2 and yes we recently updated fetch_markets to use v2 because we need to follow exchanges’ recommendations and adopt their new api versions because they add new features, and eventually v1 will be deprecated. Nonetheless, v2 is not in the final state yet so this information might be added in the future we’ll pay attention to that. Moreover, if that information is crucial to you, consider using the bitfinex (v1) instead of bitfinex2 (v2).