GET https://api.cryptohopper.com/v1/exchange/{exchange}/markets/{market}/decimals

Returns the price and amount precision (number of decimals) of one market on an exchange. Falls back to 8 and 8 when no precision is stored for the market.

OAuth scope: read About scopes

Example request

curl "https://api.cryptohopper.com/v1/exchange/EXCHANGE/markets/MARKET/decimals" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Path parameters

NameTypeRequiredDescription
exchange string Required Exchange key as returned by Get available exchanges, for example binance or kucoin. Case insensitive.
market string Required Market pair, in the exchange's own pair format as returned by Get available markets, for example BTCUSDT on Binance or BTC/USDT on KuCoin.

Response

Example response (illustrative values)

{
    "data": {
        "price": "2",
        "amount": "5"
    }
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.