Read time … min

AI-native runtime for Deribit options strategies

Author in Cursor, Claude Code or any AI IDE. Deploy from GitHub into a managed cloud runtime with first-class MCP control, logs and region selection.

By the TradingHost engineering team

Section 01 · At a glance

At a glance

Venue
Deribit
Venue type
Crypto derivatives exchange (options-led)
Asset class
Crypto
Supported products
BTC, ETH, SOL options (European-style, cash-settled); inverse perpetual and inverse expiry futures (BTC, ETH); linear USDC perpetual and linear USDC expiry futures (BTC, ETH, SOL, XRP, TRX, AVAX); linear USDC options (BTC, ETH, SOL, XRP, TRX, AVAX); DVOL volatility index futures
Runtime model
Containerised strategy runtime
Deployment source
GitHub
Languages
Any language that runs in a container
Common integrations
Native Deribit API (JSON-RPC over WebSocket, JSON-RPC over HTTP, FIX 4.4), CCXT, custom clients
AI workflow integration
MCP control surface for Cursor, Claude Code, GitHub Copilot and CLI agents
TradingHost role
Runtime, deployment, logs, health checks, region selection, MCP control
Deribit role
Exchange account, API access, market access, execution venue
Affiliation
TradingHost is independent and is not affiliated with Deribit or Coinbase, its parent since August 14, 2025

Section 02 · What Deribit offers

What Deribit offers

Deribit is options-led: BTC, ETH and SOL options (European-style, cash-settled) are the venue's primary product, with inverse perpetual and expiry futures on BTC and ETH and a linear USDC product family (perpetuals, expiry futures and options across BTC, ETH, SOL, XRP, TRX and AVAX) as the secondary surface, plus DVOL volatility index futures. The API is JSON-RPC over WebSocket or HTTP, with FIX 4.4 for institutional flow. Coinbase closed its acquisition of Deribit on August 14, 2025; hostnames, authentication and instrument naming continue under Deribit's own brand. Endpoint specifics change over time. The shape is durable; the precise rate-limit weights, fee tiers and symbol lists live in Deribit's docs.

Markets and strategy patterns

  • BTC, ETH and SOL options gamma scalping
  • Volatility carry on DVOL and listed options
  • Calendar and diagonal spreads
  • Delta-neutral options books
  • Options vs perpetual hedging
  • Block RFQ multi-leg structures
  • Portfolio-margin options market making
  • DVOL volatility index futures

API surface

Product surfaces
BTC, ETH, SOL options (European-style, cash-settled); inverse perpetual and expiry futures (coin-margined); linear USDC perpetual and expiry futures; linear USDC options; DVOL volatility futures. Testnet at `test.deribit.com` mirrors the full instrument surface with isolated accounts and credentials.
Connection methods
JSON-RPC over WebSocket (`wss://www.deribit.com/ws/api/v2`), JSON-RPC over HTTP (`https://www.deribit.com/api/v2`), FIX 4.4 with custom tags (`www.deribit.com:9880`). Order placement over WebSocket is standard for low-latency options. FIX is institutional. Block RFQ exposed over the same API surface.
Authentication
API key with multiple grant types via `public/auth`: Client Credentials (`client_id` plus `client_secret`), Client Signature (HMAC-SHA256 over `timestamp + "\n" + nonce + "\n" + data`), Basic Auth, deri-hmac-sha256 header auth, plus asymmetric (self-generated) keys. Returns `access_token` and `refresh_token`. Sub-account hierarchy with independent API keys and independent rate-limit credit pools. Block trade authorisation uses a separate `enabled_features: block_trade_approvals` flag.

For specifics, refer to Deribit

Specific endpoints, rate-limit weights, symbol lists, fee tiers and version history live in Deribit's documentation. Treat these as the source of truth.

Section 03 · Build with AI

Build your Deribit strategy with AI

