{"uid":"cap_y2rBJJ5aHM5vk5oix8WmE","slug":"laevitas-historical-options-trades-v2-928f9d4f","name":"Laevitas Historical Options Trades V2","description":"Professional market data API for crypto derivatives, spot markets, prediction markets, Hyperliquid HyperCore data, proprietary volatility surfaces, and analytics.\n\n## Authentication\n\nUse an API key for authenticated REST requests:\n\n```http\nX-API-Key: your-api-key-here\n```\n\nData and history endpoints also accept x402 without an API key: 1, 5 or 10 credits ($0.001 each) for data up to 1 year, 1–3 years or older.\n\n**Subscriptions with USDC:** Premium and Enterprise can be purchased on Base or Solana for a month, a quarter, six months or a year. Access is prepaid, with no automatic renewal. [Buy a subscription](https://v3.laevitas.ch/profile/subscription/wallet) or read the [USDC subscription guide](/x402#subscriptions).\n\nThe subscription belongs to your signed-in Laevitas account; wallet sign-in does not require an email. Enterprise users generate an API key in V3 after activation. Plan and billing-period limits still apply. Subscription purchases are separate from API credit bundles.\n\nFor Claude MCP, add `https://apiv2.laevitas.ch/api/v1/mcp`, select **Sign in now → Register automatically**\nwith no custom headers, and authorize with your API key on the Laevitas page.\nDo not enter a client ID or secret manually. All OAuth clients require PKCE S256.\nConnection guide: [MCP setup](/mcp). CIMD / published client identity is not supported.\n\n| Resource | Path |\n| --- | --- |\n| OpenAPI JSON | `GET /openapi.json` |\n| x402 discovery | `GET /.well-known/x402` |\n| Changelog | `GET /api/v1/changelog` |\n| WebSocket docs | `GET /websocket` |\n\n## REST Surfaces\n\n| Surface | Examples |\n| --- | --- |\n| Instruments | Cross-market contract reference data |\n| Futures | OHLCVT, trades, tickers, orderbook, liquidations, carry |\n| Perpetuals | OHLCVT, trades, funding, open interest, orderbook, liquidations |\n| Options | OHLCVT, trades, Greeks, volatility, flow, dealer GEX |\n| Options Backtests | Strategy templates, asynchronous submission, status, combined results, cancellation |\n| Vol Surface | Proprietary surface snapshots, slices, strikes, term structure, risk |\n| Spot | OHLCVT, ticker, trades, volume, L2 orderbook, snapshots |\n| Predictions | Polymarket instruments, categories, trades, ticker history |\n| Hyperliquid - HyperCore | Node-derived fills, liquidations, positions, funding, TWAPs, resting orders, L2 books |\n| Analytics | Realized volatility and derived metrics |\n\n## Pagination\n\nBacktests are asynchronous jobs, not paginated market-data queries. Start with\n`GET /api/v1/options/backtests/strategies`, submit with `POST /api/v1/options/backtests`,\nthen poll `/{id}` and retrieve `/{id}/result`. These responses have no data/meta wrapper.\n\nPaginated endpoints return the cursor at `meta.next_cursor`. Pass that value back as the `cursor` query parameter to fetch the next page.\n\n## WebSocket Streaming\n\nReal-time streams are documented at `/websocket`.\n\n| Data | Channel pattern |\n| --- | --- |\n| Trades | `trades.{market}.{exchange}.{instrument}` |\n| OHLC ticker | `ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe}` |\n| OHLCVT | `ohlc.vt.{market}.{exchange}.{instrument}.{timeframe}` |\n\nVariables: `market` is one of `perpetuals`, `futures`, `options`, or `spot`; `timeframe` is one of `1m`, `5m`, `15m`, `1h`, `4h`, or `1d`.\n\n## Quick Start\n\n```bash\ncurl \"https://apiv2.laevitas.ch/api/v1/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL\" \\\n  -H \"X-API-Key: your-api-key-here\"\n```","url":"https://apiv2.laevitas.ch/api/v1/historical/options/v2/trades/%7Bmarket%7D/%7Bcurrency%7D?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["date"],"properties":{"date":{"type":"string","description":"Date-only (YYYY-MM-DD) selects the whole UTC day. An ISO instant or 10/13-digit epoch selects from the UTC start of its day up to that instant."},"page":{"type":"integer","description":"Omitted queries page 1 but omits meta.page, as in v1."},"limit":{"type":"integer","description":"Omitted queries 10 groups but uses divisor 1 for meta.total_pages, as in v1."},"order":{"enum":["asc","desc"],"type":"string","description":"Applied only together with sortBy; ascending otherwise."},"sortBy":{"enum":["date","notional","amount","premium","delta","gamma","vega","theta","blockTradeId","strategy"],"type":"string","description":"Sort field; blockTradeId also excludes groups without a block trade id. Default date."},"blockTradeId":{"type":"string","description":"Exact block trade identifier filter; empty means no filter."}}},"responseSchema":{"type":"object","required":["meta","items"],"properties":{"meta":{"type":"object","required":["total","items","total_pages"],"properties":{"page":{"type":"integer","maximum":9007199254740991,"minimum":0,"description":"Present only when page was supplied.","exclusiveMinimum":true},"items":{"type":"integer","maximum":9007199254740991,"minimum":0},"total":{"type":"integer","maximum":9007199254740991,"minimum":0,"description":"Number of distinct second/venue/currency/strategy combinations for the selection. Group rows are also split by block trade id, so all pages together can hold more rows than total."},"total_pages":{"type":"integer","maximum":9007199254740991,"minimum":0,"description":"ceil(total / limit) when limit was supplied, otherwise total."}},"additionalProperties":false},"items":{"type":"array","items":{"type":"object","required":["date","market","currency","strategy","trades","summary"],"properties":{"date":{"type":"integer","maximum":9007199254740991,"minimum":0,"description":"Group second as Unix seconds, UTC."},"market":{"type":"string","description":"Lowercase venue name."},"trades":{"type":"array","items":{"type":"object","required":["instrument_name","currency","maturity","strike","option_type","direction","tick_direction","index_price","amount","contracts","price","iv","premium","premium_usd","notional","mark_price","ask_price","bid_price","ask_size","bid_size","open_interest","oi_change","oi_before","bid_iv_change","ask_iv_change","bid_price_change","ask_price_change","bid_size_change","ask_size_change","date","trade_id","block_trade_id","timestamp","combo_id","combo_trade_id","delta","gamma","vega","theta"],"properties":{"iv":{"type":"number","nullable":true,"description":"Trade implied volatility in percentage points."},"date":{"type":"string","nullable":true,"description":"Trade time, UTC YYYY-MM-DD HH:mm:ss.SSS."},"vega":{"type":"number","nullable":true,"description":"Trade vega; null when unavailable."},"delta":{"type":"number","nullable":true,"description":"Trade delta; null when unavailable."},"gamma":{"type":"number","nullable":true,"description":"Trade gamma; null when unavailable."},"price":{"type":"number","nullable":true,"description":"Executed premium per unit in the venue price convention."},"theta":{"type":"number","nullable":true,"description":"Trade theta; null when unavailable."},"amount":{"type":"number","nullable":true,"description":"Trade quantity in venue units; no contract multiplier or USD conversion."},"strike":{"type":"number","nullable":true,"description":"Strike in the venue pricing convention."},"premium":{"type":"number","nullable":true,"description":"Trade premium in the instrument price currency."},"ask_size":{"type":"number","nullable":true,"description":"Best ask size at the trade, in venue units; null when unavailable."},"bid_size":{"type":"number","nullable":true,"description":"Best bid size at the trade, in venue units; null when unavailable."},"combo_id":{"type":"string","nullable":true,"description":"Opaque combo instrument identifier; an empty string means none and is distinct from null."},"currency":{"type":"string","nullable":true,"description":"Base currency of the instrument."},"maturity":{"type":"string","nullable":true,"description":"Expiry label as stored, for example 27MAR26."},"notional":{"type":"number","nullable":true,"description":"Trade notional in USD."},"trade_id":{"type":"string","nullable":true,"description":"Opaque venue trade identifier; an empty string means none and is distinct from null."},"ask_price":{"type":"number","nullable":true,"description":"Best ask premium at the trade; null when unavailable."},"bid_price":{"type":"number","nullable":true,"description":"Best bid premium at the trade; null when unavailable."},"contracts":{"type":"number","nullable":true,"description":"Same value as amount, kept for v1 compatibility."},"direction":{"type":"string","nullable":true,"description":"Aggressor side as stored, buy or sell."},"oi_before":{"type":"number","nullable":true,"description":"Open interest before the trade; null when unavailable."},"oi_change":{"type":"number","nullable":true,"description":"Open-interest change attributed to the trade; null when unavailable."},"timestamp":{"type":"number","nullable":true,"description":"Trade time as Unix milliseconds."},"mark_price":{"type":"number","nullable":true,"description":"Mark premium at the trade; null means unavailable, not zero."},"index_price":{"type":"number","nullable":true,"description":"Underlying index price attached to the trade."},"option_type":{"type":"string","nullable":true,"description":"C (call) or P (put)."},"premium_usd":{"type":"number","nullable":true,"description":"Trade premium in USD."},"ask_iv_change":{"type":"number","nullable":true,"description":"Ask implied-volatility change at the trade; null when unavailable."},"bid_iv_change":{"type":"number","nullable":true,"description":"Bid implied-volatility change at the trade; null when unavailable."},"open_interest":{"type":"number","nullable":true,"description":"Open interest after the trade, in venue units; null when unavailable."},"block_trade_id":{"type":"string","nullable":true,"description":"Opaque block trade identifier; an empty string means none and is distinct from null."},"combo_trade_id":{"type":"string","nullable":true,"description":"Opaque combo trade identifier; an empty string means none and is distinct from null."},"tick_direction":{"type":"number","nullable":true,"description":"Venue tick-direction code; null when unavailable."},"ask_size_change":{"type":"number","nullable":true,"description":"Ask size change at the trade, in venue units; null when unavailable."},"bid_size_change":{"type":"number","nullable":true,"description":"Bid size change at the trade, in venue units; null when unavailable."},"instrument_name":{"type":"string","nullable":true,"description":"Venue instrument name."},"ask_price_change":{"type":"number","nullable":true,"description":"Ask premium change at the trade; null when unavailable."},"bid_price_change":{"type":"number","nullable":true,"description":"Bid premium change at the trade; null when unavailable."}},"additionalProperties":false},"description":"Trades of the group; their order is not guaranteed."},"summary":{"type":"object","required":["tot_p","tot_amnt","tot_not","delta","gamma","vega","theta"],"properties":{"vega":{"type":"number","nullable":true,"description":"Vega of one trade of the group, not a sum."},"delta":{"type":"number","nullable":true,"description":"Delta of one trade of the group, not a sum."},"gamma":{"type":"number","nullable":true,"description":"Gamma of one trade of the group, not a sum."},"theta":{"type":"number","nullable":true,"description":"Theta of one trade of the group, not a sum."},"tot_p":{"type":"number","nullable":true,"description":"Premium total of the group: sells positive, buys negative, in the instrument price currency."},"tot_not":{"type":"number","nullable":true,"description":"Notional total of the group in USD."},"tot_amnt":{"type":"number","nullable":true,"description":"Amount total of the group in venue units."}},"additionalProperties":false},"currency":{"type":"string","description":"Base currency of the group."},"strategy":{"type":"string","nullable":true,"description":"Strategy label of the group as stored, for example LONG_CALL."}},"additionalProperties":false}}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Tw0qyhAW7_qsCuTMPoDYp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns paginated, grouped historical options trade records for a given crypto derivatives market and currency on a specified date, including greeks, IV, premium, block trade details, and order book snapshots at trade time.","exampleAgentPrompt":"Pull all BTC options trades on Deribit for January 15, 2024 from Laevitas, sorted by notional descending, and give me the first page of 20 results including delta, IV, and any block trade IDs.","exampleUseCases":[{"title":"Block trade flow analysis for research","prompt":"Get me all ETH options block trades on Deribit for March 10, 2024, sorted by notional value descending — first page of 25 results — I want to see the greeks and premiums for each trade."},{"title":"Daily options activity recap","prompt":"Fetch BTC options trades on OKX for April 22, 2024 — show the first 50 results sorted by date ascending so I can reconstruct the day's flow chronologically."},{"title":"IV and greeks audit for a strategy","prompt":"Retrieve SOL options trade history on Bybit for February 5, 2024, sorted by IV, page 2, limit 20 — I need the implied volatility, delta, vega, and theta for each trade to backtest a vol strategy."}],"resultDescription":"A paginated response object containing metadata (total records, total pages, current page) and an array of trade groups, each grouped by second/venue/currency/strategy. Each group includes individual trade records with instrument name, strike, maturity, option type, direction, IV, greeks (delta, gamma, vega, theta), premium, notional, bid/ask price and size at trade time, open interest and OI change, block trade ID, combo ID, and timestamps.","failureModes":["Missing required 'date' field returns a 400 validation error","Invalid market or currency path parameters return 404 or empty result set","Requesting a date beyond the API key's subscription tier returns a 402 payment required or access denied error","Invalid sortBy enum value returns a 400 error","Page number exceeding total_pages returns an empty items array","Expired or missing API key / insufficient x402 credits returns 401 or 402","Rate limiting may return 429 if credit bundle is exhausted"],"whenToPreferThis":"Use this endpoint when you need detailed historical options trade-level data — including greeks, IV, block trade metadata, and order book snapshots at trade time — for a specific exchange and underlying currency on a given date. Prefer this over spot or futures trade endpoints when the focus is options flow analysis, block trade research, or greek-based backtest data. The V2 variant supports richer sorting, filtering by block trade ID, and cleaner pagination metadata compared to V1.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:41:32.338Z","isFirstParty":false,"canonicalSlug":"laevitas-historical-options-trades-v2-928f9d4f"}