Skip to main content

Pair catalog

Everything comes from one /v2/trading snapshot, cached for 5 seconds (snapshot() with force=True refreshes). For a live copy of the same payload (funding, OI, spreads, market hours) subscribe to the data service Socket.IO feed. Useful PairInfo fields: The snapshot itself (await client.markets.snapshot()) carries protocol-wide state: total_oi, max_open_interest, group_info, max_trades_per_pair.

Upside markets

Upside markets (formerly “zero-fee”/ZFP) are separate pairs suffixed _UPSIDEBTC_UPSIDE/USD trades alongside BTC/USD with the same price feed but no open/close fee and a tiered profit share on gains. Trading methods route the order type automatically from the pair; you just pick the market:
Symbol resolution accepts "BTC_UPSIDE", "BTC_UPSIDE/USD", and quote-side forms like "USD/JPY_UPSIDE"; upside_pair_for raises when a market has no upside listing. Upside pairs are market-only — see Market orders.

Spread

Per-order spread quote from the risk engine v2 — the same endpoint the Avantis web app uses. Size the request by coin exposure directly, or by collateral + leverage (converted at wanted_price, or the live price when omitted):
spreadPct is the quoted value (the with-flow estimate when the flow mechanism is active, otherwise the without-flow spread). A 404 means the engine matched a mechanism but could not compute a spread (for example a stale orderbook) — treat it as “do not execute”, not as zero spread.
The v2 spread engine serves both networks — it is the production spread source. The legacy client.markets.dynamic_spread(...) endpoint was decommissioned on mainnet at the v2 cutover (it raises a ConfigError there) and remains available on testnet only.
Related risk reads: client.markets.open_interests() (per-pair long/short OI including pending amounts) and client.markets.orderbook_snapshots() (cumulative bid/ask coin liquidity per orderbook source).

Candles

OHLCV via the feed’s TradingView shim:
Resolutions follow TradingView conventions ("1", "5", "60", "D", …). For live prices and streaming, see Prices & streams.