Practical guide into an easy start with Kuna's public endpoints
Call public endpoints
All public endpoints do not need authorization and body parameters to be sent. The headers config is pretty simple.
Header settings for public endpoints
The following headers config should work for any public endpoint:
Header | Value | Description |
---|---|---|
accept | application/json | The client expects response data as JSON |
Example. Get all trading pairs
Please open preferred API client, select GET method and call {{baseURL}}/v4/markets/public/getAll
endpoint:
No auth, no parameters, no body required for this request.
You should see something like this in your API client:
Example. Get public order book for BTC_USDT
Please open preferred API client, select GET method and call {{baseURL}}/v4/order/public/book/BTC_USDT?level=5
endpoint:
No auth and body required. We need to provide two parameters, though,- trading pair
(1) and level
(2).
You should see something like this in your API client: