resolvedmarkets-com Trades API
Executed-trade tape (last_trade_price fills), joinable to snapshots.
Executed-trade tape (last_trade_price fills), joinable to snapshots.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/resolvedmarkets-com:resolvedmarkets-com-trades-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Resolved Markets Trades API
version: 1.2.0
summary: High-fidelity orderbook data for Polymarket prediction markets and Hyperliquid perpetual futures, plus a backtesting engine and saved-strategy store.
description: 'REST API for live and historical orderbook snapshots, trades, platform statistics, and event-driven strategy backtesting. Public endpoints (health, public-stats, payment packs) require no authentication. Data endpoints require an `X-API-Key` header where the key starts with `rm_` — get one at https://resolvedmarkets.com/api-keys. Account, subscription, and payment endpoints require a Clerk browser session and are not callable with an API key. WebSocket endpoints exist at `/ws/orderbook` and `/ws/chat` (see Servers / x-websocket).
Probabilities are USDC prices in 0.01..0.99. Each Polymarket binary market has two tokens — UP (Yes outcome) and DOWN (No outcome) — each with its own orderbook. UP price + DOWN price ≈ 1.00.'
termsOfService: https://resolvedmarkets.com/pricing
contact:
name: Resolved Markets
email: info@resolvedmarkets.com
url: https://resolvedmarkets.com
license:
name: Commercial — see Pricing page
url: https://resolvedmarkets.com/pricing
servers:
- url: https://api.resolvedmarkets.com
description: Production
security:
- ApiKeyAuth: []
tags:
- name: Trades
description: Executed-trade tape (last_trade_price fills), joinable to snapshots.
paths:
/v1/markets/{id}/trades:
get:
tags:
- Trades
operationId: listMarketTrades
summary: Executed-trade tape for a market
description: 'Paginated time-series of executed trades (last_trade_price fills) captured off the CLOB stream. Joins to /snapshots via asset_id = token_id and matching timestamp. Costs 5 credits. Trade capture began later than snapshots and has gaps; a market with no captured trades returns 200 with total: 0 (an unknown market returns 404).'
parameters:
- $ref: '#/components/parameters/ConditionId'
- $ref: '#/components/parameters/From'
- $ref: '#/components/parameters/To'
- name: limit
in: query
required: false
description: Maximum rows to return. Values above the maximum are rejected with 400, not clamped.
schema:
type: integer
minimum: 1
maximum: 5000
default: 500
- $ref: '#/components/parameters/Side'
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
- name: order
in: query
required: false
description: Sort by timestamp. `asc`/`oldest` = chronological; `desc`/`newest` = reverse-chronological. Defaults to `desc`.
schema:
type: string
enum:
- asc
- desc
- oldest
- newest
default: desc
- name: count
in: query
required: false
description: Set to `false` to skip the count() query when total isn't needed (faster).
schema:
type: boolean
default: true
responses:
'200':
description: Paginated trade list.
content:
application/json:
schema:
type: object
properties:
market_id:
type: string
total:
type: integer
nullable: true
limit:
type: integer
offset:
type: integer
data:
type: array
items:
$ref: '#/components/schemas/Trade'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
components:
responses:
Forbidden:
description: Authenticated, but the caller's tier or role does not permit this resource.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing or invalid API key / Clerk session.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
PaymentRequired:
description: Out of credits or tier does not permit this endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Trade:
type: object
properties:
market_id:
type: string
asset_id:
type: string
description: CLOB token id of the traded outcome; equals token_id in /snapshots.
timestamp:
type: string
format: date-time
description: Our capture time of the trade.
price:
type: number
description: Trade price (0-1).
size:
type: number
description: Trade size in shares.
side:
type: string
enum:
- BUY
- SELL
description: Aggressor side of the fill.
category:
type: string
subcategory:
type: string
token_side:
type: string
enum:
- UP
- DOWN
nullable: true
description: Derived from asset_id; may be null on some closed markets when ?side= is omitted.
Error:
type: object
properties:
error:
type: string
message:
type: string
status:
type: integer
required:
- error
parameters:
ConditionId:
name: id
in: path
required: true
description: Polymarket conditionId (hex string).
schema:
type: string
To:
name: to
in: query
required: false
description: ISO-8601 exclusive upper bound for capture timestamp.
schema:
type: string
format: date-time
From:
name: from
in: query
required: false
description: ISO-8601 inclusive lower bound for capture timestamp.
schema:
type: string
format: date-time
Side:
name: side
in: query
required: false
description: Restrict to one token side.
schema:
type: string
enum:
- UP
- DOWN
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: API key prefixed with `rm_`. Generate at https://resolvedmarkets.com/api-keys.
ClerkSession:
type: apiKey
in: cookie
name: __session
description: Clerk browser session cookie. Used for account, payment, and admin endpoints. Not callable from API-key clients.
externalDocs:
description: Interactive API docs and getting-started guides
url: https://resolvedmarkets.com/docs
x-websocket:
description: 'WebSocket endpoints. Authenticate via a `{ "type": "auth", "apiKey": "rm_..." }` message after connecting; the server replies `{ "type": "auth", "status": "ok" }` within 5 seconds or closes with code 4001.'
endpoints:
- path: /ws/orderbook
description: 'Real-time orderbook stream. After auth, subscribe with `{ "type": "subscribe", "crypto": "BTC" }`.'
- path: /ws/chat
description: Operator chat. Admin connections require a one-time ticket from `POST /v1/admin/chat/ws-ticket`.