Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Polymarket List events

Tài liệu API
https://api.sandbase.ai/v1/api/polymarket/events

List events with offset based pagination and filter parameters.

Giá
$0.00044USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 26 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
active
archived
ascending
Filter by closed state. Omitted includes open and closed events. Use true for closed events, false for open events, or any (case-insensitive) for both states. Unlike markets, any does not require an identifier filter. Invalid closed values return 422.
cyom
end_date_max
end_date_min
exclude_tag_id
id
include_chat
include_template
limit Tối thiểu: 0.
liquidity_max
liquidity_min
offset Tối thiểu: 0.
Comma-separated list of fields to order by
recurrence
slug
start_date_max
start_date_min
tag_id
tag_slug
volume_max
volume_min
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Polymarket List events API

Returns a list of Polymarket events, each with its nested markets, series and tags. All inputs are optional filters, such as active, closed, tag_slug, slug, volume_min and end_date_max, plus limit and offset for paging.

Use cases

  • Pull all open events under one tag, such as sports, and sort them by volume or liquidity.
  • Find events by slug or id and read the markets inside each one.
  • Track events that belong to a recurring series such as the NBA.
  • Build a list of closed events in a date range for backtesting.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/events" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit": 1, "active": true}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
activebooleanNoactive
archivedbooleanNoarchived
ascendingbooleanNoascending
closedbooleanNoFilter by closed state. Omitted includes open and closed events. Use true for closed events, false for open events, or any (case-insensitive) for both states. Unlike markets, any does not require an identifier filter. In
cyombooleanNocyom
end_date_maxstringNoend_date_max
end_date_minstringNoend_date_min
exclude_tag_idarrayNoexclude_tag_id
featuredbooleanNofeatured
idarrayNoid
include_chatbooleanNoinclude_chat
include_templatebooleanNoinclude_template
limitintegerNolimit
liquidity_maxnumberNoliquidity_max
liquidity_minnumberNoliquidity_min
offsetintegerNooffset
orderstringNoComma-separated list of fields to order by
recurrencestringNorecurrence
related_tagsbooleanNorelated_tags
slugarrayNoslug
start_date_maxstringNostart_date_max
start_date_minstringNostart_date_min
tag_idintegerNotag_id
tag_slugstringNotag_slug
volume_maxnumberNovolume_max
volume_minnumberNovolume_min

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

[
  {
    "active": true,
    "archived": false,
    "category": "Sports",
    "closed": true,
    "closedTime": "2022-07-27T14:40:02.074Z",
    "commentCount": 8128,
    "competitive": 0,
    "createdAt": "2022-07-27T14:40:02.074Z",
    "creationDate": "2021-12-04T00:00:00Z",
    "cyom": false,
    "deploying": false,
    "description": "In the upcoming NBA game, scheduled for December 4:\n\nIf the Dallas Mavericks win…"
  }
]

Response fields

FieldMeaning
id / slug / tickerIdentifiers for the event. id is a string, and slug is the text used in the event URL.
title / description / categoryThe event name, its resolution rules in text, and a category label such as Sports.
active / closed / archivedState flags for the event. In the sample, active and closed are both true, so do not assume active means open.
startDate / endDate / closedTimeEvent start and end times, and the time the event closed, as ISO 8601 timestamps.
commentCountNumber of comments on the event.
liquidity / openInterestNumeric liquidity and open interest values for the event.
resolutionSourceURL of the source named for resolving the event.
markets[]The markets inside the event. Each one has its own id, conditionId, endDate, bestBid, bestAsk, lastTradePrice and closed state.
markets[].clobTokenIdsA JSON string holding the token IDs for the market outcomes.
series[].slug / series[].title / series[].recurrenceThe series the event belongs to, its name, and how often it recurs, such as daily.
tags[].id / tags[].label / tags[].slugTags on the event. Use id with tag_id and slug with tag_slug to filter.

Notes

Pricing

$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Polymarket$0.00044 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Polymarket List events?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/polymarket/events với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Polymarket List events có giá bao nhiêu?

$0.00044 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Polymarket List events chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: active (boolean), archived (boolean), ascending (boolean), closed (một trong số any), cyom (boolean) và end_date_max (string) và 20 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Polymarket List events trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Polymarket không?

Không. Polymarket List events chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Polymarket.