curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/instruments/most-traded \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/instruments/most-traded"
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/most-traded', 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/most-traded",
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/most-traded"
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/most-traded")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/instruments/most-traded")
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": [
{
"currency": "BTC",
"instrument": "BTC-7JUN24-72000-C",
"contractVolume": 227.89999999999915
},
{
"currency": "BTC",
"instrument": "BTC-14JUN24-73000-C",
"contractVolume": 221.09999999999997
},
{
"currency": "BTC",
"instrument": "BTC-28JUN24-80000-C",
"contractVolume": 177.6999999999998
},
{
"currency": "BTC",
"instrument": "BTC-7JUN24-70000-C",
"contractVolume": 174.5
},
{
"currency": "BTC",
"instrument": "BTC-7JUN24-68000-C",
"contractVolume": 174.29999999999984
},
{
"currency": "BTC",
"instrument": "BTC-3JUN24-69500-C",
"contractVolume": 152.20000000000002
},
{
"currency": "BTC",
"instrument": "BTC-7JUN24-71000-C",
"contractVolume": 151.59999999999985
},
{
"currency": "BTC",
"instrument": "BTC-28JUN24-60000-P",
"contractVolume": 142.89999999999995
},
{
"currency": "BTC",
"instrument": "BTC-28JUN24-85000-C",
"contractVolume": 135.9
},
{
"currency": "BTC",
"instrument": "BTC-28JUN24-68000-P",
"contractVolume": 131.99999999999994
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Instruments Most Traded
This endpoint returns the most traded instruments on a selected exchange for a selected underlying currency, for a given date range. Users can filter out select trade types: “ALL” trades, “Block” trades and “Non-Block” trades.
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/instruments/most-traded \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/instruments/most-traded"
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/most-traded', 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/most-traded",
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/most-traded"
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/most-traded")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/instruments/most-traded")
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": [
{
"currency": "BTC",
"instrument": "BTC-7JUN24-72000-C",
"contractVolume": 227.89999999999915
},
{
"currency": "BTC",
"instrument": "BTC-14JUN24-73000-C",
"contractVolume": 221.09999999999997
},
{
"currency": "BTC",
"instrument": "BTC-28JUN24-80000-C",
"contractVolume": 177.6999999999998
},
{
"currency": "BTC",
"instrument": "BTC-7JUN24-70000-C",
"contractVolume": 174.5
},
{
"currency": "BTC",
"instrument": "BTC-7JUN24-68000-C",
"contractVolume": 174.29999999999984
},
{
"currency": "BTC",
"instrument": "BTC-3JUN24-69500-C",
"contractVolume": 152.20000000000002
},
{
"currency": "BTC",
"instrument": "BTC-7JUN24-71000-C",
"contractVolume": 151.59999999999985
},
{
"currency": "BTC",
"instrument": "BTC-28JUN24-60000-P",
"contractVolume": 142.89999999999995
},
{
"currency": "BTC",
"instrument": "BTC-28JUN24-85000-C",
"contractVolume": 135.9
},
{
"currency": "BTC",
"instrument": "BTC-28JUN24-68000-P",
"contractVolume": 131.99999999999994
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Authorizations
Query Parameters
[Required] The exchange for which to retrieve the listed option level 1 quotes. [Examples] deribit | okex | bybit
[Required] The underlying currency for which there are listed option instruments. [Examples] BTC | SOL_USDC Note: inverse options have underlying currencies formatted as (BTC, ETH) while linear option currency formats include the stable coin in the same (SOL_USDC)
[Required] Payload only includes data after this date (inclusive). [Formats] seconds | milliseconds | iso8601 [Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00
[Required] Payload only includes data before this date (exclusive). [Formats] seconds | milliseconds | iso8601 [Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00
[Optional] Time format of the timestamps in the return payload. [Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable
[Optional] This flag enables users to filter for only blockTrade or non-blockTrades. If the user wants everything returned they can choose to leave the parameter blank.
Was this page helpful?