Wallet CP + USDC summary (public)
curl --request GET \
--url https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/summaryimport requests
url = "https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/summary"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/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/public/liquidity-rewards/wallets/{walletAddress}/summary",
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}/summary"
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}/summary")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/summary")
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{
"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 (public)
Wallet CP + USDC summary (public)
Same payload as Privy GET /liquidity-rewards/me/summary, with
the wallet in the path. No Privy token. Wallets that are not XO
users still return liquidity totals; creator-bonus CP is 0.
GET
/
public
/
liquidity-rewards
/
wallets
/
{walletAddress}
/
summary
Wallet CP + USDC summary (public)
curl --request GET \
--url https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/summaryimport requests
url = "https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/summary"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/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/public/liquidity-rewards/wallets/{walletAddress}/summary",
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}/summary"
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}/summary")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/summary")
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{
"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>"
}
}
}
}Path Parameters
Maker wallet (0x-prefixed 40-hex). Any case is accepted.
Pattern:
^0x[a-fA-F0-9]{40}$Response
Summary cards for the wallet.