Volume & OI per Expiry
curl --request GET \
--url https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry', 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.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"expires": "2023-09-08T00:00:00.000Z",
"oi": 451630,
"volume": 962332
},
{
"expires": "2023-09-15T00:00:00.000Z",
"oi": 1422982,
"volume": 631608
},
{
"expires": "2023-09-22T00:00:00.000Z",
"oi": 144938,
"volume": 111177
},
{
"expires": "2023-09-29T00:00:00.000Z",
"oi": 144629,
"volume": 78604
},
{
"expires": "2023-10-06T00:00:00.000Z",
"oi": 38090,
"volume": 42405
},
{
"expires": "2023-10-13T00:00:00.000Z",
"oi": 14371,
"volume": 18694
},
{
"expires": "2023-10-20T00:00:00.000Z",
"oi": 837270,
"volume": 244837
},
{
"expires": "2023-10-27T00:00:00.000Z",
"oi": 0,
"volume": 6004
},
{
"expires": "2023-11-17T00:00:00.000Z",
"oi": 524204,
"volume": 62599
},
{
"expires": "2023-12-15T00:00:00.000Z",
"oi": 723533,
"volume": 72616
},
{
"expires": "2024-01-19T00:00:00.000Z",
"oi": 1658337,
"volume": 98483
},
{
"expires": "2024-02-16T00:00:00.000Z",
"oi": 34994,
"volume": 8947
},
{
"expires": "2024-03-15T00:00:00.000Z",
"oi": 304973,
"volume": 22281
},
{
"expires": "2024-04-19T00:00:00.000Z",
"oi": 21399,
"volume": 5905
},
{
"expires": "2024-06-21T00:00:00.000Z",
"oi": 560682,
"volume": 23783
},
{
"expires": "2024-09-20T00:00:00.000Z",
"oi": 122030,
"volume": 17994
},
{
"expires": "2024-12-20T00:00:00.000Z",
"oi": 63646,
"volume": 5170
},
{
"expires": "2025-01-17T00:00:00.000Z",
"oi": 472809,
"volume": 9144
},
{
"expires": "2025-06-20T00:00:00.000Z",
"oi": 89229,
"volume": 3194
},
{
"expires": "2025-12-19T00:00:00.000Z",
"oi": 116365,
"volume": 5856
}
]
}{
"code": "authentication_required",
"documentation_url": "https://api.unusualwhales.com/docs",
"expected_format": "uuid",
"message": "The API token provided is not in the expected format. Unusual Whales API tokens are UUIDs, such as 123e4567-e89b-12d3-a456-426614174000.",
"reason": "malformed_token",
"request_id": "GNI_YTC1CRnw2LACGBvE",
"retryable": false,
"support_email": "[email protected]",
"token_url": "https://unusualwhales.com/dashboard/api"
}{
"code": "missing_access",
"documentation_url": "https://api.unusualwhales.com/docs",
"message": "The API token provided is valid but is not permitted to access this route.",
"reason": "route_not_permitted",
"request_id": "GNI_YTC1CRnw2LACGBvE",
"retryable": false,
"support_email": "[email protected]",
"token_url": "https://unusualwhales.com/dashboard/api"
}{
"msg": "Invalid path input: MSFT12 (valid example: AAPL) - Invalid query input(s): date=2023-02-140 (valid example: date=2024-01-18)",
"path": "/api/darkpool/MSFT12",
"query": "date=2023-02-140",
"url": "localhost:4000/api/darkpool/MSFT12?date=2023-02-140"
}"Something went wrong"stock
Volume & OI per Expiry
Returns the total volume and open interest per expiry for the given ticker.
GET
/
api
/
stock
/
{ticker}
/
option
/
volume-oi-expiry
Volume & OI per Expiry
curl --request GET \
--url https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry', 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.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.unusualwhales.com/api/stock/{ticker}/option/volume-oi-expiry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"expires": "2023-09-08T00:00:00.000Z",
"oi": 451630,
"volume": 962332
},
{
"expires": "2023-09-15T00:00:00.000Z",
"oi": 1422982,
"volume": 631608
},
{
"expires": "2023-09-22T00:00:00.000Z",
"oi": 144938,
"volume": 111177
},
{
"expires": "2023-09-29T00:00:00.000Z",
"oi": 144629,
"volume": 78604
},
{
"expires": "2023-10-06T00:00:00.000Z",
"oi": 38090,
"volume": 42405
},
{
"expires": "2023-10-13T00:00:00.000Z",
"oi": 14371,
"volume": 18694
},
{
"expires": "2023-10-20T00:00:00.000Z",
"oi": 837270,
"volume": 244837
},
{
"expires": "2023-10-27T00:00:00.000Z",
"oi": 0,
"volume": 6004
},
{
"expires": "2023-11-17T00:00:00.000Z",
"oi": 524204,
"volume": 62599
},
{
"expires": "2023-12-15T00:00:00.000Z",
"oi": 723533,
"volume": 72616
},
{
"expires": "2024-01-19T00:00:00.000Z",
"oi": 1658337,
"volume": 98483
},
{
"expires": "2024-02-16T00:00:00.000Z",
"oi": 34994,
"volume": 8947
},
{
"expires": "2024-03-15T00:00:00.000Z",
"oi": 304973,
"volume": 22281
},
{
"expires": "2024-04-19T00:00:00.000Z",
"oi": 21399,
"volume": 5905
},
{
"expires": "2024-06-21T00:00:00.000Z",
"oi": 560682,
"volume": 23783
},
{
"expires": "2024-09-20T00:00:00.000Z",
"oi": 122030,
"volume": 17994
},
{
"expires": "2024-12-20T00:00:00.000Z",
"oi": 63646,
"volume": 5170
},
{
"expires": "2025-01-17T00:00:00.000Z",
"oi": 472809,
"volume": 9144
},
{
"expires": "2025-06-20T00:00:00.000Z",
"oi": 89229,
"volume": 3194
},
{
"expires": "2025-12-19T00:00:00.000Z",
"oi": 116365,
"volume": 5856
}
]
}{
"code": "authentication_required",
"documentation_url": "https://api.unusualwhales.com/docs",
"expected_format": "uuid",
"message": "The API token provided is not in the expected format. Unusual Whales API tokens are UUIDs, such as 123e4567-e89b-12d3-a456-426614174000.",
"reason": "malformed_token",
"request_id": "GNI_YTC1CRnw2LACGBvE",
"retryable": false,
"support_email": "[email protected]",
"token_url": "https://unusualwhales.com/dashboard/api"
}{
"code": "missing_access",
"documentation_url": "https://api.unusualwhales.com/docs",
"message": "The API token provided is valid but is not permitted to access this route.",
"reason": "route_not_permitted",
"request_id": "GNI_YTC1CRnw2LACGBvE",
"retryable": false,
"support_email": "[email protected]",
"token_url": "https://unusualwhales.com/dashboard/api"
}{
"msg": "Invalid path input: MSFT12 (valid example: AAPL) - Invalid query input(s): date=2023-02-140 (valid example: date=2024-01-18)",
"path": "/api/darkpool/MSFT12",
"query": "date=2023-02-140",
"url": "localhost:4000/api/darkpool/MSFT12?date=2023-02-140"
}"Something went wrong"Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A single ticker
Example:
"AAPL"
Query Parameters
A trading date in the format of YYYY-MM-DD. This is optional and by default the last trading date.
Example:
"2024-01-18T00:00:00.000Z"
Response
Vol & OI per expiry response
Last modified on September 29, 2026
Was this page helpful?
