Market rates [Private]

API route for getting current rates for different assets.

Method name:/v2/rate/equivalent
Request type:GET

📘

To call private endpoints, you need to get a JWT token or an API key for authentication.

Here you can learn in detail how to successfully authenticate.

The endpoint returns the market rates for all assets available on the Kuna Pro exchange, regardless of whether these assets can be used within the Kuna Core service.

Rates from this endpoint differ from those /v2/rate/freeze by the markup amount (rates on /v2/rate/freeze include fees).

The markup may vary depending on the cost of the transaction and the contractual terms.

Exemplary request

const url = BASE_URL; const path = "/v2/rate/equivalent"; const options = { method: "GET", headers: { accept: "application/json", "Content-Type": "application/json", "Authorization": `Bearer ${jwt.accessToken}` // data.accessToken - generated a JWT token via /v2/auth/login. }, }; fetch(baseUrl + "/v2/rate/equivalent", options) .then((response) => response.json()) .then((showResponse) => console.log(showResponse.data));
import requests url = BASE_URL path = "/v2/rate/equivalent" headers = { "accept": "application/json", "Content-Type": "application/json", "Authorization": "Bearer " + data.accessToken # data.accessToken - generated a JWT token via /v2/auth/login. } request = requests.get(url + path, headers=headers) print(request.json())

How to call public endpoints here

Swagger here

Response

{ "data": [ { "asset": "BTC", "equivalent": { "USD": "26230.101302460202605", "UAH": "1230963", "BTC": "1", "EUR": "29000", "ETH": "7.0328209472849347544", "TRX": "0", "USDT": "26230.101302460202605", "INR": "2618735.9060545462282", "AED": "118825.70419136243412", "TRY": "1020276.0049730625777", "BRL": "161507.66889276670559" } } ] }

Did this page help you?