time_periodstring
Window: `day` | `week` | `month` | `all`. Defaults to `day`.
https://api.sandbase.ai/v1/api/polymarket/leaderboardPolymarket trader leaderboard by PnL or volume, for a time period and category.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the Polymarket trader leaderboard, ranked by profit and loss (PNL) or trading VOLUME. You can filter by time_period and category, or pass a wallet in user to get that wallet's standing. No input is required.
VOLUME against top traders by PNL in a category such as sports.curl -X POST "https://api.sandbase.ai/v1/api/polymarket/leaderboard" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit": 2}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
category | string | No | overall (default), a Gamma market category (e.g. sports), or a synthetic category: combos (combinatorial positions; PNL boards only; the volume board has no combos rows) or esports (promoted subcategory). |
cursor | string | No | Opaque pagination cursor from a prior response's next_cursor. |
limit | integer | No | First-page size. Ignored when cursor is supplied. |
sort_by | string | No | Which board: PNL (default) or VOLUME. |
time_period | string | No | Window: day / week / month / all. Defaults to day. |
user | string | No | Look up one wallet's standing instead of reading the board. Returns a single object carrying both ranks, not a page. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"pnl": 454238.2733963345,
"profile_image": "",
"rank": 1,
"user_id": "0x2c335066fe58fe9237c3d3dc7b275c2a034a0563",
"user_name": "0x2c335066FE58fe9237c3d3Dc7b275C2a034a0563-1759935795465",
"verified": false,
"volume": 5394555.845070001,
"x_username": ""
}
],
"pagination": {
"has_more": true,
"limit": 2,
"next_cursor": "eyJkYXRhIjp7InR5cGUiOiJsZWFkZXJib2FyZCIsInBhcmFtcyI6eyJsIjoyLCJvIjoyLCJzIjoiUE5M…",
"offset": 0
}
}
| Field | Meaning |
|---|---|
data[].rank | Position of the trader on the selected board. |
data[].user_id | The trader's wallet address, as a 0x hex string. |
data[].user_name | Display name of the trader. Some names are the wallet address followed by a number. |
data[].pnl | Profit and loss for the chosen time period and category. |
data[].volume | Trading volume for the chosen time period and category. |
data[].verified | Boolean flag for whether the profile is marked verified. |
data[].x_username / data[].profile_image | The trader's X username and profile image URL. Both can be empty strings. |
pagination.has_more | true when more rows are available after this page. |
pagination.next_cursor | Opaque cursor string. Send it back as cursor to get the next page. |
sort_by to PNL (default) or VOLUME to choose the board. time_period defaults to day and category defaults to overall.limit sets the first-page size, up to 1000. It is ignored when you send cursor.user set, the call returns a single object with both ranks instead of a page.user_id to Polymarket Wallet Positions or Polymarket Wallet Activity.$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/leaderboard" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 2
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
time_periodstringWindow: `day` | `week` | `month` | `all`. Defaults to `day`.
categorystring`overall` (default), a Gamma market category (e.g. `sports`), or a synthetic category: `combos` (combinatorial positions; PNL boards only; the volume board has no combos rows) or `esports` (promoted subcategory).
sort_bystringWhich board: `PNL` (default) or `VOLUME`.
userstringLook up one wallet's standing instead of reading the board. Returns a single object carrying both ranks, not a page.
limitintegerFirst-page size. Ignored when `cursor` is supplied.
cursorstringOpaque pagination cursor from a prior response's `next_cursor`.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/polymarket/leaderboard पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.012 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: time_period (string), category (string), sort_by (string), user (string), limit (integer) और cursor (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Polymarket Trader Leaderboard SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Polymarket API access के लिए आवेदन करने की आवश्यकता नहीं है।