OpenAny
Get API keyAPI Key
APICrypto & DeFi

polymarket logo
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
USE THIS API

Polymarket Trade History API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Polymarket Trade History API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the supported inputs and set any required query value shown in the template.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (11)
Address to filter by; omit for the market/event/global feed.
First-page size. Ignored when `cursor` is supplied (the cursor's size wins).
Opaque pagination cursor from a prior response's `next_cursor`.
Defaults to `true`: each fill is served once, on its taker side. `false` includes the maker rows too.
CASH or TOKENS; defaults to TOKENS.
Minimum trade size; defaults to 0.01, and 0 means the same.
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.
Window end, epoch seconds (inclusive); honored on the `user` shape only; omitted or `0` means now plus one day.
Condition id(s), comma-separated (at most 20 distinct values). `condition_id` / `conditionId` are accepted aliases.
Event id(s), comma-separated (at most 20 distinct values).
BUY or SELL.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
PolymarketCurrent
Polymarket — List trades · GET · View API reference
$0 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · PolymarketUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
userURL query parametersquerystring | nullNo

Address to filter by; omit for the market/event/global feed.

limitURL query parametersqueryinteger | nullNo

First-page size. Ignored when `cursor` is supplied (the cursor's size wins).

minimum: 0 · maximum: 1000

cursorURL query parametersquerystring | nullNo

Opaque pagination cursor from a prior response's `next_cursor`.

taker_onlyURL query parametersqueryboolean | nullNo

Defaults to `true`: each fill is served once, on its taker side. `false` includes the maker rows too.

filter_typeURL query parametersquerystring | nullNo

CASH or TOKENS; defaults to TOKENS.

filter_amountURL query parametersquerynumber | nullNo

Minimum trade size; defaults to 0.01, and 0 means the same.

startURL query parametersqueryinteger | nullNo

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.

endURL query parametersqueryinteger | nullNo

Window end, epoch seconds (inclusive); honored on the `user` shape only; omitted or `0` means now plus one day.

conditionURL query parametersquerystring | nullNo

Condition id(s), comma-separated (at most 20 distinct values). `condition_id` / `conditionId` are accepted aliases.

event_idURL query parametersquerystring | nullNo

Event id(s), comma-separated (at most 20 distinct values).

sideURL query parametersquerystring | nullNo

BUY or SELL.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • dataobject[]
    • biostring
    • condition_idstring
    • event_slugstring
    • iconstring
    • namestring
    • outcomestring
    • outcome_indexinteger
    • pricenumber
    • profile_imagestring
    • profile_image_optimizedstring
    • proxy_walletstring
    • pseudonymstring
    • sidestring
    • sizenumber
    • slugstring
    • timestampinteger
    • titlestring
    • token_idstring
    • transaction_hashstring
  • paginationobject
    • has_moreboolean
    • limitinteger
    • next_cursorstring
    • offsetinteger

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example

Published documentation example. Verify the actual response after an approved call.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    curl \
      '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'
  3. 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
      }
    }

Common questions

Which scope can I query?

user is optional. Select a wallet, condition or event, or read the bare feed. Condition and event selectors accept comma-separated IDs, up to 20 distinct values each.

What does taker_only change?

It defaults to true, serving each fill once on its taker side. false includes maker rows too, so do not treat all returned rows as distinct fills when aggregating.

Do start and end filter every scope?

No. They are inclusive epoch-second bounds for user-scoped reads only. Other condition or event reads serve a fixed three-year window; the bare feed uses the current and previous month. For user history, omitted or zero start means three years back, while start=1 asks for full history.

How do I continue the result?

Use next_cursor as cursor, keep the lookup scope and filters consistent, and retain the cursor-provided size. The first-page limit is at most 1000.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

Use Polymarket Trade History API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.