ITMatrixHQ Docs · API contract 0.8.1
Options analytics you can call.
Dealer gamma exposure, chains, flow and implied volatility over one REST surface — 49 public operations, a console that runs them with your own key, and SDKs for Python and TypeScript. Plus guides to the ITMatrixHQ Terminal and ITMatrixHQ Charts.
Base URLhttps://api.itmatrixhq.com
curl -sS -G "https://api.itmatrixhq.com/v2/gex/SPY/grid" \
-H "Authorization: Bearer $ITM_API_KEY" \
-d "top=20"import os
import httpx
response = httpx.get(
"https://api.itmatrixhq.com/v2/gex/SPY/grid",
params={"top": 20},
headers={"Authorization": f"Bearer {os.environ['ITM_API_KEY']}"},
timeout=30,
)
print(response.status_code, response.json())import os
import itmatrix as itm
with itm.ITMClient(api_key=os.environ["ITM_API_KEY"]) as client:
result = client.get_gex("SPY", top=20)
print(result.status, result.data)const url = new URL("https://api.itmatrixhq.com/v2/gex/SPY/grid");
url.search = new URLSearchParams({ top: "20" }).toString();
const response = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.ITM_API_KEY}` },
});
console.log(response.status, await response.json());import { ITMClient } from "@itmatrixhq/core";
const client = new ITMClient({ apiKey: process.env.ITM_API_KEY });
const result = await client.getGex("SPY", { top: 20 });
console.log(result.status, result.data);