Authenticated maker on one market-day (CP + USDC)
curl --request GET \
--url https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/me"
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/markets/{marketId}/me', 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/markets/{marketId}/me",
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/markets/{marketId}/me"
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/markets/{marketId}/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/me")
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{
"market_id": "<string>",
"maker": "<string>",
"flagged": true,
"epoch": 123,
"day_open_ms": 123,
"day_close_ms": 123,
"scored": true,
"currency": "CP",
"score": "<string>",
"score_share": "<string>",
"projected_payout": {
"amount": "12.50",
"currency": "CP"
},
"credited": {
"amount": "12.50",
"currency": "CP"
},
"status": "pending",
"order_count": 123,
"cancel_count": 123,
"fill_count": 123,
"eligible_ms": 123,
"qualifying_orders": {
"page": 123,
"page_size": 123,
"total": 123,
"truncated_orders": 123,
"attributed": {
"amount": "12.50",
"currency": "CP"
},
"unattributed": {
"amount": "12.50",
"currency": "CP"
},
"orders": [
{
"order_id": "<string>",
"outcome": "<string>",
"side": "<string>",
"price_tick": 123,
"score": "<string>",
"maker_score_share": "<string>",
"payout": {
"amount": "12.50",
"currency": "CP"
},
"eligible_ms": 123,
"first_seen_ms": 123,
"last_seen_ms": 123,
"created_at_ms": 123,
"opening_size_micro": "<string>",
"closing_size_micro": "<string>",
"exit_kind": "filled"
}
]
}
}Liquidity Rewards (authenticated)
Authenticated maker on one market-day (CP + USDC)
Requires Authorization: Bearer <privy_access_token>.
Maker is bound from the Privy session wallet. Preferred per-market read for mixed CP/USDC days.
GET
/
liquidity-rewards
/
markets
/
{marketId}
/
me
Authenticated maker on one market-day (CP + USDC)
curl --request GET \
--url https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/me"
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/markets/{marketId}/me', 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/markets/{marketId}/me",
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/markets/{marketId}/me"
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/markets/{marketId}/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/liquidity-rewards/markets/{marketId}/me")
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{
"market_id": "<string>",
"maker": "<string>",
"flagged": true,
"epoch": 123,
"day_open_ms": 123,
"day_close_ms": 123,
"scored": true,
"currency": "CP",
"score": "<string>",
"score_share": "<string>",
"projected_payout": {
"amount": "12.50",
"currency": "CP"
},
"credited": {
"amount": "12.50",
"currency": "CP"
},
"status": "pending",
"order_count": 123,
"cancel_count": 123,
"fill_count": 123,
"eligible_ms": 123,
"qualifying_orders": {
"page": 123,
"page_size": 123,
"total": 123,
"truncated_orders": 123,
"attributed": {
"amount": "12.50",
"currency": "CP"
},
"unattributed": {
"amount": "12.50",
"currency": "CP"
},
"orders": [
{
"order_id": "<string>",
"outcome": "<string>",
"side": "<string>",
"price_tick": 123,
"score": "<string>",
"maker_score_share": "<string>",
"payout": {
"amount": "12.50",
"currency": "CP"
},
"eligible_ms": 123,
"first_seen_ms": 123,
"last_seen_ms": 123,
"created_at_ms": 123,
"opening_size_micro": "<string>",
"closing_size_micro": "<string>",
"exit_kind": "filled"
}
]
}
}Authorizations
Privy access token. Required on /liquidity-rewards/*.
Send Authorization: Bearer <privy_access_token>.
Not used on /public/liquidity-rewards/*.
Path Parameters
CLOB market id. Use the market's conditionId (0x-prefixed
32-byte hex).
Query Parameters
UTC-day index. Omit to let upstream choose the current (open) day.
Required range:
0 <= x <= 100000000-indexed page for liquidity-rewards proxied lists.
Required range:
0 <= x <= 1000000Page size for liquidity-rewards proxied lists.
Required range:
1 <= x <= 1000Response
Market-day card for the signed-in maker.
Authenticated or public maker on one market-day. snake_case.
Carries CP and/or USDC via projected_payout / credited.
Available options:
CP, USDC Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
pending, paid, dropped_below_min, dropped_flagged, failed_transfer, none Show child attributes
Show child attributes