Market Data
public/get_tickers
Returns a map of instrument name to latest ticker snapshot for an instrument_type. Options require both currency and an 8-digit expiry_date (YYYYMMDD); perps and spot accept an optional currency (omit to fetch all currencies) and reject expiry_date. Public endpoint.
POST
/
public
/
get_tickers
public/get_tickers
curl --request POST \
--url https://api.derive.xyz/v3/public/get_tickers \
--header 'Content-Type: application/json' \
--data '
{
"currency": null,
"expiry_date": null
}
'import requests
url = "https://api.derive.xyz/v3/public/get_tickers"
payload = {
"currency": None,
"expiry_date": None
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({currency: null, expiry_date: null})
};
fetch('https://api.derive.xyz/v3/public/get_tickers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.derive.xyz/v3/public/get_tickers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => null,
'expiry_date' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.derive.xyz/v3/public/get_tickers"
payload := strings.NewReader("{\n \"currency\": null,\n \"expiry_date\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.derive.xyz/v3/public/get_tickers")
.header("Content-Type", "application/json")
.body("{\n \"currency\": null,\n \"expiry_date\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/public/get_tickers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": null,\n \"expiry_date\": null\n}"
response = http.request(request)
puts response.read_body{
"tickers": {}
}Body
application/json
Parameters for public/get_tickers. expiry_date accepts either a JSON number or a string-encoded 8-digit date (e.g. 20260511).
Response
Success
A map of instrument name to ticker: {"tickers": {<instrument_name>: <ticker_data>}}. Each ticker value matches the payload of a ticker_slim.{instrument_name}.{interval} subscription update.
Show child attributes
Show child attributes
public/get_tickers
curl --request POST \
--url https://api.derive.xyz/v3/public/get_tickers \
--header 'Content-Type: application/json' \
--data '
{
"currency": null,
"expiry_date": null
}
'import requests
url = "https://api.derive.xyz/v3/public/get_tickers"
payload = {
"currency": None,
"expiry_date": None
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({currency: null, expiry_date: null})
};
fetch('https://api.derive.xyz/v3/public/get_tickers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.derive.xyz/v3/public/get_tickers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => null,
'expiry_date' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.derive.xyz/v3/public/get_tickers"
payload := strings.NewReader("{\n \"currency\": null,\n \"expiry_date\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.derive.xyz/v3/public/get_tickers")
.header("Content-Type", "application/json")
.body("{\n \"currency\": null,\n \"expiry_date\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/public/get_tickers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": null,\n \"expiry_date\": null\n}"
response = http.request(request)
puts response.read_body{
"tickers": {}
}