Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/polymarket/rewards/user/total?date=2024-03-26&maker_address=0xFeA4cB3dD4ca7CefD3368653B7D6FF9BcDFca604' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/rewards/user/total \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/rewards/user/total"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/polymarket/rewards/user/total', 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.aisa.one/apis/v1/polymarket/rewards/user/total",
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.aisa.one/apis/v1/polymarket/rewards/user/total"
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.aisa.one/apis/v1/polymarket/rewards/user/total")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/rewards/user/total")
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[
{
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"asset_rate": 0.999357,
"date": "2024-04-09T00:00:00Z",
"earnings": 1.59984,
"maker_address": "0xD527CCdBEB6478488c848465F9947bDA3C2e6994"
},
{
"asset_address": "0x69308FB512518e39F9b16112fA8d994F4e2Bf8bB",
"asset_rate": 3.51,
"date": "2024-04-09T00:00:00Z",
"earnings": 8.187219,
"maker_address": "0xD527CCdBEB6478488c848465F9947bDA3C2e6994"
}
]CLOB
Get total earnings for user by date
Returns total earnings for a user on a given date. Requires API key auth headers.
<!-- aisa-pricing:start -->
Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.
<!-- aisa-pricing:end -->
GET
https://api.aisa.one
/
apis
/
v1
/
polymarket
/
rewards
/
user
/
total
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/polymarket/rewards/user/total?date=2024-03-26&maker_address=0xFeA4cB3dD4ca7CefD3368653B7D6FF9BcDFca604' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/rewards/user/total \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/rewards/user/total"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/polymarket/rewards/user/total', 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.aisa.one/apis/v1/polymarket/rewards/user/total",
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.aisa.one/apis/v1/polymarket/rewards/user/total"
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.aisa.one/apis/v1/polymarket/rewards/user/total")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/rewards/user/total")
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[
{
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"asset_rate": 0.999357,
"date": "2024-04-09T00:00:00Z",
"earnings": 1.59984,
"maker_address": "0xD527CCdBEB6478488c848465F9947bDA3C2e6994"
},
{
"asset_address": "0x69308FB512518e39F9b16112fA8d994F4e2Bf8bB",
"asset_rate": 3.51,
"date": "2024-04-09T00:00:00Z",
"earnings": 8.187219,
"maker_address": "0xD527CCdBEB6478488c848465F9947bDA3C2e6994"
}
]Request contract
- Method and path: GET /apis/v1/polymarket/rewards/user/total
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/polymarket/rewards/user/total - date: query; required
- maker_address: query; optional
- signature_type: query; optional
- sponsored: query; optional
- Runtime facts: 3ef99d33457af3e3c3b16299db54930852c884758cba034bdda67a08da5ab7fb
{
"operationId": "any_polymarket_clob_apis_v1_polymarket_rewards_us_50471d",
"method": "GET",
"path": "/apis/v1/polymarket/rewards/user/total",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Date in YYYY-MM-DD format",
"example": "2024-03-26",
"in": "query",
"name": "date",
"required": true,
"schema": {
"format": "date",
"type": "string"
}
},
{
"description": "Maker address to query earnings for",
"example": "0xFeA4cB3dD4ca7CefD3368653B7D6FF9BcDFca604",
"in": "query",
"name": "maker_address",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Signature type for address derivation (required for API KEY auth):\n- 0: EOA\n- 1: POLY_PROXY\n- 2: POLY_GNOSIS_SAFE\n",
"in": "query",
"name": "signature_type",
"required": false,
"schema": {
"enum": [
0,
1,
2
],
"type": "integer"
}
},
{
"description": "If true, aggregates both native and sponsored earnings",
"in": "query",
"name": "sponsored",
"required": false,
"schema": {
"default": false,
"type": "boolean"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "fixed_success",
"customer_pricing": "fixed_success",
"default_request_estimate_usd": 0.012,
"estimate_source": "profile_seed",
"evidence_source": "request_snapshot"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.012
- Cost contract: fixed_success
- Settlement evidence source: request_snapshot
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Date in YYYY-MM-DD format
Maker address to query earnings for
Signature type for address derivation (required for API KEY auth):
- 0: EOA
- 1: POLY_PROXY
- 2: POLY_GNOSIS_SAFE
Available options:
0, 1, 2 If true, aggregates both native and sponsored earnings
Response
Successfully retrieved total user earnings
Address of the reward asset
Exchange rate of the asset
Date of the earnings
Total amount of earnings in the asset
Address of the maker
Native rewards included in the total, when the breakdown is returned
Sponsored rewards included in the total, when the breakdown is returned