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?date=2024-03-26&maker_address=0xFeA4cB3dD4ca7CefD3368653B7D6FF9BcDFca604' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/rewards/user \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/rewards/user"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/rewards/user")
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{
"count": 1,
"data": [
{
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"asset_rate": 1,
"condition_id": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"date": "2024-03-26T00:00:00Z",
"earnings": 0.237519,
"maker_address": "0xFeA4cB3dD4ca7CefD3368653B7D6FF9BcDFca604"
}
],
"limit": 100,
"next_cursor": "LTE="
}CLOB
Get earnings for user by date
Returns an array of user earnings per market for a provided day.
Requires CLOB L2 Auth headers.
Results are paginated (100 items per page). Use next_cursor to fetch subsequent pages. A next_cursor value of “LTE=” indicates the last page.
Returns earnings for a user on a given date. Requires API key auth headers.
GET
https://api.aisa.one
/
apis
/
v1
/
polymarket
/
rewards
/
user
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?date=2024-03-26&maker_address=0xFeA4cB3dD4ca7CefD3368653B7D6FF9BcDFca604' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/rewards/user \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/rewards/user"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/rewards/user")
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{
"count": 1,
"data": [
{
"asset_address": "0x9c4E1703476E875070EE25b56A58B008CFb8FA78",
"asset_rate": 1,
"condition_id": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"date": "2024-03-26T00:00:00Z",
"earnings": 0.237519,
"maker_address": "0xFeA4cB3dD4ca7CefD3368653B7D6FF9BcDFca604"
}
],
"limit": 100,
"next_cursor": "LTE="
}Request contract
- Method and path: GET /apis/v1/polymarket/rewards/user
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/polymarket/rewards/user - date: query; required
- maker_address: query; optional
- next_cursor: query; optional
- signature_type: query; optional
- sponsored: query; optional
{
"operationId": "any_polymarket_clob_apis_v1_polymarket_rewards_user",
"method": "GET",
"path": "/apis/v1/polymarket/rewards/user",
"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": "Pagination cursor from previous response",
"in": "query",
"name": "next_cursor",
"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, returns sponsored-only earnings",
"in": "query",
"name": "sponsored",
"required": false,
"schema": {
"default": false,
"type": "boolean"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.012 USD per successful request. Your account price may differ; use a request quote where supported.Authorizations
Query Parameters
Response
Successfully retrieved user earnings