Get raw rewards for a specific market
curl --request GET \
--url https://clob.polymarket.com/rewards/markets/{condition_id}import requests
url = "https://clob.polymarket.com/rewards/markets/{condition_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://clob.polymarket.com/rewards/markets/{condition_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://clob.polymarket.com/rewards/markets/{condition_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://clob.polymarket.com/rewards/markets/{condition_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://clob.polymarket.com/rewards/markets/{condition_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://clob.polymarket.com/rewards/markets/{condition_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"limit": 100,
"count": 1,
"next_cursor": "LTE=",
"data": [
{
"condition_id": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"question": "Will Trump win the 2024 Iowa Caucus?",
"market_slug": "will-trump-win-the-2024-iowa-caucus",
"event_slug": "will-trump-win-the-2024-iowa-caucus",
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/trump1+copy.png",
"rewards_max_spread": 99,
"rewards_min_size": 10,
"market_competitiveness": 0.42,
"tokens": [
{
"token_id": "1343197538147866997676250008839231694243646439454152539053893078719042421992",
"outcome": "YES",
"price": 0.8
},
{
"token_id": "16678291189211314787145083999015737376658799626183230671758641503291735614088",
"outcome": "NO",
"price": 0.2
}
],
"rewards_config": [
{
"id": 1,
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"start_date": "2024-03-01",
"end_date": "2500-12-31",
"rate_per_day": 0.25,
"total_rewards": 0,
"total_days": 174161
},
{
"id": 2,
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"start_date": "2024-03-01",
"end_date": "2024-05-31",
"rate_per_day": 1,
"total_rewards": 92,
"total_days": 92
}
]
}
]
}获取指定市场的原始奖励
Returns an array of present and future rewards configured on a market.
When sponsored=true, sponsored daily rates are folded into each config’s
rate_per_day .
Results are paginated (100 items per page). Use next_cursor to fetch subsequent pages. A next_cursor value of “LTE=” indicates the last page.
GET
/
rewards
/
markets
/
{condition_id}
Get raw rewards for a specific market
curl --request GET \
--url https://clob.polymarket.com/rewards/markets/{condition_id}import requests
url = "https://clob.polymarket.com/rewards/markets/{condition_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://clob.polymarket.com/rewards/markets/{condition_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://clob.polymarket.com/rewards/markets/{condition_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://clob.polymarket.com/rewards/markets/{condition_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://clob.polymarket.com/rewards/markets/{condition_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://clob.polymarket.com/rewards/markets/{condition_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"limit": 100,
"count": 1,
"next_cursor": "LTE=",
"data": [
{
"condition_id": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"question": "Will Trump win the 2024 Iowa Caucus?",
"market_slug": "will-trump-win-the-2024-iowa-caucus",
"event_slug": "will-trump-win-the-2024-iowa-caucus",
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/trump1+copy.png",
"rewards_max_spread": 99,
"rewards_min_size": 10,
"market_competitiveness": 0.42,
"tokens": [
{
"token_id": "1343197538147866997676250008839231694243646439454152539053893078719042421992",
"outcome": "YES",
"price": 0.8
},
{
"token_id": "16678291189211314787145083999015737376658799626183230671758641503291735614088",
"outcome": "NO",
"price": 0.2
}
],
"rewards_config": [
{
"id": 1,
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"start_date": "2024-03-01",
"end_date": "2500-12-31",
"rate_per_day": 0.25,
"total_rewards": 0,
"total_days": 174161
},
{
"id": 2,
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"start_date": "2024-03-01",
"end_date": "2024-05-31",
"rate_per_day": 1,
"total_rewards": 92,
"total_days": 92
}
]
}
]
}路径参数
The condition ID of the market
查询参数
If true, folds sponsored daily rates into each config's rate_per_day
Pagination cursor from previous response
响应
Successfully retrieved rewards for market
此页面对您有帮助吗?
⌘I