curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/realized-volatility/seasonality/month-of-year \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/realized-volatility/seasonality/month-of-year"
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/realized-volatility/seasonality/month-of-year', 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/realized-volatility/seasonality/month-of-year",
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/realized-volatility/seasonality/month-of-year"
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/realized-volatility/seasonality/month-of-year")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/realized-volatility/seasonality/month-of-year")
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": [
{
"month": "JAN",
"historicalVolatility1day": 65.77079688679153
},
{
"month": "FEB",
"historicalVolatility1day": 59.7447949807975
},
{
"month": "MARCH",
"historicalVolatility1day": 76.73331120590984
},
{
"month": "APR",
"historicalVolatility1day": 54.358370710033334
},
{
"month": "MAY",
"historicalVolatility1day": 67.70822896571099
},
{
"month": "JUNE",
"historicalVolatility1day": 64.21472571465304
},
{
"month": "JULY",
"historicalVolatility1day": 46.20634917679558
},
{
"month": "AUG",
"historicalVolatility1day": 45.904014842623525
},
{
"month": "SEP",
"historicalVolatility1day": 48.981292813814726
},
{
"month": "OCT",
"historicalVolatility1day": 43.324680324903184
},
{
"month": "NOV",
"historicalVolatility1day": 54.04051311136871
},
{
"month": "DEC",
"historicalVolatility1day": 49.554863548275776
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Seasonality: Volatility Month of the Year
This endpoint returns the average realized volatility, for a select date range, grouped by the month-of-the-year. Users can view how Q4 volatility compares to say, Q1 volatility, etc.
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/realized-volatility/seasonality/month-of-year \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/realized-volatility/seasonality/month-of-year"
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/realized-volatility/seasonality/month-of-year', 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/realized-volatility/seasonality/month-of-year",
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/realized-volatility/seasonality/month-of-year"
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/realized-volatility/seasonality/month-of-year")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/realized-volatility/seasonality/month-of-year")
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": [
{
"month": "JAN",
"historicalVolatility1day": 65.77079688679153
},
{
"month": "FEB",
"historicalVolatility1day": 59.7447949807975
},
{
"month": "MARCH",
"historicalVolatility1day": 76.73331120590984
},
{
"month": "APR",
"historicalVolatility1day": 54.358370710033334
},
{
"month": "MAY",
"historicalVolatility1day": 67.70822896571099
},
{
"month": "JUNE",
"historicalVolatility1day": 64.21472571465304
},
{
"month": "JULY",
"historicalVolatility1day": 46.20634917679558
},
{
"month": "AUG",
"historicalVolatility1day": 45.904014842623525
},
{
"month": "SEP",
"historicalVolatility1day": 48.981292813814726
},
{
"month": "OCT",
"historicalVolatility1day": 43.324680324903184
},
{
"month": "NOV",
"historicalVolatility1day": 54.04051311136871
},
{
"month": "DEC",
"historicalVolatility1day": 49.554863548275776
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Authorizations
Query Parameters
[Required] The exchange for which to retrieve the volatility cone.
[Examples] gdax
[Required] The underlying pair for which to retrieve the volatility cone.
[Examples] btc_usd
[Optional] Payload only includes data after this date (inclusive).
[Formats] seconds | milliseconds | iso8601
[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00
[Optional] 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
Was this page helpful?