Get Server Time
curl --request GET \
--url https://api.kraken.com/0/public/Timeimport requests
url = "https://api.kraken.com/0/public/Time"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.kraken.com/0/public/Time', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kraken.com/0/public/Time"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": [],
"result": {
"unixtime": 1688669448,
"rfc1123": "Thu, 06 Jul 23 18:50:48 +0000"
}
}Market Data
Get Server Time
Get the server’s time.
GET
/
public
/
Time
Get Server Time
curl --request GET \
--url https://api.kraken.com/0/public/Timeimport requests
url = "https://api.kraken.com/0/public/Time"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.kraken.com/0/public/Time', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kraken.com/0/public/Time"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": [],
"result": {
"unixtime": 1688669448,
"rfc1123": "Thu, 06 Jul 23 18:50:48 +0000"
}
}Was this page helpful?
⌘I