userstringbắt buộc
The wallet whose profile stats to return. Required; `0x` followed by 40 hexadecimal characters.
https://api.sandbase.ai/v1/api/polymarket/tradedA wallet's profile stats: total trades, biggest win, profile views and join date.
Đầ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 profile stats for one Polymarket wallet: trade count, biggest win, profile views, join date and an all-time profit and loss breakdown. It needs one input, the wallet address in user.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/traded" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user | string | Yes | The wallet whose profile stats to return. Required; 0x followed by 40 hexadecimal characters. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"all_time_pnl": {
"cashflow_net": null,
"deposits": null,
"economic_pnl": 5542941.528962,
"fees": -4819186.982857,
"fees_paid": -2146855.218475,
"fees_refunded": 2672331.764382,
"maker_rebate": 1555886.072,
"position_pnl": 2897083.283962,
"realized_combo_pnl": 0.0,
"realized_lp_pnl": 0.0,
"realized_market_pnl": 2899267.130228,
"realized_pnl": 2899267.130228
},
"biggest_win": 412361.928935,
"join_date": 1774462766,
"proxy_wallet": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319",
"trades": 87633,
"views": 334708
}
}
| Field | Meaning |
|---|---|
data.proxy_wallet | The wallet address the stats belong to. |
data.trades | Number of trades for the wallet shown on its profile. |
data.biggest_win | Largest single win for the wallet. |
data.join_date | When the wallet joined, as a Unix timestamp in seconds. |
data.views | Number of profile views. |
data.all_time_pnl.economic_pnl / data.all_time_pnl.settled_pnl | All-time profit and loss figures for the wallet. They are computed differently, so the two values differ. |
data.all_time_pnl.realized_pnl / data.all_time_pnl.unrealized_pnl | Realized profit and loss from closed results, and unrealized profit and loss on positions still open. Unrealized can be negative. |
data.all_time_pnl.trade_count | Number of trades counted in the all-time profit and loss calculation. |
data.all_time_pnl.volume / data.all_time_pnl.volume_usdc | Total trading volume for the wallet. volume_usdc is the volume given in USDC. |
data.all_time_pnl.fees_paid / data.all_time_pnl.fees_refunded / data.all_time_pnl.fees | Fees paid, fees refunded, and the net fees figure. Fee values are negative when they cost the wallet money. |
data.all_time_pnl.maker_rebate / data.all_time_pnl.taker_rebate / data.all_time_pnl.reward_income | Income from maker rebates, taker rebates and rewards. |
user must be 0x followed by 40 hexadecimal characters.data.all_time_pnl.trade_count and data.trades are different numbers in the sample response, so do not treat them as the same count.data.all_time_pnl.timestamp is a Unix timestamp in seconds, and source_block is a block number.cashflow_net, deposits and withdrawals can be null.$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/traded" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319"
}'Đặ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ộcThe wallet whose profile stats to return. Required; `0x` followed by 40 hexadecimal characters.
Đâ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 User StatsAPI 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/traded 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). 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 User Stats 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.