Pick an integration method, fork a TradingHost framework starter, and author your strategy in an AI IDE. Cursor, Claude Code, GitHub Copilot and CLI-based AI agents all work with the same GitHub-native deployment loop.

  • Native Deribit API

    Direct control over Deribit-specific behaviour, account data and order execution logic. JSON-RPC over WebSocket and HTTP, plus FIX 4.4 for institutional flow. Block RFQ is exposed over the same API surface.

  • CCXT

    Common interface across Deribit and other crypto exchanges. CCXT exposes Deribit through the `deribit` exchange class with coverage for options, perpetual and expiry futures, including unified options methods.

  • Freqtrade or Hummingbot

    Neither Freqtrade nor Hummingbot ships an official Deribit connector for the options surface today. Freqtrade is spot- and perp-focused without a documented Deribit listing; Hummingbot has no options connector category. Use the native API or CCXT instead.

  • Custom connector

    Your own internal trading engine or proprietary Deribit integration, including direct JSON-RPC over WebSocket for low-latency options flow or FIX 4.4 for institutional execution.

Framework support for Deribit products

Coverage varies by framework. Deribit is options-led, with inverse and linear perpetuals plus expiry futures as the secondary surface. CCXT exposes the `deribit` class with coverage across options, perpetuals and expiry futures; native Deribit API access reaches the full instrument surface including DVOL volatility index futures and Block RFQ. Freqtrade and Hummingbot do not ship official Deribit connectors for these markets. Coinbase closed its acquisition of Deribit on August 14, 2025; API continuity has been preserved under the existing hostnames and authentication.

FrameworkOptionsPerpFutures
Native Deribit APISupportedSupportedSupported
CCXTSupportedSupportedSupported
FreqtradeNot documented as supportedNot documented as supportedNot documented as supported
HummingbotNot documented as supportedNot documented as supportedNot documented as supported

✓ confirmed support per official framework docs. "no" indicates not officially documented as supported.

TradingHost does not force a framework. It runs your project.

Author with AI

The framework starters above pair naturally with AI IDEs. The TradingHost MCP control surface closes the loop: AI tools can inspect deployments, review logs and manage the runtime alongside you, never the trade execution path.

Section 04 · Run on TradingHost

Run your code on TradingHost

Deribit provides the exchange and API access. TradingHost provides the production environment where your Deribit-connected strategy runs.

Instead of running strategy code on a laptop, desktop machine, generic VPS or manually configured server, you deploy from GitHub into a TradingHost-managed container runtime.

You

  • Your repo contains your code.
  • Your deployment defines how it runs.
  • Your strategy connects to Deribit.

TradingHost

  • Keeps the runtime online.
  • Surfaces logs and health checks.
  • Region selection.
  • Controlled deployment surface.

Deployment flow

  1. STEP 01

    Connect GitHub

    Authorise TradingHost to access your GitHub account.

  2. STEP 02

    Link a repo or start from a framework

    Point TradingHost at your existing strategy repo, or fork a TradingHost framework runtime (CCXT) for a working baseline.

  3. STEP 03

    Deploy into a TradingHost container

    Pick a region (EU or US-East), supply the environment values your strategy needs (Deribit `client_id` and `client_secret`, plus optional FIX session credentials), and deploy. TradingHost builds your container from the repo and runs your strategy on managed Kubernetes infrastructure. No local Docker install required.

  4. STEP 04

    Monitor logs and health

    Watch live logs, health and runtime state from the TradingHost dashboard. The same surface is reachable through MCP from any AI IDE, so Cursor, Claude Code or a CLI agent can read deployment state and manage the runtime alongside you.

  5. STEP 05

    Update and redeploy

    Push changes to your GitHub main branch and TradingHost redeploys automatically.

Section 05 · Operational notes

Operational notes for Deribit

