OUTCOME · Reconcile
What changes
Read-only projection; it grants no mutation, settlement, traffic, or authority change.
Markets and execution
/api/v2/markets/{market_id}/tradesPurpose and usage
Return a bounded recent execution window for one canonical venue-scoped market with duplicate matching sides collapsed.
When to use it
Call this when a market-data, trading, risk, or reconciliation client needs to reconcile the chronology and current state of market trades so it can understand market, order, trade, position, or collateral state without confusing a read model with execution authority.
OUTCOME · Reconcile
Read-only projection; it grants no mutation, settlement, traffic, or authority change.
WHY IT MATTERS
ISOLATION + AUTHORITY
The authenticated owner, market, order, position, matching, risk, publisher, and settlement boundaries remain distinct. Documentation, contract visibility, and read access grant no execution authority; possession of a write scope still cannot bypass market status, risk, admission, allowlist, suspension, matching, publisher, or settlement gates. Current trading, matching, prediction, ingress, publisher, allowlist, suspension, market-status, and traffic controls remain frozen unless separately approved through their controlling process.
BEFORE YOU CALL
WHAT TO DO NEXT
AGENT GUIDANCE
Market data and catalog reads may be available while order entry is disabled. Confirm the market’s current state and your permissions before making a trading request; a production-listed route does not change market availability.
Use the deployed OpenAPI for exact parameters, schemas and security requirements. The tables below provide integration guidance.
Open this operation in OpenAPIRequest and response
Examples illustrate integration intent; the referenced OpenAPI operation and component schemas define the executable shape.
PARAMETERS
AuthorizationheaderRequiredBearer tokenCredential containing the trading:read scope.EXAMPLEBearer hc_live_…
market_idpathRequireduppercase hyphen-separated identifier · 3–64 charactersCanonical base, quote, and optional instrument identifier. Lowercase, underscore, repeated-hyphen, and slash aliases are rejected.EXAMPLEBTC-USD-PERP
venuequeryOptionaldex | securities | virtualAuthoritative venue catalog. Defaults to dex.EXAMPLEdex
minutesqueryOptionalinteger · 1–43,200Lookback window ending at the current Core database time; defaults to 1,440.EXAMPLE60
limitqueryOptionalinteger · 1–1,000Maximum distinct executions; defaults to 200.EXAMPLE200
RESPONSES
{
"items": [
{
"trade_id": "engine-trade-7",
"market_id": "BTC-USD-PERP",
"venue": "dex",
"price": "42000.12",
"quantity": "0.015",
"executed_at": "2026-08-13T22:00:00Z",
"execution_time_ns": "1723586400000000000"
}
],
"market_id": "BTC-USD-PERP",
"venue": "dex",
"window_minutes": 60,
"limit": 200,
"truncated": false
}{
"code": "missing_credentials",
"message": "Authorization: Bearer is required, or the supplied credential is invalid."
}missing_credentials{
"code": "insufficient_scope",
"message": "The credential lacks trading:read authority."
}insufficient_scope{
"code": "market_not_found",
"message": "The requested canonical market does not exist on the selected venue."
}market_not_found{
"code": "invalid_market_id",
"message": "The path identifier or venue value is not canonical."
}invalid_market_id{
"code": "market_data_unavailable",
"message": "The authoritative venue catalog is unavailable or has not been configured."
}market_data_unavailableOPERATIONAL NOTES
UPGRADING FROM V1
If you maintain an older integration, use this map to find the V2 replacement. Do not translate the old request field-for-field: rebuild it from the V2 parameters and schemas above because identity, authorization, replay protection, and response semantics may have changed.
/api/v1/dex/market_historyDEX: Get DEX Historical Data/api/v1/exchange/market_historyMTF: Get MTF Market HistoryThis route is implemented in canonical gateway source and appears in the production OpenAPI snapshot observed 2026-10-02T23:27:55.510Z. Authentication, tenant, feature, venue, and market policy still apply.
Verify the exact production OpenAPI operation Return to the V2 directory