Polymarket Trade History API
Get Polymarket Trade History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as limit, and retrieve structured data including outcome token identifier, market condition identifier, matched trade price, matched trade size, and trade timestamp for activity views, and source joins, ready for production pipelines and AI agent automation.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Polymarket Trade History API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
Polymarket Trade History API
Without user, the read can serve market, event or public-feed scope. data rows carry token_id, condition_id, side, price, size and transaction_hash. start and end apply only to user-scoped reads; the other scopes have their own fixed windows.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: user, limit, cursor, taker_only, filter_type, filter_amount, start, end, condition, event_id, side |
| Selected implementation | polymarket · Polymarket — List trades |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Activity views: Display matched trades with outcome and wallet context.
- Source joins: Retain transaction references when combining trade records.
Documented Response Fields
| Field | Meaning |
|---|---|
data[].token_id |
Outcome token identifier |
data[].condition_id |
Market condition identifier |
data[].side |
Reported BUY or SELL side |
data[].price |
Matched trade price |
data[].size |
Matched trade size |
data[].timestamp |
Trade timestamp |
data[].transaction_hash |
Source transaction reference |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
"https://api.openany.si/v1/agent-apis/polymarket/v2/trades" \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H 'Content-Type: application/json' \
--data-urlencode limit=2
Request and Response Examples
The saved response is a published documentation example. Its values may be historical; the request is an independent calling template. Use current returned identifiers and optional fields for your chosen resource.
Published Polymarket Trade History API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
PolymarketCurrent Polymarket — List trades · GET · View API reference | $0 / call | 0 | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/polymarket/v2/trades- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
user | URL query parametersquery | string | null | No | Address to filter by; omit for the market/event/global feed. |
limit | URL query parametersquery | integer | null | No | First-page size. Ignored when `cursor` is supplied (the cursor's size wins). minimum: 0 · maximum: 1000 |
cursor | URL query parametersquery | string | null | No | Opaque pagination cursor from a prior response's `next_cursor`. |
taker_only | URL query parametersquery | boolean | null | No | Defaults to `true`: each fill is served once, on its taker side. `false` includes the maker rows too. |
filter_type | URL query parametersquery | string | null | No | CASH or TOKENS; defaults to TOKENS. |
filter_amount | URL query parametersquery | number | null | No | Minimum trade size; defaults to 0.01, and 0 means the same. |
start | URL query parametersquery | integer | null | No | Window start on `block_timestamp`, epoch seconds (inclusive); honored on the `user` shape only. Omitted or `0` floors to three years back; `start=1` asks for full history. The `condition`/`event_id` shapes serve a fixed three-year window and the bare feed the rolling current-plus-previous month, ignoring both bounds. |
end | URL query parametersquery | integer | null | No | Window end, epoch seconds (inclusive); honored on the `user` shape only; omitted or `0` means now plus one day. |
condition | URL query parametersquery | string | null | No | Condition id(s), comma-separated (at most 20 distinct values). `condition_id` / `conditionId` are accepted aliases. |
event_id | URL query parametersquery | string | null | No | Event id(s), comma-separated (at most 20 distinct values). |
side | URL query parametersquery | string | null | No | BUY or SELL. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
dataobject[]biostringcondition_idstringevent_slugstringiconstringnamestringoutcomestringoutcome_indexintegerpricenumberprofile_imagestringprofile_image_optimizedstringproxy_walletstringpseudonymstringsidestringsizenumberslugstringtimestampintegertitlestringtoken_idstringtransaction_hashstring
paginationobjecthas_morebooleanlimitintegernext_cursorstringoffsetinteger
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 11
Review these request fields before running. Keep the published provider and request method unchanged.
user- Address to filter by; omit for the market/event/global feed.
limit- First-page size. Ignored when `cursor` is supplied (the cursor's size wins).
cursor- Opaque pagination cursor from a prior response's `next_cursor`.
taker_only- Defaults to `true`: each fill is served once, on its taker side. `false` includes the maker rows too.
filter_type- CASH or TOKENS; defaults to TOKENS.
filter_amount- Minimum trade size; defaults to 0.01, and 0 means the same.
start- Window start on `block_timestamp`, epoch seconds (inclusive); honored on the `user` shape only. Omitted or `0` floors to three years back; `start=1` asks for full history. The `condition`/`event_id` shapes serve a fixed three-year window and the bare feed the rolling current-plus-previous month, ignoring both bounds.
end- Window end, epoch seconds (inclusive); honored on the `user` shape only; omitted or `0` means now plus one day.
condition- Condition id(s), comma-separated (at most 20 distinct values). `condition_id` / `conditionId` are accepted aliases.
event_id- Event id(s), comma-separated (at most 20 distinct values).
side- BUY or SELL.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/polymarket/v2/trades?limit=2' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "data": [ { "bio": "", "condition_id": "0x39b9308e565f5a95605b799fab8f0bf6d97cdeae77f742315b0755e605f3e357", "event_slug": "", "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/test-nyc-weather-pciture-cgUEW73XBkei.jpg", "name": "0x0C0B89762dE607A86D6a7D3D3DD4175408929d07-1791170879886", "outcome": "No", "outcome_index": 999, "price": 0.986, "profile_image": "", "profile_image_optimized": "", "proxy_wallet": "0x0c0b89762de607a86d6a7d3d3dd4175408929d07", "pseudonym": "Perfect-Puzzle-Shoe", "side": "BUY", "size": 8.07, "slug": "lowest-temperature-in-nyc-on-october-29-2026-52-53f", "timestamp": 1793282611, "title": "Will the lowest temperature in New York City be between 52-53°F on October 29?", "token_id": "93829812180784549388634961245407587691211652324002258468497543757720432955776", "transaction_hash": "0x5e5bd2b1b3feecb2f3df144a9ab27416d1a131ac0a81d046ec20b472f22b337e" }, { "bio": "", "condition_id": "0x39b9308e565f5a95605b799fab8f0bf6d97cdeae77f742315b0755e605f3e357", "event_slug": "", "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/test-nyc-weather-pciture-cgUEW73XBkei.jpg", "name": "0x1aBc2b469b5dED495d6C8B21Fc79dcb8d8f345E7-1778811281023", "outcome": "No", "outcome_index": 999, "price": 0.9896, "profile_image": "", "profile_image_optimized": "", "proxy_wallet": "0x1abc2b469b5ded495d6c8b21fc79dcb8d8f345e7", "pseudonym": "Pure-Eyeliner", "side": "BUY", "size": 9.0, "slug": "lowest-temperature-in-nyc-on-october-29-2026-52-53f", "timestamp": 1793282611, "title": "Will the lowest temperature in New York City be between 52-53°F on October 29?", "token_id": "93829812180784549388634961245407587691211652324002258468497543757720432955776", "transaction_hash": "0xc4db8a705168fca1122bc9e523727660d38cec6ed2bc8ec7425bf4be00613991" } ], "pagination": { "has_more": true, "limit": 2, "next_cursor": "eyJkYXRhIjp7InR5cGUiOiJ0cmFkZXMiLCJwYXJhbXMiOnsibCI6MiwidHMiOjE3OTMyODI2MTEsInNxIjoiOTYzODQ4MjEwMDA2MTA2MjEwIiwiZCI6Mn19LCJzaWciOiI1MzAzNjRjNDk5MjllNzU2MDkyNzI3Y2YyY2UxOWZiYyJ9", "offset": 0 } }