Wallet scored orders for a UTC day (public)
curl --request GET \
--url https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/ordersimport requests
url = "https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/orders', 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}/orders",
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}/orders"
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}/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/orders")
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{
"maker": "<string>",
"flagged": true,
"market_id": "<string>",
"epoch": 123,
"day_open_ms": 123,
"day_close_ms": 123,
"projected": true,
"projected_through_ms": 123,
"page": 123,
"page_size": 123,
"total": 123,
"truncated_orders": 123,
"orders": [
{
"market_id": "<string>",
"order_id": "<string>",
"outcome": "<string>",
"side": "<string>",
"price_tick": 123,
"score": "<string>",
"maker_score_share": "<string>",
"payouts": [
{
"amount": "12.50",
"currency": "CP"
}
],
"projected": true,
"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"
}
],
"user": {
"id": 123,
"username": "xouser1000",
"name": "<string>",
"profilePictureUrl": "<string>",
"roosterColor": "<string>",
"verified": true,
"achievements": [
"<string>"
],
"cpPoints": 123,
"tier": "Believer"
}
}Liquidity Rewards (public)
Wallet scored orders for a UTC day (public)
Unauthenticated scored-order list for a maker. Optional
market_id / epoch. epoch defaults to the current UTC day
(latest is not accepted). No Privy token.
GET
/
public
/
liquidity-rewards
/
wallets
/
{walletAddress}
/
orders
Wallet scored orders for a UTC day (public)
curl --request GET \
--url https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/ordersimport requests
url = "https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/orders', 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}/orders",
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}/orders"
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}/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/public/liquidity-rewards/wallets/{walletAddress}/orders")
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{
"maker": "<string>",
"flagged": true,
"market_id": "<string>",
"epoch": 123,
"day_open_ms": 123,
"day_close_ms": 123,
"projected": true,
"projected_through_ms": 123,
"page": 123,
"page_size": 123,
"total": 123,
"truncated_orders": 123,
"orders": [
{
"market_id": "<string>",
"order_id": "<string>",
"outcome": "<string>",
"side": "<string>",
"price_tick": 123,
"score": "<string>",
"maker_score_share": "<string>",
"payouts": [
{
"amount": "12.50",
"currency": "CP"
}
],
"projected": true,
"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"
}
],
"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}$Query Parameters
Condition id. Omit to return every market for the day.
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
Paginated scored orders.
One maker's scored orders for one UTC day (snake_case).
Show child attributes
Show child attributes
XO profile when the wallet maps to a user; otherwise null.
Show child attributes
Show child attributes