We are introducing dynamic rate precision to our markets (API Users)
We would like to inform that on 1.08.2022 the precision of the rate in our markets will be variable.
The following information is targeted at users using our API. General information on variable precision can be found here
In order to ensure the correct handling of the rate precision in the selected market, this information should be taken from the ticker of the given market.
In our API, we have added new parameters that allow you to check the current market configuration.
New parameters:
market.amountPrecision - very similar parameter to the old parameter market.first.scale. It defines the acceptable number of decimal places (precision) for the first currency.
market.pricePrecision - specifies the acceptable number of decimal places for transaction price or second currency on a selected market. Use this parameter to round the total price of bids/trades.
market.ratePrecision - specifies the acceptable number of decimal places for rate on a selected market.
E.g. Maximum rate precision for ETH/EUR is 1 decimal. This means that you can place an offer with rate 2000 EUR or 2000.1 EUR but not 2000.12 EUR
If the precision of the rate in the submitted offer is higher than the supported one, the following response will be returned:
{
"status": "Fail",
"errors": [
"CURRENCY_PRECISION_INVALID"
]
}
In this case, update the offer parameters in accordance with those returned from the ticker.
The parameters described above are also described in our API documentation:
v1.0.5-en:
EN: Introduction : https://docs.zonda.exchange/v1.0.5-en/reference
Information about new ticker parameters is sent using REST, public and public websocket. Links to articles with changes:
EN:
Ticker 1: https://docs.zonda.exchange/v1.0.5-en/reference/ticker-1
Ticker 2: https://docs.zonda.exchange/v1.0.5-en/reference/ticker-2