Get time on Kuna server [Public]

Returns the current time on the Kuna server.

This is a public route, no need for authorization.

Method name:/v4/public/timestamp
Request type:GET

Exemplary request

const url = "https://api.kuna.io";
const path = "/v4/public/timestamp;
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/public/timestamp"
headers = {
    "accept": "application/json"
}

request = requests.get(url + path, headers=headers)
print(request.json())

How to call public endpoints here

Swagger here

Response

{
  "timestamp": 1686740531,
  "timestamp_miliseconds": 1686740531725
}