Skip to main content

Exchange Precision

Get the price and quantity precision for a symbol on a given exchange. Use the returned values to format price and quantity correctly when placing orders.

HTTP

MethodPOST
Endpoint/trade/api/v2/exchangePrecision

Request Parameters

ParameterTypeMandatoryDescription
exchangestringYesSee Exchange Identifiers.
symbolstringNoBASE/QUOTE, e.g. BTC/INR, BTC/USDT. If omitted, returns precision for all symbols on the exchange.

Example

import requests

body = {"exchange": "coinswitchx", "symbol": "BTC/INR"}
headers, path = sign_request("POST", "/trade/api/v2/exchangePrecision")
response = requests.post(BASE_URL + path, headers=headers, json=body)
print(response.json())

Response

{
"data": {
"coinswitchx": {
"BTC/INR": {
"base": 5,
"quote": 2,
"limit": 0
}
}
}
}

Response Parameters

data is keyed by exchange, then by symbol. Each symbol object:

FieldTypeDescription
baseintegerDecimal places allowed for quantity (the base asset).
quoteintegerDecimal places allowed for price (the quote asset).
limitintegerLimit-order specific precision adjustment (typically 0).