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"
}
]Get total earnings for user by date
Returns the summed total rewards earnings for a user on a provided day, grouped by asset address.
Requires CLOB L2 Auth headers.
Returns total earnings for a user on a given date. Requires API key auth headers.
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"
}
]Currently disabled.
Request contract
- Method and path: GET /apis/v1/polymarket/rewards/user/total
- Availability: disabled
- 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
{
"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": "disabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Historical archive: disabled, cannot be called, and no price is published.Authorizations
Query Parameters
Response
Successfully retrieved total user earnings