curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/floating \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/floating"
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/floating', 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/floating",
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/floating"
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/floating")
.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/floating")
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": [
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-05-24T08:00:00.000Z",
"daysToExpiration": 0.40069444444444446,
"atm": 48.18119212406436,
"fwdAtm": null
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-05-25T08:00:00.000Z",
"daysToExpiration": 1.4006944444444445,
"atm": 48.46480114364702,
"fwdAtm": 48.577977052867816
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-05-26T08:00:00.000Z",
"daysToExpiration": 2.4006944444444445,
"atm": 43.28339639988641,
"fwdAtm": 34.75030807598399
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-05-31T08:00:00.000Z",
"daysToExpiration": 7.4006944444444445,
"atm": 46.450304912583725,
"fwdAtm": 47.8965128013226
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-06-07T08:00:00.000Z",
"daysToExpiration": 14.400694444444444,
"atm": 48.519944804403636,
"fwdAtm": 50.61610840594084
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-06-14T08:00:00.000Z",
"daysToExpiration": 21.400694444444444,
"atm": 50.60106649680914,
"fwdAtm": 54.63370536858937
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-06-28T08:00:00.000Z",
"daysToExpiration": 35.40069444444445,
"atm": 53.76060540395727,
"fwdAtm": 58.26012518602842
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-07-26T08:00:00.000Z",
"daysToExpiration": 63.40069444444445,
"atm": 58.247165892832165,
"fwdAtm": 63.46720290344688
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-09-27T08:00:00.000Z",
"daysToExpiration": 126.40069444444444,
"atm": 63.17620639474564,
"fwdAtm": 67.77566212230421
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-12-27T08:00:00.000Z",
"daysToExpiration": 217.40069444444444,
"atm": 67.07817801426035,
"fwdAtm": 72.148798792591
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2025-03-28T08:00:00.000Z",
"daysToExpiration": 308.40069444444447,
"atm": 68.63902950783613,
"fwdAtm": 72.23152159742965
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Term Structures Floating
This endpoint returns the term structure (for exchange listed expirations) with forward volatility calculations, for active exchange listed maturities.
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/floating \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/volatility/term-structures/forward-volatility/floating"
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/floating', 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/floating",
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/floating"
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/floating")
.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/floating")
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": [
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-05-24T08:00:00.000Z",
"daysToExpiration": 0.40069444444444446,
"atm": 48.18119212406436,
"fwdAtm": null
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-05-25T08:00:00.000Z",
"daysToExpiration": 1.4006944444444445,
"atm": 48.46480114364702,
"fwdAtm": 48.577977052867816
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-05-26T08:00:00.000Z",
"daysToExpiration": 2.4006944444444445,
"atm": 43.28339639988641,
"fwdAtm": 34.75030807598399
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-05-31T08:00:00.000Z",
"daysToExpiration": 7.4006944444444445,
"atm": 46.450304912583725,
"fwdAtm": 47.8965128013226
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-06-07T08:00:00.000Z",
"daysToExpiration": 14.400694444444444,
"atm": 48.519944804403636,
"fwdAtm": 50.61610840594084
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-06-14T08:00:00.000Z",
"daysToExpiration": 21.400694444444444,
"atm": 50.60106649680914,
"fwdAtm": 54.63370536858937
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-06-28T08:00:00.000Z",
"daysToExpiration": 35.40069444444445,
"atm": 53.76060540395727,
"fwdAtm": 58.26012518602842
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-07-26T08:00:00.000Z",
"daysToExpiration": 63.40069444444445,
"atm": 58.247165892832165,
"fwdAtm": 63.46720290344688
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-09-27T08:00:00.000Z",
"daysToExpiration": 126.40069444444444,
"atm": 63.17620639474564,
"fwdAtm": 67.77566212230421
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2024-12-27T08:00:00.000Z",
"daysToExpiration": 217.40069444444444,
"atm": 67.07817801426035,
"fwdAtm": 72.148798792591
},
{
"timestamp": "2024-05-23T22:23:00.000Z",
"exchange": "deribit",
"currency": "BTC",
"expirationTimestamp": "2025-03-28T08:00:00.000Z",
"daysToExpiration": 308.40069444444447,
"atm": 68.63902950783613,
"fwdAtm": 72.23152159742965
}
],
"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 for this timestamp.
[Formats] seconds | milliseconds | iso8601
[Examples] 1578531600 | 1578531600000 | 2024-04-03T08:00:00
[Optional] Time format of the timestamps in the return payload.
[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable
Was this page helpful?