# Composite API API: https://api.mobiusquant.ai Reference: https://docs.mobiusquant.ai/markets.html#composite Use `exchange="composite"` with `market="spot"` or `"perp"`. Spot and perpetual volumes are never mixed. The symbol selects the group without an additional parameter: | Example | Included quote markets | Price unit | | --- | --- | --- | | `BTCUSDT` | USDT | USDT | | `BTCUSDC` | USDC | USDC | | `BTCUSD` | USD | USD | | `BTCALL` | USDT + USDC + USD | USD | Use uppercase `{BASE}{GROUP}` with no separator: `SOLUSDC`, `SOLUSDT`, `SOLUSD`, `SOLALL`. `ALL` is part of the symbol, not a `market`, `quote` or `group` request parameter. Do not send `symbol="SOL"`, `SOL/ALL`, `SOLall` or `market="all"`. Discover spot and perpetual subscriptions separately; a group is available only when listed: ```bash curl 'https://api.mobiusquant.ai/api/markets/composite/spot/symbols' curl 'https://api.mobiusquant.ai/api/markets/composite/perp/symbols' curl 'https://api.mobiusquant.ai/api/klines?exchange=composite&market=perp&symbol=BTCUSDC&interval=1h&limit=168' curl 'https://api.mobiusquant.ai/api/klines?exchange=composite&market=perp&symbol=BTCUSDT&interval=1h&limit=168' curl 'https://api.mobiusquant.ai/api/klines?exchange=composite&market=perp&symbol=BTCALL&interval=1h&limit=168' ``` Use the following body with `POST /api/indicators` or `POST /api/chart`: ```json { "exchange": "composite", "market": "perp", "symbol": "BTCALL", "interval": "1h", "limit": 168, "signals": true, "include": ["calculation", "signal_details"], "calc": [{"name": "cvd", "id": "cvd", "params": {"cvd_period": 24}}] } ``` For a year of hourly data, page through explicit `startTime` and `endTime` windows in milliseconds; for example, 168 hourly slots per week with `endTime = startTime + 167 × 3600000`. Advance the next window by 168 hours. Request limits still apply; one year is not returned in one call. Availability is the common history of the contributing sources. A short or empty window is not proof that every source has a full year. See [historical queries](#historical-windows) for error handling. Weekly turnover can be calculated from returned `quote_volume`; inspect `price_unit` and `quote_volume_estimated`, and exclude the unclosed candle. No turnover-ranking endpoint is implied. The native CVD result is in `indicators.cvd`; compare local CVD only after aligning the algorithm, parameters, calculation input range and candle-close state. CVD uses `cvd_period=24`, not `period`; the latter returns HTTP 400. Matching this parameter alone does not establish algorithm equivalence. - Only subscribed markets for the same asset contribute. This is not global trading volume; shared order books are counted once. - `volume` sums base-asset quantities after converting recognized 1,000-unit contract denominations. - OHLC uses the same candle's base-volume weights, or equal weights when every source reports zero volume. Quote conversion uses matching candle-close FX rates, not a constant stablecoin peg. - These are retrospective synthetic candles, not executable prices. All four prices can change before close; high/low are not actual extrema of a synchronous index path, and open was not known at the opening instant. Do not use it to simulate opening fills. - CVD operates on synthetic OHLCV. It remains an estimated volume delta, not actual taker volume or a sum of venue CVDs. - A returned candle requires all participating sources and required FX. Missing data is never replaced with zero or a smaller source subset. Shared history may contain fewer bars. Incomplete or stale latest data returns 503. A completed historical query with no common data returns 404 `history_not_available`. All three data endpoints add `data_meta`: | Field | Meaning | | --- | --- | | `group` | `USDT`, `USDC`, `USD` or `ALL` | | `price_unit`, `volume_unit` | Price currency and base-asset unit | | `sources`, `source_count` | Source identifiers (`exchange:market:symbol`) and count | | `membership` | Identifier that changes with the source set | | `price_method`, `volume_method` | `bar_volume_weighted_ohlc`, `sum_base_volume` | | `fx_method` | `bar_close` or `none` | | `status` | `ready`: latest interval complete; `partial`: latest interval missing inputs, earlier complete candles returned | | `missing_latest_sources`, `missing_latest_fx` | Sources or FX pairs missing the latest interval | | `data_as_of_ms` | Last returned candle's opening timestamp in milliseconds | | `quote_volume_estimated` | Turnover includes an estimate or candle-level FX conversion | | `history_coverage` | Historical queries only: read range, available bars and source gaps; indicator reads include warmup | `history_coverage.status` is `complete` or `partial`; `gap_policy` is `strict_intersection_v1`. `start_open_time_ms/end_open_time_ms` are inclusive opening timestamps for the read range. `expected_bars/available_bars` count expected and available candles, not the indicator output `count`. Each `gaps` entry contains `kind=source|fx`, `source=exchange:market:symbol`, `missing_bars` and `ranges:[{start_open_time_ms,end_open_time_ms,bars}]`. For example, `kind=fx` with `source=coinbase:spot:USDTUSD` identifies missing FX candles for those intervals. A gap does not prove no trading, a listing date or delisting. The API does not silently fill it with zero volume, carried prices, a 1:1 FX rate or an alternative source. If preparation is still running, retry the same request after `Retry-After` seconds. A completed historical query with no aligned candles returns `404 history_not_available`.