condition_idstring必填
The condition ID of the market
https://api.sandbase.ai/v1/api/polymarket/rewards-marketsGet raw rewards for a specific market from Polymarket. Returns the official Polymarket API response unchanged.
您的输出将显示在这里
完成输入,然后点击运行。
Returns the liquidity rewards setup for one Polymarket market. You pass the market's condition_id, and the response lists its reward configs, reward spread and size limits, and the outcome tokens with current prices.
token_id of each outcome so you can query order books or prices for that market.curl -X POST "https://api.sandbase.ai/v1/api/polymarket/rewards-markets" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"condition_id": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
condition_id | string | Yes | The condition ID of the market |
next_cursor | string | No | Pagination cursor from previous response |
sponsored | boolean | No | If true, folds sponsored daily rates into each config's rate_per_day |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"count": 1,
"data": [
{
"condition_id": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
"event_slug": "xi-jinping-out-before-2027",
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/xi-jinping-out-in-2025-EjF4…",
"market_competitiveness": 9239.334112,
"market_slug": "xi-jinping-out-before-2027",
"question": "Xi Jinping out before 2027?",
"rewards_config": [
{
"asset_address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"end_date": "2500-12-31",
"id": 303430,
"rate_per_day": 5,
"start_date": "2026-09-16",
"total_days": 173232,
"total_rewards": 0
}
],
"rewards_max_spread": 3.5,
"rewards_min_size": 200,
"tokens": [
{
"outcome": "Yes",
"price": 0.0205,
"token_id": "32338220…"
}
]
}
],
"limit": 100,
"next_cursor": "LTE="
}
| Field | Meaning |
|---|---|
data[].question | The market question in plain text. |
data[].market_slug / data[].event_slug | Slugs for the market and for the event it belongs to. |
data[].rewards_config[].rate_per_day | Reward amount paid per day for this config. With sponsored set to true, sponsored daily rates are added into this value. |
data[].rewards_config[].start_date / data[].rewards_config[].end_date | Dates between which this reward config runs, in YYYY-MM-DD format. |
data[].rewards_config[].total_days / data[].rewards_config[].total_rewards | Length of the config in days and the total rewards value recorded for it. |
data[].rewards_config[].asset_address | Address of the asset used for the reward config. |
data[].rewards_max_spread | Maximum spread allowed for an order to qualify for rewards. |
data[].rewards_min_size | Minimum order size needed to qualify for rewards. |
data[].market_competitiveness | A numeric score for how competitive the market's reward quoting is. |
data[].tokens[].outcome / data[].tokens[].price / data[].tokens[].token_id | Name of each outcome, its current price, and the token ID for that outcome. |
condition_id from a market lookup such as Polymarket Get market by slug or Polymarket List markets.count, limit and next_cursor. Pass next_cursor back as the next_cursor parameter to fetch the next page.token_id values with Polymarket Get order book to see live bids and asks.$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/rewards-markets" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sponsored": false,
"condition_id": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
condition_idstring必填The condition ID of the market
next_cursorstringPagination cursor from previous response
sponsoredbooleanIf true, folds sponsored daily rates into each config's rate_per_day
默认值:false
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 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/rewards-markets 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.012,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:condition_id (string)。 可选:next_cursor (string) 和 sponsored (boolean)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Polymarket Get raw rewards for a specific market 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Polymarket API 访问权限。