curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/instruments/information \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/instruments/information"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/markets/derivatives/analytics/instruments/information', 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.amberdata.com/markets/derivatives/analytics/instruments/information",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amberdata.com/markets/derivatives/analytics/instruments/information"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.amberdata.com/markets/derivatives/analytics/instruments/information")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/instruments/information")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"data": [
{
"ts": "2024-04-08 17:23:00.0",
"exchange": "deribit",
"instrument": "DERIBIT-ETH-28MAR25-2000.0-P",
"nativeInstrument": "ETH-28MAR25-2000-P",
"multiplier": 1,
"putCall": "P",
"expiration": "2025-03-28 08:00:00.0",
"currency": "ETH",
"strike": 2000
}
]
}
}{}Options Instruments
This endpoint returns all available exchanges, currencies and option instruments. If a timestamp is used we can then filter the information for historical data.
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/instruments/information \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/instruments/information"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/markets/derivatives/analytics/instruments/information', 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.amberdata.com/markets/derivatives/analytics/instruments/information",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amberdata.com/markets/derivatives/analytics/instruments/information"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.amberdata.com/markets/derivatives/analytics/instruments/information")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/instruments/information")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"data": [
{
"ts": "2024-04-08 17:23:00.0",
"exchange": "deribit",
"instrument": "DERIBIT-ETH-28MAR25-2000.0-P",
"nativeInstrument": "ETH-28MAR25-2000-P",
"multiplier": 1,
"putCall": "P",
"expiration": "2025-03-28 08:00:00.0",
"currency": "ETH",
"strike": 2000
}
]
}
}{}Authorizations
Query Parameters
[Optional] The exchange for which to retrieve listed option instruments.
[Examples] deribit | okex | bybit
[Optional] The underlying currency for which there are listed option instruments.
[Examples] BTC | SOL_USDC
Note: inverse options underlying currencies are formatted as (BTC, ETH) while linear options currency formats include the stable coin (SOL_USDC)
[Optional] Filter records based on the specified expiration date.
[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00
[Optional] The option type
[Examples] C | P
[Optional] The option instrument subset with a given strike price.
[Examples] 100000 | 3500
[Optional] A select historical timestamp for which a list of option instruments were active at the time.
[Examples] 2024-04-03T08:00:00.000Z
Supported Formats: milliseconds | ms* | iso | iso8601 | hr | human_readable
[Optional] Time format of the timestamps in the return payload.
[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable
Was this page helpful?