# HALOWERK marktwerk – Deribit Dated Futures Basis Calculator

> HALOWERK marktwerk – Deribit Dated Futures Basis Calculator is a paid API for AI agents from markt.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Fetches Deribit dated futures prices for BTC or ETH and computes the basis (spread) against a named spot price source, with annualization and cross-venue flagging.

## Facts

- Endpoint: POST https://markt.halowerk.com/basis
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-marktwerk-deribit-dated-futures-basis-calculator-bd1356d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-dZswnkeYN6FKw8JR1uHj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability halowerk-marktwerk-deribit-dated-futures-basis-calculator-bd1356d7 -d '<json body>'
```

Example prompt: Pull the current Deribit basis for all BTC/USD dated futures using the Deribit index as the spot reference and show me the annualized basis for each expiry.

## When to prefer this

Choose this endpoint when you need Deribit-specific dated futures basis computations with explicit spot-source attribution and annualization. It is purpose-built for crypto basis trading analysis on Deribit and handles USD/USDT discrepancy flagging automatically. Prefer it over generic ticker or order-book endpoints when the goal is term-structure or carry analysis, not just price lookup.

## Known failure modes

- Invalid symbol format (must be BTC/USD or ETH/USD case-insensitive) returns a validation error
- Specific YYYY-MM-DD date with no open Deribit contract on that date returns empty or error
- Deribit API unavailability causes fetch failure
- Selected spot exchange (e.g. Kraken) is temporarily unreachable, preventing cross-venue basis computation
- Bybit or OKX spot returns USDT price — endpoint flags this but still computes; callers should be aware of the USD/USDT discrepancy

## How this service works

Reads the dated futures of Deribit for BTC or ETH and compares each expiry with a spot price whose source is always named in the answer, because a basis computed against a different venue than the future is a different number. By default the Deribit index is used, which sits on the same venue as the contract; choosing a spot venue instead is possible and is then flagged, including the case where that venue quotes in USDT while the contract settles in USD. Annualization only happens above one day

## Output

Returns one row per matching Deribit expiry containing: the expiry date, the futures price, the spot price (with source clearly labeled), the absolute basis, the annualized basis (omitted for same-day expiries), and a flag if the spot source is a different venue or quotes in USDT rather than USD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "venue": {
   "enum": [
    "deribit"
   ],
   "type": "string",
   "default": "deribit",
   "description": "Futures venue. Only Deribit is connected here."
  },
  "symbol": {
   "type": "string",
   "pattern": "^(BTC|ETH|btc|eth)/(USD|usd)$",
   "description": "Underlying as BASE/USD, so BTC/USD or ETH/USD. Deribit settles its dated futures in USD."
  },
  "expiries": {
   "type": "string",
   "default": "alle",
   "description": "alle for every open expiry, naechste for the nearest one, or an exact date as YYYY-MM-DD."
  },
  "spot_source": {
   "enum": [
    "deribit_index",
    "binance",
    "coinbase",
    "kraken",
    "okx",
    "bybit"
   ],
   "type": "string",
   "default": "deribit_index",
   "description": "Where the spot price comes from. deribit_index sits on the same venue as the contract; anything else is flagged as a cross venue basis."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-marktwerk-deribit-dated-futures-basis-calculator-bd1356d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markt.halowerk.com](https://www.zero.xyz/host/markt.halowerk.com/llms.txt)
