Market programme config (public)
curl --request GET \
--url https://api-mainnet.xo.market/api/public/liquidity-rewards/markets/{marketId}/configimport requests
url = "https://api-mainnet.xo.market/api/public/liquidity-rewards/markets/{marketId}/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/public/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/public/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",
]);
$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/public/liquidity-rewards/markets/{marketId}/config"
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://api-mainnet.xo.market/api/public/liquidity-rewards/markets/{marketId}/config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/public/liquidity-rewards/markets/{marketId}/config")
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{
"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 (public)
Market programme config (public)
Unauthenticated multi-rail config. Returns every enrolled programme (CP and/or USDC) for the market. No Privy token.
GET
/
public
/
liquidity-rewards
/
markets
/
{marketId}
/
config
Market programme config (public)
curl --request GET \
--url https://api-mainnet.xo.market/api/public/liquidity-rewards/markets/{marketId}/configimport requests
url = "https://api-mainnet.xo.market/api/public/liquidity-rewards/markets/{marketId}/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/public/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/public/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",
]);
$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/public/liquidity-rewards/markets/{marketId}/config"
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://api-mainnet.xo.market/api/public/liquidity-rewards/markets/{marketId}/config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/public/liquidity-rewards/markets/{marketId}/config")
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{
"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"
}
]
}