userstringbắt buộc
Required; the feed is user-anchored.
https://api.sandbase.ai/v1/api/polymarket/activityA wallet's activity feed: trades, splits, merges, redemptions, rewards and conversions, with time-range and type filters.
Đầ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 a Polymarket wallet's activity feed, newest first by default. Each row is one event such as a trade, split, merge, redemption or reward. The only required input is the wallet address in user.
condition and type=TRADE.start and end.type.curl -X POST "https://api.sandbase.ai/v1/api/polymarket/activity" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319", "limit": 2}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user | string | Yes | Required; the feed is user-anchored. |
condition | string | No | Condition id(s), comma-separated (at most 20 distinct values). condition_id / conditionId are accepted aliases. |
cursor | string | No | Opaque cursor from a prior response's next_cursor; binds the sort direction it was minted under. |
end | integer | No | Window end, epoch seconds (inclusive); omitted or 0 means now plus one day. |
event_id | string | No | Gamma event id(s), comma-separated (at most 20 distinct values); resolves to the events' markets. Mutually exclusive with condition. |
exclude_deposits_withdrawals | boolean | No | Defaults to true, which drops DEPOSIT and WITHDRAWAL rows from the page, including when type names them. Pass false to include them. |
limit | integer | No | Page size; default 100, max 1000, past-cap rejected. |
side | string | No | BUY or SELL. |
sort_by | string | No | Only TIMESTAMP is supported (v2 pages by keyset). |
sort_direction | string | No | ASC or DESC (default). The keyset seeks in the chosen direction; the minted cursor binds it, so pass it consistently when paging. |
start | integer | No | Window start on block_timestamp, epoch seconds (inclusive). Omitted or 0 floors to three years back; pass start=1 for full history. |
type | string | No | Activity type(s), comma-separated. Accepted values: TRADE, SPLIT, MERGE, REDEEM (automatic redemptions included), CONVERSION, MIGRATION, REWARD, YIELD, MAKER_REBATE, TAKER_REBATE, REFERRAL_REWARD, ` |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"bio": "",
"condition_id": "0xdbcc54e623b74b67ea5a8733639a9f5e43ea16bd9b264ddf8772c615a7790d62",
"event_slug": "wta-yastrem-sonmez-2026-11-01",
"icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/wta-logo-41f331bdf1.png",
"name": "ferrariChampions2026",
"outcome": "Zeynep Sonmez",
"outcome_index": 1,
"price": 0.9,
"profile_image": "",
"profile_image_optimized": "",
"proxy_wallet": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319",
"pseudonym": "Glaring-Salt"
}
],
"pagination": {
"has_more": true,
"limit": 2,
"next_cursor": "eyJkYXRhIjp7InR5cGUiOiJhY3Rpdml0eSIsInBhcmFtcyI6eyJsIjoyLCJ0cyI6MTc5MzY5MTYxMywi…",
"offset": 0
}
}
| Field | Meaning |
|---|---|
data[].type | Kind of activity for the row, such as TRADE. |
data[].side | Direction of the trade, BUY or SELL. |
data[].timestamp | Time of the activity as epoch seconds. |
data[].price | Price per share for the row. In the sample it is 0.9. |
data[].size / data[].usdc_size | size is the share quantity. usdc_size is the USDC value of the row. |
data[].title / data[].event_slug / data[].slug | Market title and the slugs that identify the market and its event. |
data[].condition_id / data[].token_id | Identify the market condition and the outcome token that was traded. |
data[].outcome / data[].outcome_index | Name of the outcome and its index within the market. |
data[].transaction_hash | Hash of the on-chain transaction for the row. |
data[].proxy_wallet / data[].pseudonym / data[].name | The wallet address and the profile names tied to it. |
pagination.next_cursor back as cursor to get the next page. Keep sort_direction the same on every page, since the cursor binds it.pagination.has_more shows whether more rows exist. limit accepts up to 1000.DEPOSIT and WITHDRAWAL rows are dropped by default. Set exclude_deposits_withdrawals to false to include them.$0.012 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/activity" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319",
"limit": 2
}'Đặ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.
userstringbắt buộcRequired; the feed is user-anchored.
limitintegerPage size; default 100, max 1000, past-cap rejected.
cursorstringOpaque cursor from a prior response's `next_cursor`; binds the sort direction it was minted under.
typestringActivity type(s), comma-separated. Accepted values: `TRADE`, `SPLIT`, `MERGE`, `REDEEM` (automatic redemptions included), `CONVERSION`, `MIGRATION`, `REWARD`, `YIELD`, `MAKER_REBATE`, `TAKER_REBATE`, `REFERRAL_REWARD`, `DEPOSIT`, `WITHDRAWAL`, `DIRECTIONAL_SPLIT`, `DIRECTIONAL_MERGE`, `THRESHOLD_COM
conditionstringCondition id(s), comma-separated (at most 20 distinct values). `condition_id` / `conditionId` are accepted aliases.
event_idstringGamma event id(s), comma-separated (at most 20 distinct values); resolves to the events' markets. Mutually exclusive with `condition`.
sidestringBUY or SELL.
startintegerWindow start on `block_timestamp`, epoch seconds (inclusive). Omitted or `0` floors to three years back; pass `start=1` for full history.
endintegerWindow end, epoch seconds (inclusive); omitted or `0` means now plus one day.
sort_bystringOnly `TIMESTAMP` is supported (v2 pages by keyset).
sort_directionstring`ASC` or `DESC` (default). The keyset seeks in the chosen direction; the minted cursor binds it, so pass it consistently when paging.
exclude_deposits_withdrawalsbooleanDefaults to `true`, which drops `DEPOSIT` and `WITHDRAWAL` rows from the page, including when `type` names them. Pass `false` to include them.
Đâ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 Wallet ActivityAPI này 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 |
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/activity 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.012 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: user (string). Tùy chọn: limit (integer), cursor (string), type (string), condition (string), event_id (string) và side (string) và 5 mục khác. 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 Wallet Activity 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.