OUTCOME · Reconcile
What changes
Read-only projection; it grants no mutation, settlement, traffic, or authority change.
v2Markets and execution
/api/v2/markets/{market_id}/tradesPURPOSE + BUSINESS CONTEXT
WHEN THIS CALL IS USEFUL
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
Production OpenAPI presence proves that the public route is deployed; it does not unsuspend a market, admit order traffic, or select a matching engine. Catalog and read access can remain available while order entry is disabled. Matching authority, collateral reservation, settlement, and market lifecycle are independently fail-closed behind this stable contract.
The exact deployed parameters, schemas, responses, security requirements, and Hybrid-Chain agent metadata are authoritative at this operation's production OpenAPI JSON Pointer. The readable tables below add integration guidance; the deployed OpenAPI controls if guidance and the machine contract ever differ.
Open the authoritative production contract ↗EXTENDED INTEGRATION GUIDANCE
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-09-11T06:35:11.572Z. Authentication, tenant, feature, venue, and market policy still apply.
Verify the exact production OpenAPI operation ↗Return to the V2 directory ↗