Market programme config
curl --request GET \
--url https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config', 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://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"market_id": "<string>",
"programmes": [
{
"currency": "CP",
"reward_enabled": true,
"active": true,
"inactive_reason": "reward_disabled",
"daily_pool": "<string>",
"budget_total": "<string>",
"duration_days": 123,
"program_starts_at_ms": 123,
"program_ends_at_ms": 123,
"max_distance_cents": "3",
"single_sided_factor": "<string>",
"two_sided_band_low": "<string>",
"two_sided_band_high": "<string>",
"max_avg_price": "<string>",
"min_order_rest_seconds": 30,
"min_order_size_shares": 5,
"min_payout": "1.00"
}
]
}Liquidity Rewards (authenticated)
Market programme config
Requires Authorization: Bearer <privy_access_token>.
Multi-rail market config: every enrolled programme (CP and/or USDC) in one response. Same payload as the public config route.
GET
/
liquidity-rewards
/
markets
/
{marketId}
/
config
Market programme config
curl --request GET \
--url https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config', 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://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"market_id": "<string>",
"programmes": [
{
"currency": "CP",
"reward_enabled": true,
"active": true,
"inactive_reason": "reward_disabled",
"daily_pool": "<string>",
"budget_total": "<string>",
"duration_days": 123,
"program_starts_at_ms": 123,
"program_ends_at_ms": 123,
"max_distance_cents": "3",
"single_sided_factor": "<string>",
"two_sided_band_low": "<string>",
"two_sided_band_high": "<string>",
"max_avg_price": "<string>",
"min_order_rest_seconds": 30,
"min_order_size_shares": 5,
"min_payout": "1.00"
}
]
}Authorizations
Privy access token. Required on /liquidity-rewards/*.
Send Authorization: Bearer <privy_access_token>.
Not used on /public/liquidity-rewards/*.
Path Parameters
CLOB market id. Use the market's conditionId (0x-prefixed
32-byte hex).