Skip to main content
GET
/
v3
/
credits
/
stats
Global Credit Stats
curl --request GET \
  --url https://api.polynode.dev/v3/credits/stats \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.polynode.dev/v3/credits/stats"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.polynode.dev/v3/credits/stats', 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.polynode.dev/v3/credits/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$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.polynode.dev/v3/credits/stats"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

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.polynode.dev/v3/credits/stats")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.polynode.dev/v3/credits/stats")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "interval": "month",
  "series": [
    {
      "bucket": 1780272000,
      "taker_rebate": {
        "amount": "6006789.660200",
        "count": 63921
      }
    },
    {
      "bucket": 1782864000,
      "taker_rebate": {
        "amount": "7673425.065000",
        "count": 95078
      }
    }
  ],
  "totals": {
    "taker_rebate": {
      "amount": "13680214.725200",
      "avg_credit": "86.039627",
      "batch_txs": 501,
      "count": 158999,
      "first_ts": 1781913600,
      "last_ts": 1783728000,
      "unique_recipients": 36469
    }
  }
}
Program-wide totals and time series: how much Polymarket pays out per program, to how many wallets, at what average size.

Credit types

Every credits endpoint accepts these values in type/types:
ValueProgram
rewardLiquidity rewards
yieldYield on balances
maker_rebateMaker rebates
taker_rebateTaker rebates
referral_rewardReferral rewards
types accepts a comma-separated set (types=maker_rebate,taker_rebate) or all.

Examples

Monthly payout volumes for every program:
curl "https://api.polynode.dev/v3/credits/stats?types=all&interval=month" \
  -H "x-api-key: $POLYNODE_API_KEY"
Taker rebates by day since launch:
curl "https://api.polynode.dev/v3/credits/stats?types=taker_rebate&interval=day" \
  -H "x-api-key: $POLYNODE_API_KEY"
unique_recipients is exact for all-time requests and null when you pass start_ts/end_ts. interval=hour requires a window of 7 days or less.

Authorizations

x-api-key
string
header
required

Query Parameters

types
string

Comma-separated set of credit types (One of reward, yield, maker_rebate, taker_rebate, referral_reward), or all for every type.

interval
string

hour, day (default), week, or month.

start_ts
integer

Unix seconds start bound (inclusive).

end_ts
integer

Unix seconds end bound (inclusive).

Response

200 - application/json

Success