Authenticated user CP + USDC summary
curl --request GET \
--url https://api-mainnet.xo.market/api/liquidity-rewards/me/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-mainnet.xo.market/api/liquidity-rewards/me/summary"
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/summary', 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/summary",
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/summary"
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/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/liquidity-rewards/me/summary")
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{
"meta": {
"itemCount": 123,
"currentEpoch": 20713,
"dayOpenMs": 123,
"dayCloseMs": 123,
"endsInMs": 123
},
"flagged": true,
"me": {
"usdc": {
"totalReceived": "<string>",
"makerRebates": {
"lifetime": "86.20",
"today": "3.42"
},
"liquidityRewards": {
"lifetime": "86.20",
"today": "3.42"
},
"currentEpoch": {
"allocated": "<string>",
"effective": "<string>",
"paid": "<string>",
"estimate": "<string>",
"credited": "<string>",
"projected": true,
"projectedThroughMs": 123,
"status": "<string>"
}
},
"cp": {
"totalReceived": "<string>",
"liquidity": {
"lifetime": "86.20",
"today": "3.42"
},
"creatorBonus": {
"lifetime": "<string>"
},
"currentEpoch": {
"allocated": "<string>",
"effective": "<string>",
"paid": "<string>",
"estimate": "<string>",
"credited": "<string>",
"projected": true,
"projectedThroughMs": 123,
"status": "<string>"
}
}
}
}Liquidity Rewards (authenticated)
Authenticated user CP + USDC summary
Requires Authorization: Bearer <privy_access_token>.
Lifetime totals, current-epoch amounts, and breakdowns for the
Earnings header. meta.endsInMs drives the epoch progress bar.
Maker is bound from the Privy session wallet.
GET
/
liquidity-rewards
/
me
/
summary
Authenticated user CP + USDC summary
curl --request GET \
--url https://api-mainnet.xo.market/api/liquidity-rewards/me/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-mainnet.xo.market/api/liquidity-rewards/me/summary"
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/summary', 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/summary",
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/summary"
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/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/liquidity-rewards/me/summary")
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{
"meta": {
"itemCount": 123,
"currentEpoch": 20713,
"dayOpenMs": 123,
"dayCloseMs": 123,
"endsInMs": 123
},
"flagged": true,
"me": {
"usdc": {
"totalReceived": "<string>",
"makerRebates": {
"lifetime": "86.20",
"today": "3.42"
},
"liquidityRewards": {
"lifetime": "86.20",
"today": "3.42"
},
"currentEpoch": {
"allocated": "<string>",
"effective": "<string>",
"paid": "<string>",
"estimate": "<string>",
"credited": "<string>",
"projected": true,
"projectedThroughMs": 123,
"status": "<string>"
}
},
"cp": {
"totalReceived": "<string>",
"liquidity": {
"lifetime": "86.20",
"today": "3.42"
},
"creatorBonus": {
"lifetime": "<string>"
},
"currentEpoch": {
"allocated": "<string>",
"effective": "<string>",
"paid": "<string>",
"estimate": "<string>",
"credited": "<string>",
"projected": true,
"projectedThroughMs": 123,
"status": "<string>"
}
}
}
}Authorizations
Privy access token. Required on /liquidity-rewards/*.
Send Authorization: Bearer <privy_access_token>.
Not used on /public/liquidity-rewards/*.
Response
Summary cards for the signed-in user.