Skip to main content
Read a coin's basis

Overview

This endpoint reads one coin’s basis on every venue. Each perpetual’s mark price is measured against its index and annualized by its funding interval. Each dated future’s basis is annualized to expiry, listed nearest expiry first as the term structure, and interpolated into a constant-maturity basis at tenor_days. With include_spot, the answer adds the spot price of the coin on every exchange Darvas stores, turned into dollars at the venues’ USDT and USDC rates, with a spread matrix between every two venues and how far apart they are.

Example

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

asset
string

The coin whose basis to read; BTC without it.

Maximum string length: 15
Pattern: ^[A-Za-z0-9]{1,15}$
venues
string

Comma-separated venues from okx, binance, bybit and hyperliquid; all four without it.

Maximum string length: 40
Pattern: ^[a-z]+(,[a-z]+){0,3}$
tenor_days
integer<int32>
default:90

The tenor of the constant-maturity basis, in days; 90 without it.

Required range: 7 <= x <= 365
include_spot
boolean
default:true

Whether to add every exchange's spot price and the spread matrix; true without it.

Response

Read a coin's basis: one page.

The answer of GET /crypto/basis.

asset
string
required

The coin whose basis is read.

Maximum string length: 15
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
Example:

"BTC"

as_of
string<date-time>
required

When the venues' contracts were read.

Maximum string length: 40
Example:

"2026-11-30T12:00:00.000Z"

as_of_milliseconds
integer<int64>
required

The read of the contracts, in Unix milliseconds.

Required range: 0 <= x <= 4102444800000
Example:

1796040000000

venues_included
string[]
required

Venues whose contracts were read.

Maximum array length: 4
Maximum string length: 200
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
Example:
venues_unavailable
string[]
required

Venues whose contracts could not be read now.

Maximum array length: 4
Maximum string length: 200
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
Example:
units
object
required

The unit of each basis field name ending.

Example:
methodology
object
required

How each basis is computed.

Example:
perpetuals
object[]
required

Every perpetual of the coin.

Maximum array length: 100
futures
object
required

The dated futures of the coin.

Example:
spot
object | null
required

With include_spot, each exchange's spot price in dollars: stablecoin_rates_usd, venues_missing, venues (venue, ticker, quote, price, price_usd, time, stale), spread_matrix_bps (row venue over column venue) and dispersion (venues, median_price_usd, lowest_venue, highest_venue, range_bps, stdev_bps); null without it.

Example:

null