Pinax
Đăng nhậpLiên hệ chúng tôi

Blog
Prediction Market APIPolymarket

Prediction Markets

Dữ liệu Polymarket cấp sản xuất — thị trường, giá, hoạt động và P&L — qua một API HTTP duy nhất

Hỗ trợ backtest AI, ứng dụng copy-trading và dashboard danh mục bằng dữ liệu on-chain Polygon được làm giàu bằng metadata Polymarket. Là một phần của Token API.

  • Endpoint REST chỉ đọc cho markets, OHLCV, open interest, hoạt động, vị thế và tổng hợp nền tảng
  • Dữ liệu sự kiện on-chain từ Polygon, được làm giàu bằng scraper Polymarket
  • Mở rộng từ script nghiên cứu một lần đến agent giao dịch luôn bật

Bạn nhận được gì với Prediction Markets API

Endpoint REST

Markets, OHLCV, OI, activity, positions, platform, users

Polygon on-chain

Trades, splits, merges, redemptions — ở cấp giao dịch

P&L theo người dùng

PNL đã thực hiện và chưa thực hiện, cost basis, giá hiện tại

Làm mới theo giờ

Bảng xếp hạng tổng hợp cập nhật liên tục

// 01 · Headline metrics

24-hour macro

Six complete 4-hour buckets, 2026-04-25 16:002026-04-26 12:00 UTC. Partial current window excluded.

Net open interest · peak bucket +14.0% over window
$47.49M
Outcome-share liquidity locked at 2026-04-26 12:00 UTC — the highest of the window. Bucket average $30.62M · 24h OI flow $183.71M.
Buy vs. sell volume · 24h
3.29×Sell-side dominated every bucket. $105.79M sold vs $32.15M bought across $137.94M of total notional.
23.3%BUY
SELL76.7%
Buy volume$32.15M
Sell volume$105.79M
Total fees17.88%
$24.66M
Vol-weighted rate.
Total trades↗ 99.1k/hr
2.38M
443.0k buys · 1.94M sells.
Avg trade size6 buckets
$57.99
Volume / trades. Sell-weighted.
OI transactionssplit/merge
3.68M
3.43M splits · 256.0k merges.
// hot markets · all-time

Hot markets

Highest-volume Polymarket markets to date, sorted by lifetime notional. Queried live via /v1/polymarket/markets.

  1. 01

    Will Jesus Christ return before 2027?

    Nov 25, 2025Dec 31, 2026ActiveYesNo
    $58.7M
    Lifetime vol
  2. 02

    Will LeBron James win the 2028 US Presidential Election?

    Jul 11, 2025Nov 7, 2028ActiveYesNo
    $48.6M
    Lifetime vol
  3. 03

    Will the Fed decrease interest rates by 50+ bps after the April 2026 meeting?

    Nov 13, 2025Apr 29, 2026ActiveYesNo
    $45.0M
    Lifetime vol
  4. 04

    Will Tim Walz win the 2028 US Presidential Election?

    Jul 11, 2025Nov 7, 2028ActiveYesNo
    $40.4M
    Lifetime vol
  5. 05

    Will Mike Pence win the 2028 Republican presidential nomination?

    Jul 11, 2025Nov 7, 2028ActiveYesNo
    $39.1M
    Lifetime vol
  6. 06

    Will Byron Donalds win the 2028 Republican presidential nomination?

    Jul 11, 2025Nov 7, 2028ActiveYesNo
    $37.0M
    Lifetime vol
  7. 07

    Will Kim Kardashian win the 2028 US Presidential Election?

    Jul 11, 2025Nov 7, 2028ActiveYesNo
    $33.9M
    Lifetime vol
  8. 08

    Will the Iranian regime fall by June 30?

    Dec 17, 2025Jun 30, 2026ActiveYesNo
    $33.0M
    Lifetime vol
// 02 · Flow over time

Volume, bucketed

Each bar is a complete 4-hour window. Peak activity at 2026-04-25 16:00 UTC.

Traded volume · stacked buy / sell

$137.94M / 24h

Sum of buy + sell volume across the 6 complete buckets. Peak bucket $32.14M (2026-04-25 16:00). Bucket average $22.99M.

BuySell
$0$9M$18M$26M$35M16:00Apr 2520:0000:00Apr 2604:0008:0012:00
avg bucket $22.99Mpeak 2026-04-25 16:00 · $32.14Mlow 2026-04-26 04:00 · $13.00M
// 03 · Raw buckets

Hourly breakdown

Exact response, newest first. Partial current bucket excluded from totals.

Bucket (UTC)VolumeBuySellTradesNet OIFeesRate
2026-04-26 12:00$30,813,105$6,630,116$24,182,989433,530$47,494,585$4,984,99316.18%
2026-04-26 08:00$20,259,101$5,086,437$15,172,663359,139$30,485,419$3,319,16316.38%
2026-04-26 04:00$13,001,058$2,499,122$10,501,936323,287$15,291,837$1,710,10313.15%
2026-04-26 00:00$19,123,704$4,798,572$14,325,131379,441$21,410,988$3,401,42117.79%
2026-04-25 20:00$22,608,271$5,613,595$16,994,676424,994$27,383,699$4,694,43520.76%
2026-04-25 16:00$32,139,710$7,526,366$24,613,344458,545$41,646,972$6,552,76520.39%
6 rows · complete buckets only · usdc 6dp normalizedquery 206 ms · refreshes ≤ 60s

