Batch market staking headlines
curl --request GET \
--url https://app.robin.markets/api/v1/marketsimport requests
url = "https://app.robin.markets/api/v1/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.robin.markets/api/v1/markets', 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://app.robin.markets/api/v1/markets",
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://app.robin.markets/api/v1/markets"
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://app.robin.markets/api/v1/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.robin.markets/api/v1/markets")
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{
"markets": [
{
"conditionId": "0xce9a5fa30fe74e323b4a8f15afbb0b7a41a537aa880779ddf7dee22223b2f34a",
"question": "Will Donald Trump win the 2028 US Presidential Election?",
"slug": "will-donald-trump-win-the-2028-us-presidential-election",
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/...png",
"endDate": 1857168000000,
"outcomes": [
"Yes",
"No"
],
"resolved": false,
"winningOutcome": null,
"tvl": "2100000",
"pool": {
"matchedFraction": 0,
"unmatchedYes": "70000000",
"unmatchedNo": "0",
"minoritySide": "no"
},
"apy": {
"base": 6,
"guaranteeFloor": 6,
"matching": {
"yes": 0,
"no": 1
},
"yes": 6,
"no": 7,
"min": 6,
"max": 8,
"maxPointsBoost": 1,
"nativeApy": 3.48
},
"vault": "0xcb7444981296d08da7161b75378e3773dbf5d806"
}
],
"notFound": [
"0xce9a5fa30fe74e323b4a8f15afbb0b7a41a537aa880779ddf7dee22223b2f34a"
]
}{
"error": {
"code": "bad_request",
"message": "wallet is required"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests"
}
}Markets
Batch market staking headlines
Staking APY headline for many markets in one call. Each found market is returned in markets (same shape as GET /markets/); unknown conditionIds are listed in notFound. Address-agnostic — use /quote for personalized APY.
GET
/
markets
Batch market staking headlines
curl --request GET \
--url https://app.robin.markets/api/v1/marketsimport requests
url = "https://app.robin.markets/api/v1/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.robin.markets/api/v1/markets', 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://app.robin.markets/api/v1/markets",
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://app.robin.markets/api/v1/markets"
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://app.robin.markets/api/v1/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.robin.markets/api/v1/markets")
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{
"markets": [
{
"conditionId": "0xce9a5fa30fe74e323b4a8f15afbb0b7a41a537aa880779ddf7dee22223b2f34a",
"question": "Will Donald Trump win the 2028 US Presidential Election?",
"slug": "will-donald-trump-win-the-2028-us-presidential-election",
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/...png",
"endDate": 1857168000000,
"outcomes": [
"Yes",
"No"
],
"resolved": false,
"winningOutcome": null,
"tvl": "2100000",
"pool": {
"matchedFraction": 0,
"unmatchedYes": "70000000",
"unmatchedNo": "0",
"minoritySide": "no"
},
"apy": {
"base": 6,
"guaranteeFloor": 6,
"matching": {
"yes": 0,
"no": 1
},
"yes": 6,
"no": 7,
"min": 6,
"max": 8,
"maxPointsBoost": 1,
"nativeApy": 3.48
},
"vault": "0xcb7444981296d08da7161b75378e3773dbf5d806"
}
],
"notFound": [
"0xce9a5fa30fe74e323b4a8f15afbb0b7a41a537aa880779ddf7dee22223b2f34a"
]
}{
"error": {
"code": "bad_request",
"message": "wallet is required"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests"
}
}Query Parameters
Comma-separated condition ids (max 25; must be unique, no empty entries).
⌘I