Term Structures Constant
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/constant/tradfi \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/constant/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/volatility/term-structures/forward-volatility/constant/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/volatility/term-structures/forward-volatility/constant/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/volatility/term-structures/forward-volatility/constant/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/volatility/term-structures/forward-volatility/constant/tradfi")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/constant/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": [
{
"atm": 48.07,
"currency": "BITO",
"daysToExpiration": 5,
"exchange": "tradfi",
"fwdAtm": null,
"timestamp": "2024-10-02 20:00:00 000"
},
{
"atm": 46.89,
"currency": "BITO",
"daysToExpiration": 10,
"exchange": "tradfi",
"fwdAtm": 45.69,
"timestamp": "2024-10-02 20:00:00 000"
},
{
"atm": 49.2,
"currency": "BITO",
"daysToExpiration": 21,
"exchange": "tradfi",
"fwdAtm": 51.21,
"timestamp": "2024-10-02 20:00:00 000"
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Volatility
Term Structures Constant
This endpoint returns the term structure (for exchange listed expirations) with forward volatility calculations, for constant “daysToExpiration” maturities.
USA Trading hours are 14:30:00 - 21:00:00 UTC (9:30a-4pm ET)
GET
/
analytics
/
volatility
/
term-structures
/
forward-volatility
/
constant
/
tradfi
Term Structures Constant
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/constant/tradfi \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/constant/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/volatility/term-structures/forward-volatility/constant/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/volatility/term-structures/forward-volatility/constant/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/volatility/term-structures/forward-volatility/constant/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/volatility/term-structures/forward-volatility/constant/tradfi")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/constant/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": [
{
"atm": 48.07,
"currency": "BITO",
"daysToExpiration": 5,
"exchange": "tradfi",
"fwdAtm": null,
"timestamp": "2024-10-02 20:00:00 000"
},
{
"atm": 46.89,
"currency": "BITO",
"daysToExpiration": 10,
"exchange": "tradfi",
"fwdAtm": 45.69,
"timestamp": "2024-10-02 20:00:00 000"
},
{
"atm": 49.2,
"currency": "BITO",
"daysToExpiration": 21,
"exchange": "tradfi",
"fwdAtm": 51.21,
"timestamp": "2024-10-02 20:00:00 000"
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Authorizations
Query Parameters
[Required] The underlying currency for which there are listed option instruments.
[Examples] IBIT | COIN
[Required] Payload only includes data for this timestamp.
[Formats] seconds | milliseconds | iso8601
[Examples] 1578531600 | 1578531600000 | 2024-11-19
[Optional] Time format of the timestamps in the return payload.
[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable
Was this page helpful?
⌘I