API Reference
Every public endpoint of the CantonCap API, generated from the OpenAPI contract the API is built from.
CantonCap APIContract 1.0.035 endpointsOpenAPI 3.1
Conventions
- Base URL
https://api.cantoncap.cc. Every public path starts with/v1and every public operation is aGET. - Authenticate every request with the
X-API-Keyheader. See Authentication. - Responses are JSON in one envelope:
status,dataand, on paginated collections,pagination. See Responses. - Prices, amounts and ratios are exact decimal strings. See Decimals and precision.
- Errors share one envelope with a typed
error.code. See Errors. - The IDs in the examples are illustrative, except Canton Coin's
ast_515c3eaa72bd4a8b9403297879d78ef6. Resolve real IDs with GET /v1/assets/map.
The OpenAPI Document
This reference is generated from the OpenAPI 3.1 contract the API itself is built and tested against. Download it to generate a client, import it into Postman or Insomnia, or diff it between releases.
curl -sO https://docs.cantoncap.cc/openapi.json
curl -sO https://docs.cantoncap.cc/openapi.yamlContract
The document served here is the canonical contract, with an
operationId on every operation. The interactive explorer at api.cantoncap.cc/docs is generated by the running service and reports an older version number; prefer this file for code generation.Simple
Convenience price lookups.
Assets
Canonical assets, listings, prices, and history.
- GET
/v1/assets/mapMap venue-listed assets to stable IDs and Canton instrument identities - GET
/v1/assets/listings/latestGet ranked latest asset market data - GET
/v1/assets/infoGet descriptive token metadata for stable asset IDs - GET
/v1/assets/{asset_id}Get one asset by stable ID - GET
/v1/assets/quotes/latestGet latest aggregate quotes for stable asset IDs - GET
/v1/assets/quotes/historicalGet historical quote snapshots - GET
/v1/assets/ohlcv/historicalGet aggregate asset OHLCV candles - GET
/v1/assets/{asset_id}/market-chartGet price, FDV, market-cap, and volume series for one asset - GET
/v1/assets/{asset_id}/supply/historicalGet the reported total supply history of one asset - GET
/v1/assets/market-pairs/latestGet market pairs with current price, volume, and liquidity - GET
/v1/assets/{asset_id}/registry-configurationsList registry configurations for an asset
Markets
Venue markets, observations, books, trades, and candles.
- GET
/v1/marketsList venue markets - GET
/v1/markets/{market_id}Get market metadata and latest state - GET
/v1/markets/{market_id}/tickerGet the latest venue ticker - GET
/v1/markets/{market_id}/orderbookGet the latest public order-book snapshot - GET
/v1/markets/{market_id}/tradesGet public market trades and coverage - GET
/v1/markets/{market_id}/ohlcvGet venue or CantonCap-rollup candles - GET
/v1/markets/{market_id}/liquidityGet the latest model-specific liquidity snapshot
Pools
AMM pool state, liquidity, and read-only quotes.
Venues
Venue metadata, capabilities, and market coverage.
Activity
Stored volume and execution-count history.
Global
Cross-market CantonCap metrics.
Status
Data availability and freshness.
Issuers
Curated issuers, evidence, and linked assets.
- GET
/v1/issuersList verified and curated issuer entities - GET
/v1/issuers/{issuer_id}Get an issuer profile and linked assets - GET
/v1/issuers/{issuer_id}/evidenceGet published sources for issuer profile facts - GET
/v1/issuers/{issuer_id}/relationshipsGet published issuer validators and instrument administrators