Cách các nhóm sử dụng

Ba mẫu phổ biến nhất. Mỗi mẫu dùng một tập con các endpoint — bạn có thể kết hợp tùy nhu cầu.

01

Backtest giao dịch AI

Phát lại diễn biến giá lịch sử theo outcome token và kiểm thử chiến lược với các sự kiện thanh khoản thực. Kết hợp OHLCV với activity feed để dựng lại fill và phí từng thanh.

  • GET/v1/polymarket/markets/ohlc
  • GET/v1/polymarket/markets/activity
Sample response
[
  {
    "timestamp": "2026-04-01 00:00:00",
    "open": 0.997,
    "high": 0.998,
    "low": 0.997,
    "close": 0.998,
    "volume": 295143.37,
    "trades": 1206,
    "buys": 498,
    "sells": 708,
    "unique_makers": 592,
    "unique_takers": 121,
    "total_fees": 0,
    "fee_count": 0,
    "effective_fee_rate": 0,
    "market": {
      "condition_id": "0x6331a779482df72d904c3c1e12b6409ff836bc06f8c97945cba9b25ada2c605c",
      "market_slug": "will-the-portland-trail-blazers-win-the-2026-nba-finals",
      "token_id": "48262548906086150698299934962091284390063927164151224719187427455086357699251",
      "outcome_label": "No",
      "closed": false
    }
  }
]

02

Copy Trading

Theo dõi top trader từ bảng xếp hạng người dùng và sao chép các điểm vào / ra của họ. Activity feed phát mọi giao dịch, split, merge và redemption với thời gian cấp block.

  • GET/v1/polymarket/users
  • GET/v1/polymarket/markets/activity
Sample response
[
  {
    "event_type": "trade",
    "timestamp": "2026-04-02 16:51:31",
    "block_num": 85014327,
    "tx_hash": "0xf190865afd395e2f4b8f2e5f8ceb2c05a86d94a73ea411e8a8a3fc649924c420",
    "user": "0x38e598961dd0456a7fb2e758bd433d3e59fb8a4a",
    "amount": "3976744",
    "value": 3.98,
    "fee_amount": "526315",
    "fee_value": 0.53,
    "market": {
      "condition_id": "0xcb37916b953e6b37a5be32ceabc5a093614be15d9e6abb7668bf6400fbf36d46",
      "market_slug": "bitcoin-up-or-down-on-april-3-2026",
      "token_id": "3861173442961229042274748637211736540847931193208187121747580704941582603312",
      "outcome_label": "Down",
      "closed": false
    }
  }
]

03

P&L danh mục người dùng

Xây dashboard ví và xuất thuế hiển thị những gì người dùng nắm giữ trên mọi outcome token — với cost basis, giá hiện tại và PNL đã thực hiện vs chưa thực hiện.

  • GET/v1/polymarket/users/positions
  • GET/v1/polymarket/markets/positions
Sample response
[
  {
    "user": "0x38e598961dd0456a7fb2e758bd433d3e59fb8a4a",
    "buy_cost": 6438.35,
    "sell_revenue": 247.09,
    "realized_pnl": -6191.26,
    "unrealized_pnl": 9005.64,
    "total_pnl": 2814.38,
    "pnl_pct": -0.96,
    "net_position": 9096.61,
    "avg_price": 0.68,
    "current_price": 0.99,
    "position_value": 9005.64,
    "active": true,
    "buys": 693,
    "sells": 20,
    "transactions": 713,
    "market": {
      "condition_id": "0x59feadddd58e7821c086ee9f3dc4f544514b94ebd0e8d645a3c4d80ebdd354a2",
      "market_slug": "btc-updown-5m-1771359600",
      "token_id": "25362470215305294361999917933416973453076214567033270695579745712197481070383",
      "outcome_label": "Up",
      "closed": false
    }
  }
]

Endpoint REST

Xem tài liệu chính thức: https://app.pinax.network/docs

Markets

5 endpoints
GET/v1/polymarket/markets
FREE
GET/v1/polymarket/markets/ohlc
GET/v1/polymarket/markets/oi
GET/v1/polymarket/markets/activity
GET/v1/polymarket/markets/positions

Users

2 endpoints
GET/v1/polymarket/users
GET/v1/polymarket/users/positions

Platform

1 endpoint
GET/v1/polymarket/platform

Cách hoạt động

Cùng mẫu với phần còn lại của Token API — lấy API key, gọi endpoint, parse JSON.

1

Yêu cầu thông tin API từ Pinax

2

Chọn endpoint phù hợp với use case

3

Gọi từ ứng dụng, notebook hoặc client MCP của bạn

4

Triển khai chiến lược, dashboard hoặc agent

Câu hỏi thường gặp

Same data, one endpoint.

Platform, markets, users, OHLC — all under /v1/polymarket/*. Free tier starts at 100 req/s.

Tham gia bản tin của chúng tôi

Đăng ký ngay hôm nay để tìm hiểu về các chương trình beta dành cho chuỗi của bạn.