Authenticated user CP rollup for a UTC day
curl --request GET \
--url https://api-mainnet.xo.market/api/liquidity-rewards/me/epochs/{epoch} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-mainnet.xo.market/api/liquidity-rewards/me/epochs/{epoch}"
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/me/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/liquidity-rewards/me/epochs/{epoch}",
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/me/epochs/{epoch}"
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/me/epochs/{epoch}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/liquidity-rewards/me/epochs/{epoch}")
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{
"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 (authenticated)
Authenticated user CP rollup for a UTC day
Requires Authorization: Bearer <privy_access_token>.
CP rollup for one UTC day across markets. Dual-rail markets may
return empty markets[] or upstream 409 — prefer
GET /liquidity-rewards/markets/{marketId}/me for mixed CP/USDC.
GET
/
liquidity-rewards
/
me
/
epochs
/
{epoch}
Authenticated user CP rollup for a UTC day
curl --request GET \
--url https://api-mainnet.xo.market/api/liquidity-rewards/me/epochs/{epoch} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-mainnet.xo.market/api/liquidity-rewards/me/epochs/{epoch}"
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/me/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/liquidity-rewards/me/epochs/{epoch}",
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/me/epochs/{epoch}"
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/me/epochs/{epoch}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/liquidity-rewards/me/epochs/{epoch}")
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{
"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"
}
}Authorizations
Privy access token. Required on /liquidity-rewards/*.
Send Authorization: Bearer <privy_access_token>.
Not used on /public/liquidity-rewards/*.
Path Parameters
UTC-day index, floor(unix_ms / 86_400_000).
Required range:
0 <= x <= 10000000Response
Maker day rollup for the session wallet.
CP rollup for one maker on one UTC day (snake_case).