curl --request GET \
--url https://data-api.polymarket.com/v2/resolutionsimport requests
url = "https://data-api.polymarket.com/v2/resolutions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data-api.polymarket.com/v2/resolutions', 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://data-api.polymarket.com/v2/resolutions",
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://data-api.polymarket.com/v2/resolutions"
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://data-api.polymarket.com/v2/resolutions")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.polymarket.com/v2/resolutions")
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{
"data": [
{
"extended_review": true,
"last_update_timestamp": "<string>",
"log_index": "<string>",
"new_version_q": true,
"status": "<string>",
"transaction_hash": "<string>",
"was_disputed": true,
"condition_id": "<string>",
"expected_settlement_time": "<string>",
"market_type": "<string>",
"payouts": [
123
],
"price": "<string>",
"proposed_price": "<string>",
"question_id": "<string>",
"reporter": "<string>",
"reproposed_price": "<string>",
"resolution_source": "<string>",
"resolved_at": "<string>",
"resolved_block": 123,
"was_arbitrated": true,
"settlement_time_basis": "<string>"
}
]
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}获取市场结算状态
Complete resolution state by one selector family.
Supply exactly one of question_id, condition, or event_id. Condition and
event selectors accept comma-separated values and return condition-grain
rows in deterministic order, preferring native V2 lifecycle, then UMA
lifecycle, then terminal CTF state. Misses return { "data": [] }.
curl --request GET \
--url https://data-api.polymarket.com/v2/resolutionsimport requests
url = "https://data-api.polymarket.com/v2/resolutions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data-api.polymarket.com/v2/resolutions', 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://data-api.polymarket.com/v2/resolutions",
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://data-api.polymarket.com/v2/resolutions"
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://data-api.polymarket.com/v2/resolutions")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.polymarket.com/v2/resolutions")
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{
"data": [
{
"extended_review": true,
"last_update_timestamp": "<string>",
"log_index": "<string>",
"new_version_q": true,
"status": "<string>",
"transaction_hash": "<string>",
"was_disputed": true,
"condition_id": "<string>",
"expected_settlement_time": "<string>",
"market_type": "<string>",
"payouts": [
123
],
"price": "<string>",
"proposed_price": "<string>",
"question_id": "<string>",
"reporter": "<string>",
"reproposed_price": "<string>",
"resolution_source": "<string>",
"resolved_at": "<string>",
"resolved_block": 123,
"was_arbitrated": true,
"settlement_time_basis": "<string>"
}
]
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}{
"code": "invalid_request",
"error": "<string>",
"retryable": true,
"trace_id": "<string>",
"parameter": "<string>"
}查询参数
One UMA question identifier (0x plus 64 hexadecimal characters).
Comma-separated Gamma condition identifiers (at most 20 distinct values).
Comma-separated positive Gamma event IDs (at most 20 distinct values).
响应
Resolution rows for the selected question, markets, or events
{ "data": T }; the envelope for endpoints that don't paginate.
There is no pagination key: an aggregate or bounded list has no next page.
Paginated feeds return a *Page shape ({ data, pagination }) instead.
Show child attributes
Show child attributes
此页面对您有帮助吗?