Historical
curl --request GET \
--url https://api.amberdata.com/markets/options/tickers/{instrument} \
--compressed \
--header 'Accept-Encoding: <accept-encoding>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/options/tickers/{instrument}"
headers = {
"Accept-Encoding": "<accept-encoding>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Accept-Encoding': '<accept-encoding>', 'x-api-key': '<api-key>'}
};
fetch('https://api.amberdata.com/markets/options/tickers/{instrument}', 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/options/tickers/{instrument}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept-Encoding: <accept-encoding>",
"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/options/tickers/{instrument}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept-Encoding", "<accept-encoding>")
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/options/tickers/{instrument}")
.header("Accept-Encoding", "<accept-encoding>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/options/tickers/{instrument}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept-Encoding"] = '<accept-encoding>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"metadata": {
"next": "https://api.amberdata.com/markets/options/tickers/BTC-16AUG24-50000-C?cursor=N4IgpgHgxgFghgOwOZhALhAIwJ6YJYAuIANCFAK4BOAzgPaXoLkA2zp1BclBAInAajQBGAOwAmCQDYAzNICscgAxjppMAgAmfAelETpAFnGSAnAA5ZpPAijNyGsAFUE1cgAc39ARoCi0eMhg1OgAZnDM1GCkBHgAtmAAYvSx-OggsXiseJFQtJrBpCHJqRgAVnQIJCB03ADSYNhpelKyCsrSAPqKHTj4BF0dAEIAKgDCALRCkgCCjgDiYgbjSoqr46MgAL5AA",
"api-version": "2023-09-30"
},
"data": [
{
"instrument": "BTC-16AUG24-50000-C",
"exchange": "bybit",
"exchangeTimestamp": 1722260870023,
"exchangeTimestampNanoseconds": 0,
"bid": 0,
"mid": 0,
"ask": 0,
"last": 0,
"bidVolume": 0,
"askVolume": 0,
"lastVolume": null,
"baseVolume": null,
"quoteVolume": null,
"sequence": null,
"underlyingPrice": 69793.36,
"underlyingIndex": null,
"settlementPrice": null,
"markPrice": 19806.40225084,
"low": 0,
"high": 0,
"volume": 0,
"volumeUSD": null,
"priceChange": 0,
"openInterest": 0,
"minPrice": null,
"maxPrice": null,
"markIv": 0.5997,
"interestRate": null,
"indexPrice": 69398.4,
"rho": null,
"vega": 2.16053057,
"delta": 0.99516469,
"gamma": 0.00000152,
"theta": -3.64786985,
"bidIv": 0,
"askIv": 0,
"estimatedDeliveryPrice": null,
"state": null,
"askTimestamp": null,
"bidTimestamp": null,
"askTimestampNanoseconds": null,
"bidTimestampNanoseconds": null
}
]
}
}Tickers
Historical
Provides detailed historical data for options tickers, including price metrics, trading volumes, Greeks, and implied volatility. This endpoint is particularly useful for analyzing past market conditions for specific options on various exchanges.
GET
/
options
/
tickers
/
{instrument}
Historical
curl --request GET \
--url https://api.amberdata.com/markets/options/tickers/{instrument} \
--compressed \
--header 'Accept-Encoding: <accept-encoding>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/options/tickers/{instrument}"
headers = {
"Accept-Encoding": "<accept-encoding>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Accept-Encoding': '<accept-encoding>', 'x-api-key': '<api-key>'}
};
fetch('https://api.amberdata.com/markets/options/tickers/{instrument}', 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/options/tickers/{instrument}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept-Encoding: <accept-encoding>",
"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/options/tickers/{instrument}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept-Encoding", "<accept-encoding>")
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/options/tickers/{instrument}")
.header("Accept-Encoding", "<accept-encoding>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/options/tickers/{instrument}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept-Encoding"] = '<accept-encoding>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"metadata": {
"next": "https://api.amberdata.com/markets/options/tickers/BTC-16AUG24-50000-C?cursor=N4IgpgHgxgFghgOwOZhALhAIwJ6YJYAuIANCFAK4BOAzgPaXoLkA2zp1BclBAInAajQBGAOwAmCQDYAzNICscgAxjppMAgAmfAelETpAFnGSAnAA5ZpPAijNyGsAFUE1cgAc39ARoCi0eMhg1OgAZnDM1GCkBHgAtmAAYvSx-OggsXiseJFQtJrBpCHJqRgAVnQIJCB03ADSYNhpelKyCsrSAPqKHTj4BF0dAEIAKgDCALRCkgCCjgDiYgbjSoqr46MgAL5AA",
"api-version": "2023-09-30"
},
"data": [
{
"instrument": "BTC-16AUG24-50000-C",
"exchange": "bybit",
"exchangeTimestamp": 1722260870023,
"exchangeTimestampNanoseconds": 0,
"bid": 0,
"mid": 0,
"ask": 0,
"last": 0,
"bidVolume": 0,
"askVolume": 0,
"lastVolume": null,
"baseVolume": null,
"quoteVolume": null,
"sequence": null,
"underlyingPrice": 69793.36,
"underlyingIndex": null,
"settlementPrice": null,
"markPrice": 19806.40225084,
"low": 0,
"high": 0,
"volume": 0,
"volumeUSD": null,
"priceChange": 0,
"openInterest": 0,
"minPrice": null,
"maxPrice": null,
"markIv": 0.5997,
"interestRate": null,
"indexPrice": 69398.4,
"rho": null,
"vega": 2.16053057,
"delta": 0.99516469,
"gamma": 0.00000152,
"theta": -3.64786985,
"bidIv": 0,
"askIv": 0,
"estimatedDeliveryPrice": null,
"state": null,
"askTimestamp": null,
"bidTimestamp": null,
"askTimestampNanoseconds": null,
"bidTimestampNanoseconds": null
}
]
}
}The maximum time range (difference between
startDate and endDate) is 1 hour.If the
startDate and endDate query parameters are not provided, the API will return the data from the previous 1 hour.Path Parameters
Query Parameters
[Optional] Specifies the direction in which the data is sorted (by timestamp). [Defaults] asc (ascending order). [Usage Conditions] This parameter can only be used if the startDate and endDate timeframe is within the most recent 24 hours, or if the startDate and endDate parameters are not used at all. [Examples] ascending | descending | asc | desc
Was this page helpful?