Top Trades
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/options-scanner/top-trades \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/options-scanner/top-trades"
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/options-scanner/top-trades', 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/options-scanner/top-trades",
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/options-scanner/top-trades"
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/options-scanner/top-trades")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/options-scanner/top-trades")
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": [
{
"exchange": "deribit",
"currency": "BTC",
"exchangeTimestamp": 1717199992528,
"indexPrice": 67481.38,
"instrument": "BTC-7JUN24-71000-C",
"exchangeDirection": "buy",
"amberdataDirection": "sell",
"blockTradeId": null,
"numberOfLegs": 0,
"tradeAmount": 0.1,
"blockAmount": null,
"tradeIv": 43.04,
"price": 0.0065,
"priceUsd": 440.034985,
"openInterestChange": 0,
"sizeUSD": 44.003498500000006,
"sizeDelta": 0.021013000000000004,
"sizeVega": 2.5712,
"sizeGamma": 0.000007,
"sizeTheta": -8.781606,
"hedgeInstrument": null,
"hedgeIsBuySide": null,
"hedgePrice": null,
"hedgeVolume": null
},
{
"exchange": "deribit",
"currency": "BTC",
"exchangeTimestamp": 1717199915036,
"indexPrice": 67493.38,
"instrument": "BTC-7JUN24-67000-P",
"exchangeDirection": "sell",
"amberdataDirection": "sell",
"blockTradeId": null,
"numberOfLegs": 0,
"tradeAmount": 0.1,
"blockAmount": null,
"tradeIv": 42.71,
"price": 0.0175,
"priceUsd": 1184.8509750000003,
"openInterestChange": 0,
"sizeUSD": 118.48509750000004,
"sizeDelta": -0.041572,
"sizeVega": 3.4785719999999998,
"sizeGamma": 0.00001,
"sizeTheta": -11.875451,
"hedgeInstrument": null,
"hedgeIsBuySide": null,
"hedgePrice": null,
"hedgeVolume": null
},
{
"exchange": "deribit",
"currency": "BTC",
"exchangeTimestamp": 1717199908178,
"indexPrice": 67493.66,
"instrument": "BTC-7JUN24-67000-P",
"exchangeDirection": "sell",
"amberdataDirection": "sell",
"blockTradeId": null,
"numberOfLegs": 0,
"tradeAmount": 0.1,
"blockAmount": null,
"tradeIv": 42.71,
"price": 0.0175,
"priceUsd": 1184.852725,
"openInterestChange": 0,
"sizeUSD": 118.48527250000001,
"sizeDelta": -0.04159,
"sizeVega": 3.478832,
"sizeGamma": 0.00001,
"sizeTheta": -11.876933000000001,
"hedgeInstrument": null,
"hedgeIsBuySide": null,
"hedgePrice": null,
"hedgeVolume": null
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Trades / Flow
Top Trades
This endpoint contains all the relevant information about the most important trades both on screen and blocked. Besides the usual information this endpoint have some proprietary nuances that helps market watchers to read the flow deeply. Among the others: - “Amberdata Direction” is the metrics we developed for gauging the real initiator of a trade - “Delta Hedge” highlight is a block trade contained a futures leg - The information of the orderbook prior to the trade (“pre” columns) and post (“post” columns)
GET
/
analytics
/
options-scanner
/
top-trades
Top Trades
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/options-scanner/top-trades \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/options-scanner/top-trades"
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/options-scanner/top-trades', 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/options-scanner/top-trades",
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/options-scanner/top-trades"
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/options-scanner/top-trades")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/options-scanner/top-trades")
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": [
{
"exchange": "deribit",
"currency": "BTC",
"exchangeTimestamp": 1717199992528,
"indexPrice": 67481.38,
"instrument": "BTC-7JUN24-71000-C",
"exchangeDirection": "buy",
"amberdataDirection": "sell",
"blockTradeId": null,
"numberOfLegs": 0,
"tradeAmount": 0.1,
"blockAmount": null,
"tradeIv": 43.04,
"price": 0.0065,
"priceUsd": 440.034985,
"openInterestChange": 0,
"sizeUSD": 44.003498500000006,
"sizeDelta": 0.021013000000000004,
"sizeVega": 2.5712,
"sizeGamma": 0.000007,
"sizeTheta": -8.781606,
"hedgeInstrument": null,
"hedgeIsBuySide": null,
"hedgePrice": null,
"hedgeVolume": null
},
{
"exchange": "deribit",
"currency": "BTC",
"exchangeTimestamp": 1717199915036,
"indexPrice": 67493.38,
"instrument": "BTC-7JUN24-67000-P",
"exchangeDirection": "sell",
"amberdataDirection": "sell",
"blockTradeId": null,
"numberOfLegs": 0,
"tradeAmount": 0.1,
"blockAmount": null,
"tradeIv": 42.71,
"price": 0.0175,
"priceUsd": 1184.8509750000003,
"openInterestChange": 0,
"sizeUSD": 118.48509750000004,
"sizeDelta": -0.041572,
"sizeVega": 3.4785719999999998,
"sizeGamma": 0.00001,
"sizeTheta": -11.875451,
"hedgeInstrument": null,
"hedgeIsBuySide": null,
"hedgePrice": null,
"hedgeVolume": null
},
{
"exchange": "deribit",
"currency": "BTC",
"exchangeTimestamp": 1717199908178,
"indexPrice": 67493.66,
"instrument": "BTC-7JUN24-67000-P",
"exchangeDirection": "sell",
"amberdataDirection": "sell",
"blockTradeId": null,
"numberOfLegs": 0,
"tradeAmount": 0.1,
"blockAmount": null,
"tradeIv": 42.71,
"price": 0.0175,
"priceUsd": 1184.852725,
"openInterestChange": 0,
"sizeUSD": 118.48527250000001,
"sizeDelta": -0.04159,
"sizeVega": 3.478832,
"sizeGamma": 0.00001,
"sizeTheta": -11.876933000000001,
"hedgeInstrument": null,
"hedgeIsBuySide": null,
"hedgePrice": null,
"hedgeVolume": null
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Query Parameters
Was this page helpful?