Category: Messaging
363 endpoint(s)
402box Agentic Suite
MessagingCommunication channel to reach the 402box team for collaborations, inquiries, or general chat. **Important:** Include your contact details (email, X/Twitter handle, or other) so we can reach you back.
Agent Health Monitor // Blockchain Wallet Intelligence
MessagingSubscribe to automated wallet health monitoring. Checks wallet health every 6 hours and sends webhook alerts when health score, failure rate, or gas waste thresholds are breached. $2.00 USDC for 30 days of monitoring.
Agent Health Monitor // Diagnostics for the Agent Economy
MessagingSubscribe to automated wallet health monitoring. Checks wallet health every 6 hours and sends webhook alerts when health score, failure rate, or gas waste thresholds are breached. $2.00 USDC for 30 days of monitoring.
AgentMail
MessagingCreate and operate dedicated email inboxes for AI agents. Supports programmatic inbox creation, outbound sending, inbound message retrieval, unique agent addresses, workflow automation, and no manual account setup for email-based agent tasks.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingAgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/threads/{thread_id}/attachments/{attachment_id})
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/messages/{message_id}/attachments/{attachment_id})
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/drafts/{draft_id}/attachments/{attachment_id})
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/messages/{message_id}/reply-all)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/messages/{message_id}/forward)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/messages/{message_id}/reply)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/messages/{message_id}/raw)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/messages/{message_id})
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/drafts/{draft_id}/send)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/threads/{thread_id})
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/drafts/{draft_id})
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/pods/{pod_id}/inboxes/{inbox_id})
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/messages/send)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/messages)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/metrics)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/threads)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id}/drafts)
AgentMail | Email Inbox API for AI Agents
MessagingService: AgentMail API (/v0/inboxes/{inbox_id})
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
AgentOS — Infrastructure for Autonomous AI Agents
MessagingPhone, email, compute, domains — paid with USDC via x402. Give your AI agent superpowers.
Ahoy - Phone Numbers for AI Agents
MessagingPhone numbers for AI agents with calls and SMS. All your agents share the same numbers via World ID.
Ahoy - Phone Numbers for AI Agents
MessagingPhone numbers for AI agents with calls and SMS. All your agents share the same numbers via World ID.
Ahoy - Phone Numbers for AI Agents
MessagingPhone numbers for AI agents with calls and SMS. All your agents share the same numbers via World ID.
Ahoy - Phone Numbers for AI Agents
MessagingPhone numbers for AI agents with calls and SMS. All your agents share the same numbers via World ID.
AI Agentinc Suite - Specialized Agents
MessagingDesign email sequences, craft compelling subject lines, segment audiences, and optimize email campaigns for conversions
AI Agentinc Suite - Specialized Agents
MessagingDesign email sequences, craft compelling subject lines, segment audiences, and optimize email campaigns for conversions
Alpha Marketplace
MessagingCrypto Token Sentiment Analysis: Social Signal Decoder: Chain-of-thought prompt to analyze Twitter, Discord, and Telegram sentiment for any crpto token - id...
APINow.fun - Pay-Per-Call Tokenized APIs
MessagingGet a personalized hello message from APINow.fun
Arch Tools - The First API Platform AI Agents Can Pay Autonomously
MessagingArch Tools — email-find (native SOL)
Arch Tools - The First API Platform AI Agents Can Pay Autonomously
MessagingArch Tools — email-send (native SOL)
Arch Tools - The First API Platform AI Agents Can Pay Autonomously
MessagingArch Tools — session-message (native SOL)
Arch Tools - The First API Platform AI Agents Can Pay Autonomously
MessagingArch Tools — webhook-send (native SOL)
Arch Tools - The First API Platform AI Agents Can Pay Autonomously
MessagingArch Tools — email-verify (native SOL)
Audit email domain security: SPF, DKIM, DMARC records with parsing, grading, and MX provider detection
MessagingAudit email domain security: SPF, DKIM, DMARC records with parsing, grading, and MX provider detection
AutoPayAgent - Get Paid With a Text | SMS Invoicing Software
MessagingClawPay bot registration ($0.10)
AutoPayAgent - Get Paid With a Text | SMS Invoicing Software
MessagingPayment identity verification ($0.001)
AutoPayAgent - Get Paid With a Text | SMS Invoicing Software
MessagingBot commerce network intelligence ($0.05)
AutoPayAgent - Get Paid With a Text | SMS Invoicing Software
MessagingOn-chain wallet risk assessment ($0.005)
AutoPayAgent - Get Paid With a Text | SMS Invoicing Software
MessagingAI query service ($0.01)
Batch email hygiene for up to 100 emails.
MessagingBatch email hygiene for up to 100 emails.
Batch email hygiene for up to 1000 emails.
MessagingBatch email hygiene for up to 1000 emails.
Chat with Sarah
MessagingGet a sassy, crude, and shocking response from Sarah. Send your name and message to receive an adult-only, flirty reply.
Coin Railz - x402 Autonomous AI Payments & Crypto Exchange
MessagingLowest-cost test endpoint to verify x402 payment flow. Returns platform info and echoes your message.
Combined social score for a token: Twitter, Reddit, Telegram followers and activity
MessagingCombined social score for a token: Twitter, Reddit, Telegram followers and activity
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto ETF Sentinel — Spot ETF Filing Intelligence
MessagingTrack SEC spot crypto ETF filings in real-time. Instant Telegram alerts for Bitcoin, Ethereum, Solana ETF applications. Free.
Crypto Vision — Live Crypto Prices, Breaking News & Market Intelligence
MessagingLive cryptocurrency prices, breaking news, and market analysis. 350+ free API endpoints, developer SDKs, embeddable widgets, and AI integrations. Bitcoin, Et...
CuseTheJuice - x402 tools for agents and builders
MessagingCuseTheJuice app: spam/phishing from From, Reply-To, Subject only (no body). GET/POST: headers, optional mode. JSON rules/signals; optional X-CTJ-Spam-Check header. Pay with x402 (Base USDC). HTTP shape: extensions.bazaar on the 402. Catalog: https://app.cusethejuice.com/agents
Develops communication plans for organizational crises, including message templates, stakeholder strategies, and risk mitigation.
MessagingDevelops communication plans for organizational crises, including message templates, stakeholder strategies, and risk mitigation.
Echo Service
MessagingStore a message and receive a UUID handle for retrieval
email-deliverability-production.up.railway.app · audit
Messagingemail-finder-x402-production.up.railway.app · find
Messagingemail-send-production.up.railway.app · send
Messagingemail-verification-x402-production.up.railway.app · batch
Messagingemail-verification-x402-production.up.railway.app · verify
MessagingEnter the FIFA World Cup 26 Final raffle for 0.01 USDC on Base Mainnet. Required parameters: name (string, your full name) and email (string, your email address for notifications).
MessagingEnter the FIFA World Cup 26 Final raffle for 0.01 USDC on Base Mainnet. Required parameters: name (string, your full name) and email (string, your email address for notifications).
Enter the FIFA World Cup 26 Final raffle for 0.01 USDC on Base Mainnet. Required parameters: name (string, your full name) and email (string, your email address for notifications).
MessagingEnter the FIFA World Cup 26 Final raffle for 0.01 USDC on Base Mainnet. Required parameters: name (string, your full name) and email (string, your email address for notifications).
EruditePay Blockchain Intelligence API
Messaging352 x402-payable blockchain analytics endpoints. Pay-per-call with USDC on Base or USDT on Tron. No API keys required.
FOV — Find or Verify
MessagingEmail finder and verifier API, paywalled per-call with x402 (USDC on Solana).
FOV — Find or Verify
MessagingEmail finder and verifier API, paywalled per-call with x402 (USDC on Solana).
FOV — Find or Verify
MessagingEmail finder and verifier API, paywalled per-call with x402 (USDC on Solana).
Generates context-aware email replies, tailoring responses based on the original message and user preferences.
MessagingGenerates context-aware email replies, tailoring responses based on the original message and user preferences.
Generates personalized email responses based on incoming message content, tone, and user preferences for efficient communication management.
MessagingGenerates personalized email responses based on incoming message content, tone, and user preferences for efficient communication management.
GoldBean API — AI-Powered API Marketplace
MessagingGoldBean is a comprehensive pay-per-call API marketplace on Base chain, offering 100+ AI-powered endpoints across 20+ categories including AI language, image, video generation, blockchain, DeFi, social media, e-commerce, weather, and more. Each endpoint uses x402 protocol for micropayments.
GoldBean API — AI-Powered API Marketplace
MessagingGoldBean is a comprehensive pay-per-call API marketplace on Base chain, offering 100+ AI-powered endpoints across 20+ categories including AI language, image, video generation, blockchain, DeFi, social media, e-commerce, weather, and more. Each endpoint uses x402 protocol for micropayments.
GoldBean API — AI-Powered API Marketplace
MessagingGoldBean is a comprehensive pay-per-call API marketplace on Base chain, offering 100+ AI-powered endpoints across 20+ categories including AI language, image, video generation, blockchain, DeFi, social media, e-commerce, weather, and more. Each endpoint uses x402 protocol for micropayments.
GoldBean API — AI-Powered API Marketplace
MessagingGoldBean is a comprehensive pay-per-call API marketplace on Base chain, offering 100+ AI-powered endpoints across 20+ categories including AI language, image, video generation, blockchain, DeFi, social media, e-commerce, weather, and more. Each endpoint uses x402 protocol for micropayments.
HeyAnon
MessagingAsk Gemma AI bot for general crypto information including protocols analysis, community insights, market data, news, TVL analytics, sentiment analysis, and token research. Gemma has access to: community (Telegram/Discord/Twitter/Docs analysis), dailyCommunityPulse (24h crypto news), tvl_info (DeFi TVL analytics), fees_info (protocol fees data), defillama_protocols_info (DeFi protocols info), messari (market data), bubblemaps (token distribution), cookie (crypto projects index), xContractAddressResearch (Twitter contract analysis), twentiment (sentiment analysis).
httpay.xyz — 307 Pay-Per-Call APIs via x402 on Base | No API Keys
Messaging307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.
httpay.xyz — 307 Pay-Per-Call APIs via x402 on Base | No API Keys
Messaging307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.
httpay.xyz — 307 Pay-Per-Call APIs via x402 on Base | No API Keys
Messaging307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.
Human Oracle - x402 Human Input Service
MessagingPay $0.10 USDC to submit a question to a real human Discord community. Returns a token to poll for responses. Status becomes 'ready' once at least 1 human response(s) are collected. Max question length: 2000 characters. Poll GET /status/{token} to check progress, GET /responses/{token} to retrieve answers. Network: Base Mainnet.
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog
Laevitas API V2
Messaging## WebSocket Streaming API For real-time data streams, see the [WebSocket Documentation](/websocket). ### Available channels: | Description | Channel | |-------|-------------| | Live trades | trades.{market}.{exchange}.{instrument} | | OHLC ticker | ohlc.ticker.{market}.{exchange}.{instrument}.{timeframe} | | OHLC VT | ohlc.vt.{market}.{exchange}.{instrument}.{timeframe} | | variable | Examples | |-------|-------------| | market | perpetuals, futures, options, spot | | exchange | supported exchange (e.g., binance, okx, deribit, bybit, hyperliquid) | | instrument | instrument name (e.g., BTC-PERPETUAL, ETH-30JUN23-2000-C) | | timeframe | 1m, 5m, 15m, 1h, 4h, 1d | --- ## Authentication All requests require an API key in the header: ```http X-API-Key: your-api-key-here ``` ## x402 Pay-Per-Request All data endpoints support x402 pay-per-request — no API key needed. - Discovery: `GET /.well-known/x402` - OpenAPI: `GET /openapi.json` - Price: $0.001 per request (USDC on Base) ## Quick Start ```bash curl -X GET "https://apiv2.laevitas.ch/futures/ohlcvt?exchange=deribit&instrument_name=BTC-PERPETUAL" -H "X-API-Key: your-api-key-here" ``` ## Python Example: Fetch Metadata and OHLCVT Data This example shows how to fetch metadata first to get data availability, then query OHLCVT data for BTC-PERPETUAL on Deribit: ```python import requests from datetime import datetime API_KEY = "your-api-key-here" BASE_URL = "https://apiv2.laevitas.ch" HEADERS = {"X-API-Key": API_KEY} # Step 1: Fetch metadata to get start date and data availability metadata_response = requests.get( f"{BASE_URL}/perpetuals/metadata", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "limit": 100 } ) metadata = metadata_response.json() print(f"Instrument: {metadata['instrument_name']}") print(f"Exchange: {metadata['exchange']}") print(f"Data available from: {metadata['start_date']}") print(f"Data available until: {metadata['end_date']}") print(f"Total records: {metadata['total_count']:,}") print(f"Total pages (limit=100): {metadata['total_pages']:,}") # Step 2: Fetch OHLCVT data using the start date from metadata ohlcvt_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "limit": 100 } ) ohlcvt_data = ohlcvt_response.json() print(f"\nFetched {len(ohlcvt_data['data'])} OHLCVT records") print(f"First record timestamp: {ohlcvt_data['data'][0]['minute']}") # Step 3: Paginate through data using cursor next_cursor = ohlcvt_data['meta']['next_cursor'] if next_cursor: next_page_response = requests.get( f"{BASE_URL}/perpetuals/ohlcvt", headers=HEADERS, params={ "exchange": "deribit", "instrument_name": "BTC-PERPETUAL", "resolution": "1h", "start": metadata['start_date'], "cursor": next_cursor, "limit": 100 } ) next_page_data = next_page_response.json() print(f"Next page has {len(next_page_data['data'])} records") ``` ### Available Data #### Perpetuals - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Funding rates and carry metrics - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Futures - OHLCVT candlestick data with volume breakdown - Mark and index reference prices - Open interest tracking - Trade-by-trade data - Best bid/ask snapshots - Metadata endpoint for data availability #### Options - Options OHLC with Greeks and IV - Volatility surface data - Options flow and volume - Open interest by strike/expiry - Metadata endpoint for data availability #### Spot - OHLCVT candlestick data with buy/sell volume breakdown (base + quote currency) - Ticker OHLC (bid/ask/spread/size dynamics, 24h rolling stats) - Large trades (>=$1M) with quote amount and BBO at time of trade - Volume breakdown by time bucket - L2 orderbook aggregated depth metrics (4 depth levels) - Raw L2 orderbook snapshots with full bid/ask arrays - Per-instrument snapshots - Metadata endpoint for data availability ### Supported Exchanges Binance, OKX, Deribit, Bybit, Bullish (options + perpetuals), Derive (options only), Hyperliquid (perpetuals only), Nado (perpetuals only), Coinbase (spot only), Kraken (spot + futures + perpetuals) ### Response Format All endpoints return paginated JSON responses with cursor-based navigation for large datasets. ### Rate Limiting Default: 240 requests per 60 seconds per API key ### Support - Email: support@laevitas.ch - WebSocket API: [/websocket](/websocket) - Changelog: /api/v1/changelog