Wallet CP rollup for a UTC day (public)
curl --request GET \
--url https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/epochs/{epoch}import requests
url = "https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/epochs/{epoch}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/epochs/{epoch}', 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/wallets/{walletAddress}/epochs/{epoch}",
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/wallets/{walletAddress}/epochs/{epoch}"
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/wallets/{walletAddress}/epochs/{epoch}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/epochs/{epoch}")
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{
"user_id": "<string>",
"epoch": 123,
"day_open_ms": 123,
"day_close_ms": 123,
"flagged": true,
"effective_cp": "<string>",
"allocated_cp": "<string>",
"credited_cp": "<string>",
"markets": [
{
"market_id": "<string>",
"currency": "<string>",
"score": "<string>",
"score_share": "<string>",
"effective_cp": "<string>",
"allocated_cp": "<string>",
"credited_cp": "<string>",
"status": "pending"
}
],
"user": {
"id": 123,
"username": "xouser1000",
"name": "<string>",
"profilePictureUrl": "<string>",
"roosterColor": "<string>",
"verified": true,
"achievements": [
"<string>"
],
"cpPoints": 123,
"tier": "Believer"
}
}Liquidity Rewards (public)
Wallet CP rollup for a UTC day (public)
Same shape as Privy GET /liquidity-rewards/me/epochs/{epoch},
with the wallet in the path. CP-only. For mixed CP/USDC on one
market, use GET /public/liquidity-rewards/markets/{marketId}/wallets/{wallet}.
No Privy token.
GET
/
public
/
liquidity-rewards
/
wallets
/
{walletAddress}
/
epochs
/
{epoch}
Wallet CP rollup for a UTC day (public)
curl --request GET \
--url https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/epochs/{epoch}import requests
url = "https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/epochs/{epoch}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/epochs/{epoch}', 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/wallets/{walletAddress}/epochs/{epoch}",
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/wallets/{walletAddress}/epochs/{epoch}"
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/wallets/{walletAddress}/epochs/{epoch}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/epochs/{epoch}")
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{
"user_id": "<string>",
"epoch": 123,
"day_open_ms": 123,
"day_close_ms": 123,
"flagged": true,
"effective_cp": "<string>",
"allocated_cp": "<string>",
"credited_cp": "<string>",
"markets": [
{
"market_id": "<string>",
"currency": "<string>",
"score": "<string>",
"score_share": "<string>",
"effective_cp": "<string>",
"allocated_cp": "<string>",
"credited_cp": "<string>",
"status": "pending"
}
],
"user": {
"id": 123,
"username": "xouser1000",
"name": "<string>",
"profilePictureUrl": "<string>",
"roosterColor": "<string>",
"verified": true,
"achievements": [
"<string>"
],
"cpPoints": 123,
"tier": "Believer"
}
}Path Parameters
Maker wallet (0x-prefixed 40-hex). Any case is accepted.
Pattern:
^0x[a-fA-F0-9]{40}$UTC-day index, floor(unix_ms / 86_400_000).
Required range:
0 <= x <= 10000000Response
Maker day rollup. Unknown makers return zeros, not 404.
CP rollup for one maker on one UTC day (snake_case).