event_idstringbắt buộc
Event id(s), comma-separated (at most 20 distinct values). Required. `event_id` is the unified key across v2 (same as the feeds); `id` and `eventId` are accepted aliases.
https://api.sandbase.ai/v1/api/polymarket/live-volumeLive taker volume for an event by event ID, in total and per market.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns the live taker volume for one or more Polymarket events. The response gives a total for the event and a volume figure for each market (condition) inside it. The only input is event_id.
taker_volume to find where trading is concentrated.curl -X POST "https://api.sandbase.ai/v1/api/polymarket/live-volume" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"event_id": "1262243"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
event_id | string | Yes | Event id(s), comma-separated (at most 20 distinct values). Required. event_id is the unified key across v2 (same as the feeds); id and eventId are accepted aliases. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"conditions": [
{
"condition_id": "0xa32317ba83c3c83dc43ef260c3744c22ed8000db53d30bc09372c45cff5fb07a",
"taker_volume": 5836737.706408
}
],
"taker_volume_total": 61577729.177805
}
}
| Field | Meaning |
|---|---|
data.taker_volume_total | Total taker volume for the event, summed across its markets. |
data.conditions[] | One entry per market (condition) in the event. |
data.conditions[].condition_id | Identifier of the market condition. It is a hex string that starts with 0x. |
data.conditions[].taker_volume | Taker volume for that single market. |
event_id accepts several IDs separated by commas, with at most 20 distinct values. id and eventId work as aliases.$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/live-volume" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"event_id": "1262243"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
event_idstringbắt buộcEvent id(s), comma-separated (at most 20 distinct values). Required. `event_id` is the unified key across v2 (same as the feeds); `id` and `eventId` are accepted aliases.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Polymarket Live Event VolumeAPI này Polymarket | $0.00044 mỗi lần gọi | JSON |
Polymarket | $0.012 mỗi lần gọi | JSON |
Polymarket | $0.012 mỗi lần gọi | JSON |
Polymarket | $0.012 mỗi lần gọi | JSON |
Polymarket | $0.012 mỗi lần gọi | JSON |
Polymarket | $0.012 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/polymarket/live-volume 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.
$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ý.
Bắt buộc: event_id (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
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.
Không. Polymarket Live Event Volume 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.