Things that bite you when you actually run a Deribit strategy in a containerised cloud runtime, not in Deribit's docs, not in framework READMEs. Every claim below is quoted or paraphrased from Deribit's own documentation; the deployment-side guidance is from running these strategies on TradingHost.

  1. 01 · Greeks

    Greeks ship in market data

    Deribit publishes delta, gamma, vega and theta on options tickers and order-book Greeks; strategies should read Greeks from the venue rather than re-derive them, since Deribit's own mark and IV definitions drive margin and liquidation.

  2. 02 · Margin model

    Portfolio Margin vs Standard Margin are separate models

    Standard Margin computes per-position margin with no offsets across futures and options. Portfolio Margin runs scenario shocks across the whole book (price and volatility) and uses the worst-case loss as the requirement, materially reducing margin for hedged options books. Both models can run in segregated or cross-collateral mode.

  3. 03 · Block trades

    Block trades and Block RFQ use a distinct workflow

    Two-party block trades use `/private/verify_block_trade` then `/private/execute_block_trade` with a counterparty signature. Block RFQ supports up to 20 legs across options, futures and spot pairs with a multi-maker model. The API key needs `enabled_features: block_trade_approvals` for the approval flow.

  4. 04 · Settlement

    Daily settlement and expiry both run at 08:00 UTC

    Mark-to-market settlement for perpetuals and futures runs every day at 08:00 UTC with a brief trading pause. Weekly options expire each Friday 08:00 UTC, monthly options on the last Friday of the month at 08:00 UTC. Delivery price is a 30-minute TWAP of the relevant Deribit Index from 07:30 to 08:00 UTC. Strategies that hold inventory across settlement should expect this window.

  5. 05 · Testnet

    Testnet runs on a different host with independent state

    Production lives on `https://www.deribit.com/api/v2` and `wss://www.deribit.com/ws/api/v2`; testnet lives on `https://test.deribit.com/api/v2` and `wss://test.deribit.com/ws/api/v2`. Testnet accounts, balances, sub-accounts and API keys are entirely separate from production, no shared credentials. FIX testnet runs on `test.deribit.com:9881`.

  6. 06 · Coinbase acquisition

    API and brand continuity post-acquisition

    Coinbase closed its acquisition of Deribit on August 14, 2025. Deribit operates under its own brand ("Deribit by Coinbase" appears on deribit.com) and retains its own API hostnames, authentication and product surface. No merged or replaced endpoints have been published; integrations with Coinbase platforms have been signalled as a forward roadmap, not a current migration. Existing API keys, FIX sessions and instrument names continue to function.

  7. 07 · Rate limits

    Credit-based per sub-account, split across pools

    Each sub-account has its own credit pool (leaky-bucket CPS refill) and matching-engine requests (place, cancel, edit) have separate cost configurations from non-matching requests. Tier and recent trading activity raise the cap. Inspect via `/private/get_account_summary`.

Section 06 · Built for

Built for

TradingHost Deribit runtimes are best suited to:

  • Options traders
  • Volatility and derivatives quants
  • Market makers
  • AI-assisted algorithmic traders
  • Institutional desks running multi-leg structures

Connecting GitHub and creating your first strategy is free.

Section 08 · FAQ

FAQ

No. TradingHost is independent and is not affiliated with Deribit or Coinbase, its parent since August 14, 2025.

No. Your strategy code connects to Deribit and sends instructions according to your own logic, account permissions and integration method. TradingHost provides the runtime where that code runs.

No. Deribit API access is provided by Deribit. You are responsible for your Deribit account, API permissions, credentials and compliance with Deribit’s terms.

No. TradingHost is the cloud runtime where your strategy code runs. We do not provide signals, AI prediction models or pre-built bots. With TradingHost you write or generate the strategy yourself (often with Cursor or Claude Code), keep it in GitHub as your code, and use TradingHost to run it in production. 3Commas, Cryptohopper and similar products own the strategy logic; TradingHost runs your strategy.

AWS and DigitalOcean give you raw compute. You handle OS updates, container orchestration, log shipping, secret rotation, region failover and uptime monitoring yourself. TradingHost gives you a managed runtime purpose-built for trading strategies: GitHub-native deployment, MCP-driven control from AI IDEs, log and health surfaces out of the box. If you want to operate the infrastructure yourself, AWS works. If you want the runtime as a managed service, TradingHost is the shorter path.

