Decorated Trades
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/trades-flow/decorated-trades/tradfi \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/trades-flow/decorated-trades/tradfi"
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/trades-flow/decorated-trades/tradfi', 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/trades-flow/decorated-trades/tradfi",
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/trades-flow/decorated-trades/tradfi"
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/trades-flow/decorated-trades/tradfi")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/trades-flow/decorated-trades/tradfi")
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": "IBIT",
"delta": 0.43959,
"exchange": "tradfi",
"exchangeDirection": "Mid",
"exchangeTimestamp": -62135596800000,
"expirationTimestamp": -62135596800000,
"gamma": 0.00903,
"instrument": "IBIT-16JAN26-100-C",
"instrumentNormalized": "TRADFI-IBIT-16JAN26-100.0-C",
"postTradeAskPrice": 9.7,
"postTradeBidPrice": 9.6,
"postTradeMarkIv": 0.77772,
"postTradeMarkPrice": 9.73688,
"preTradeAskIv": 77.5999984741211,
"preTradeAskPrice": 9.7,
"preTradeAskVolume": 24,
"preTradeBidIv": 77.18000030517578,
"preTradeBidPrice": 9.6,
"preTradeBidVolume": 2,
"preTradeMidIv": 77.38668060302734,
"preTradeMidPrice": 9.649999618530273,
"priceUsd": 9.6,
"putCall": "C",
"rho": 0.16573,
"theta": -0.03028,
"tradeAmount": 1,
"tradeIv": 0.77178,
"underlyingPrice": 54.755,
"vega": 0.23938,
"volume24h": 1299
}
]
}
}{}Trades/Flow
Decorated Trades
This endpoint returns option “times and sales” data decorated with pre-trade level-1 order book data, along with Greeks and implied volatility metrics.Order book impact logic is used internally for GEX (“Gamma Exposure”) modeling. The TradFi decorated trades response does not include aggressor classification or direction fields such as amberdataDirection or exchangeDirection.
GET
/
analytics
/
trades-flow
/
decorated-trades
/
tradfi
Decorated Trades
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/trades-flow/decorated-trades/tradfi \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/trades-flow/decorated-trades/tradfi"
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/trades-flow/decorated-trades/tradfi', 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/trades-flow/decorated-trades/tradfi",
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/trades-flow/decorated-trades/tradfi"
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/trades-flow/decorated-trades/tradfi")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/trades-flow/decorated-trades/tradfi")
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": "IBIT",
"delta": 0.43959,
"exchange": "tradfi",
"exchangeDirection": "Mid",
"exchangeTimestamp": -62135596800000,
"expirationTimestamp": -62135596800000,
"gamma": 0.00903,
"instrument": "IBIT-16JAN26-100-C",
"instrumentNormalized": "TRADFI-IBIT-16JAN26-100.0-C",
"postTradeAskPrice": 9.7,
"postTradeBidPrice": 9.6,
"postTradeMarkIv": 0.77772,
"postTradeMarkPrice": 9.73688,
"preTradeAskIv": 77.5999984741211,
"preTradeAskPrice": 9.7,
"preTradeAskVolume": 24,
"preTradeBidIv": 77.18000030517578,
"preTradeBidPrice": 9.6,
"preTradeBidVolume": 2,
"preTradeMidIv": 77.38668060302734,
"preTradeMidPrice": 9.649999618530273,
"priceUsd": 9.6,
"putCall": "C",
"rho": 0.16573,
"theta": -0.03028,
"tradeAmount": 1,
"tradeIv": 0.77178,
"underlyingPrice": 54.755,
"vega": 0.23938,
"volume24h": 1299
}
]
}
}{}Query Parameters
Was this page helpful?