API
Read-Only API
Public REST API providing market statistics for Variational Omni.
Base URL
https://omni-client-api.prod.ap-northeast-1.variational.io
Endpoint
GET /metadata/v2/stats
Returns platform-wide and per-listing market statistics for all perpetual and swap markets.
Rate Limits
Per IP: 10 requests per 10 seconds.
Global: 1000 requests per minute.
The limits are shared with the legacy v1 endpoint. Requests over the limit receive HTTP 429 with a JSON body whose retry_after_seconds field says when to retry.
Response Fields
General Metrics
total_volume_24h
string
24-hour trading volume across all markets (USDC)
cumulative_volume
string
Lifetime cumulative trading volume (USDC)
tvl
string
Total value locked in settlement pools and the OLP vault (USDC)
open_interest
string
Total open interest across all markets (USDC), double-sided: includes both trader and OLP positions
num_markets
integer
Number of listed markets, perpetuals and swaps alike. May exceed the number of entries in listings
loss_refund.pool_size
string
Deprecated. Always 0, as loss refunds have been discontinued
loss_refund.refunded_24h
string
Deprecated. Always 0, as loss refunds have been discontinued
listings
array
Per-listing statistics
Per-Listing Fields
ticker
string
Market ticker, suffixed with the contract type (e.g., BTC-PERP, XAU-SWAP)
contract_type
string
perpetual or swap. Determines the shape of funding
name
string
Asset name (e.g., Bitcoin)
mark_price
string
Current mark price
volume_24h
string
24h trading volume (USDC)
open_interest.long_open_interest
string
Long open interest (USDC), single-sided: trader positions only
open_interest.short_open_interest
string
Short open interest (USDC), single-sided: trader positions only
funding
object or null
Current funding terms. See Perpetual Funding Fields and Swap Funding Fields. null when no funding data is available for the market
base_spread_bps
string
Bid/ask spread of the smallest quote (quotes.base, or quotes.size_1k if unavailable), in basis points of the mark price
quotes
quotes object
Indicative quotes at several sizes
Perpetual Funding Fields
Shape of funding when contract_type is perpetual. See Funding Rates for how perpetual funding works.
last
perpetual rate object
Current funding rate
next
perpetual rate object or null
Predicted funding rate for the next interval. Currently the same as last
interval_seconds
integer
Funding interval in seconds
next_timestamp
integer
Time of the next funding payment (Unix seconds)
Each perpetual rate object contains the same rate in two units. A positive rate means longs pay shorts; a negative rate means shorts pay longs.
annualized_rate
string
Annualized funding rate
interval_rate
string
Funding rate for one funding interval
Swap Funding Fields
Shape of funding when contract_type is swap. Swap funding is paid once per trading day, with separate rates for longs and shorts. See Swaps Funding for how it works.
last
swap rate object or null
Rates of the most recently applied funding payment. null if the market has not paid funding in the past week
next
swap rate object or null
Rates of the upcoming funding payment. null between a payment and the publication of the next one's rates
interval_seconds
integer
Always 86400 (one payment per trading day)
next_timestamp
integer or null
Time the next payment applies (Unix seconds). null when next is null
At least one of last and next is present; a swap market with neither reports funding as null.
Each swap rate object contains:
annualized_long_rate
string
Annualized rate for long positions. Positive means longs pay
annualized_short_rate
string
Annualized rate for short positions. Positive means shorts receive
interval_long_rate
string
Rate for long positions for one payment (the annualized rate divided by 360)
interval_short_rate
string
Rate for short positions for one payment (the annualized rate divided by 360)
Payments that cover weekends or market holidays include the closed days, so their rates read about 3× those of a regular day.
Quotes Fields
updated_at
string
Time the quotes were fetched (ISO 8601)
base
quote object
Quote at the market's minimum order size
size_1k
quote object
Quote at $1,000 notional
size_100k
quote object
Quote at $100,000 notional
size_1m
quote object
Quote at $1,000,000 notional (major and high-volume markets only)
Quote Fields
bid
string
Bid price
ask
string
Ask price
Sample JSON
Example
Python
You may save the script as omni_stats.py and run it directly with uv:
Migrating from v1
/metadata/v2/stats reports the same platform-wide metrics as /metadata/stats. Only the per-listing fields differ:
tickeris suffixed with the contract type, e.g.,BTCbecomesBTC-PERP. Swaps are listed under their displayed symbol, e.g.,XAUSbecomesXAU-SWAP.contract_typeis new.fundingreplacesfunding_rateandfunding_interval_s. For perpetuals, v1'sfunding_ratecorresponds tofunding.last.annualized_rate, andfunding_interval_stofunding.interval_seconds. Swaps, which v1 reports with a placeholder rate of0, now report their actual long and short rates.A market without funding data reports
fundingasnullrather than a funding rate of0.
Notes
All numeric values are returned as strings to preserve decimal precision.
The bid/ask price may be cached for up to 600 seconds, all quotes contain an
updated_atfield.Prices and volumes are denominated in USDC.
Funding rates are decimals (multiply by 100 for percentage).
quotes.updated_atis an ISO 8601 string, while funding timestamps are Unix seconds.name,base_spread_bps,quotes, and the individual quote sizes are omitted when unavailable, e.g., while a swap market is closed.fundingis always present, and isnullwhen unavailable.
Support
For questions, contact support through one of our official channels.
Trading API
Last updated