Yes. TradingHost runs Python strategies; pick the framework runtime that matches your stack or deploy your own repo.

Yes. TradingHost supports any language that can run inside a container.

CCXT's `deribit` exchange covers options, perpetual and expiry futures including unified options methods. Deploy your CCXT-based project from GitHub into a TradingHost container and inject Deribit's `client_id` and `client_secret` as secrets. Native Deribit JSON-RPC over WebSocket and FIX 4.4 are also supported; the runtime is language- and library-agnostic. See the CCXT framework runtime for the full setup story.

Yes. Deribit lists BTC, ETH and SOL options (European-style, cash-settled) as well as linear USDC options on additional altcoins. TradingHost runs the strategy container, deployment, logs and health, and the Deribit API runs the execution. Greeks are exposed on the venue’s tickers, and Portfolio Margin can be enabled at the Deribit account level for cross-instrument margin offsets.

Yes, if your project is designed that way. You can run multiple strategy processes or services inside one runtime, or separate them into different runtimes for isolation and operational clarity. See the TradingHost runtime page for the multi-strategy model.

The fastest path is to fork a TradingHost framework runtime such as CCXT for a ready-to-deploy project. Or connect your own GitHub strategy repo. Linking a GitHub repo and creating a strategy is free; runtime plans are listed on the pricing page.

In your GitHub-controlled secrets workflow. TradingHost reads them at runtime through GitHub repository secrets, environment secrets or your own approved secret-management process. TradingHost does not need custody of your Deribit `client_id` and `client_secret`. See platform secrets for the full handling model.

Portfolio Margin runs scenario shocks across the whole book (price and IV) and uses the worst-case as the requirement, materially reducing margin for hedged or spread options books. Standard Margin treats each position independently with no offsets. If your strategy holds offsetting options and futures legs, Portfolio Margin generally lowers capital requirements; if you are running directional inventory, Standard Margin is simpler. Both can run in segregated or cross-collateral mode.

Yes. TradingHost supports MCP-based control for AI IDEs including Cursor, Claude Code, GitHub Copilot and CLI-based AI agents. AI tools can inspect deployments, review logs, restart strategies and manage runtime workflows. MCP is a control and observability surface, not the trade execution path. See the MCP control surface for the full picture.

Both. The MCP control surface works equally well from CLI-based agents (Claude Code CLI, custom MCP clients, scripted MCP calls) and from inside an IDE. The GitHub-native deployment loop also works without any AI tooling: a regular git push to your main branch triggers a redeploy.

The runtime detects the crash and exposes the relevant logs and health information. Where supported, the affected strategy can be restarted without disrupting other strategies running in the same container. Your strategy code is still responsible for safe error handling, duplicate-order protection and risk controls. See observability for the logs and health surface.

That means the API key, secret or signature did not validate. Common causes: pasting a testnet key against www.deribit.com (or vice versa), clock skew on the timestamp field in HMAC signature auth, an incorrect signature string (format is `timestamp + "\n" + nonce + "\n" + data`, both newlines required), or the key was revoked. Re-check the key in the Deribit console and confirm the environment hostname matches the key.

Yes. Testnet lives on `https://test.deribit.com/api/v2`, `wss://test.deribit.com/ws/api/v2` and FIX `test.deribit.com:9881`. Accounts, balances, sub-accounts and API keys are separate from production. A common pattern is to set `DERIBIT_ENV=test` in the container and resolve the base URL from that.

Coinbase closed its acquisition of Deribit on August 14, 2025. From a strategy author’s perspective, nothing changed at the API or instrument level: hostnames (www.deribit.com, test.deribit.com), authentication, FIX sessions, instrument naming and the JSON-RPC surface continue as before. The brand is now presented as "Deribit by Coinbase". Future integration with Coinbase platforms has been signalled but no merged endpoint has been published.

TradingHost runs in the EU and US-East regions. Pick the region closest to the matching engine your strategy depends on. See the regions page for routing and proximity details.

No. TradingHost is focused on production runtime and deployment. Backtesting belongs in your research stack, framework or AlgoBuilder.