You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently precision values (for quantity/price) in market structures are not normalised. For example for the precision of 1e-4, this could be represented with the form '4' or '0.0001' depending on the exchange.
Operating System
No response
Programming Languages
Python 3.11
CCXT Version
4.2.99
Description
Currently precision values (for quantity/price) in market structures are not normalised. For example for the precision of 1e-4, this could be represented with the form '4' or '0.0001' depending on the exchange.
E.g. Bybit ETH/USDT (using decimal form)
'precision': {'amount': 1e-05, 'price': 0.01, 'cost': None, 'base': None, 'quote': None}
E.g. Binance ETH/USDT (using integer form)
'precision': {'amount': 4, 'price': 2, 'cost': None, 'base': 8, 'quote': 8}
It'd be better to use the form '0.0001' so that when e.g. min quantity is something like 1000KRW (e.g. Upbit ETH/KRW) then there is no issue.
Code
The text was updated successfully, but these errors were encountered: