Market Data
List instruments with pagination
Returns a paginated list of full instrument definitions filtered by instrument_type, optional currency, and expired flag, with page/page_size (max 1000) controls and pagination metadata. Expired options are included when the expired flag is set. Public endpoint.
POST
/
public
/
get_all_instruments
List instruments with pagination
curl --request POST \
--url https://api.derive.xyz/v3/public/get_all_instruments \
--header 'Content-Type: application/json' \
--data '
{
"expired": true,
"currency": null,
"page": null,
"page_size": null
}
'import requests
url = "https://api.derive.xyz/v3/public/get_all_instruments"
payload = {
"expired": True,
"currency": None,
"page": None,
"page_size": 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({expired: true, currency: null, page: null, page_size: null})
};
fetch('https://api.derive.xyz/v3/public/get_all_instruments', 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_all_instruments",
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([
'expired' => true,
'currency' => null,
'page' => null,
'page_size' => 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_all_instruments"
payload := strings.NewReader("{\n \"expired\": true,\n \"currency\": null,\n \"page\": null,\n \"page_size\": 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_all_instruments")
.header("Content-Type", "application/json")
.body("{\n \"expired\": true,\n \"currency\": null,\n \"page\": null,\n \"page_size\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/public/get_all_instruments")
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 \"expired\": true,\n \"currency\": null,\n \"page\": null,\n \"page_size\": null\n}"
response = http.request(request)
puts response.read_body{
"instruments": [
{
"amount_step": "<string>",
"base_asset_address": "<string>",
"base_asset_sub_id": "<string>",
"base_currency": "<string>",
"base_fee": "<string>",
"fifo_min_allocation": "<string>",
"instrument_name": "<string>",
"is_active": true,
"maker_fee_rate": "<string>",
"maximum_amount": "<string>",
"minimum_amount": "<string>",
"pro_rata_amount_step": "<string>",
"pro_rata_fraction": "<string>",
"quote_currency": "<string>",
"scheduled_activation": 123,
"scheduled_deactivation": 123,
"taker_fee_rate": "<string>",
"tick_size": "<string>",
"erc20_details": {
"borrow_index": "<string>",
"decimals": 1,
"supply_index": "<string>",
"underlying_erc20_address": "<string>"
},
"mark_price_fee_rate_cap": "<string>",
"option_details": {
"expiry": 1,
"index": "<string>",
"option_type": "<string>",
"strike": "<string>",
"settlement_price": "<string>"
},
"perp_details": {
"aggregate_funding": "<string>",
"funding_rate": "<string>",
"index": "<string>",
"max_rate_per_hour": "<string>",
"min_rate_per_hour": "<string>",
"static_interest_rate": "<string>"
}
}
],
"pagination": {
"count": 1,
"num_pages": 1
}
}Body
application/json
Related topics
List names of all live instrumentsList a subaccount's quotes with historyList a subaccount's RFQs with history⌘I
List instruments with pagination
curl --request POST \
--url https://api.derive.xyz/v3/public/get_all_instruments \
--header 'Content-Type: application/json' \
--data '
{
"expired": true,
"currency": null,
"page": null,
"page_size": null
}
'import requests
url = "https://api.derive.xyz/v3/public/get_all_instruments"
payload = {
"expired": True,
"currency": None,
"page": None,
"page_size": 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({expired: true, currency: null, page: null, page_size: null})
};
fetch('https://api.derive.xyz/v3/public/get_all_instruments', 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_all_instruments",
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([
'expired' => true,
'currency' => null,
'page' => null,
'page_size' => 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_all_instruments"
payload := strings.NewReader("{\n \"expired\": true,\n \"currency\": null,\n \"page\": null,\n \"page_size\": 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_all_instruments")
.header("Content-Type", "application/json")
.body("{\n \"expired\": true,\n \"currency\": null,\n \"page\": null,\n \"page_size\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/public/get_all_instruments")
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 \"expired\": true,\n \"currency\": null,\n \"page\": null,\n \"page_size\": null\n}"
response = http.request(request)
puts response.read_body{
"instruments": [
{
"amount_step": "<string>",
"base_asset_address": "<string>",
"base_asset_sub_id": "<string>",
"base_currency": "<string>",
"base_fee": "<string>",
"fifo_min_allocation": "<string>",
"instrument_name": "<string>",
"is_active": true,
"maker_fee_rate": "<string>",
"maximum_amount": "<string>",
"minimum_amount": "<string>",
"pro_rata_amount_step": "<string>",
"pro_rata_fraction": "<string>",
"quote_currency": "<string>",
"scheduled_activation": 123,
"scheduled_deactivation": 123,
"taker_fee_rate": "<string>",
"tick_size": "<string>",
"erc20_details": {
"borrow_index": "<string>",
"decimals": 1,
"supply_index": "<string>",
"underlying_erc20_address": "<string>"
},
"mark_price_fee_rate_cap": "<string>",
"option_details": {
"expiry": 1,
"index": "<string>",
"option_type": "<string>",
"strike": "<string>",
"settlement_price": "<string>"
},
"perp_details": {
"aggregate_funding": "<string>",
"funding_rate": "<string>",
"index": "<string>",
"max_rate_per_hour": "<string>",
"min_rate_per_hour": "<string>",
"static_interest_rate": "<string>"
}
}
],
"pagination": {
"count": 1,
"num_pages": 1
}
}