Get all traded markets [Public]
Get the list of all the traded pairs on Kuna exchange. Returns an array of objects, each with the pair string, the tickers of both base and quoted asset alongside their precisions.
This is a public route, no need for authorization.
Method name: | /v4/markets/public/getAll |
Request type: | GET |
To increase the API rate limits, you can use a private endpoint: /v4/markets/private/getAll
Exemplary request
const url = "https://api.kuna.io";
const path = "/v4/markets/public/getAll";
const options = {
headers: {
accept: "application/json",
},
};
fetch(url + path, options)
.then((response) => response.json())
.then((showResponse) => console.log(showResponse.data));
import requests
url = "https://api.kuna.io"
path = "/v4/markets/public/getAll"
headers = {
"accept": "application/json"
}
request = requests.get(url + path, headers=headers)
print(request.json())
How to call public endpoints here
Response
{
"pair": "BTC_USDT", // Traded pair of assets
"baseAsset": { // The base asset of the traded pair, the one to sell or buy as a result of the trade
"code": "BTC",
"precision": 6 // Maximum amount of digits for the decimal part of a number
},
"quoteAsset": { // The quoted asset of the traded pair, the one to use to sell or buy the base asset
"code": "USDT",
"precision": 2 // Maximum amount of digits for the decimal part of a number
},
"tickerPriceChange": "-0.07"// Relative change compared with the last tick
}
Updated about 1 year ago