Skip to main content

Points Balance

Returns the authenticated user's points summary for a given epoch.

GET /points
Authorization: Bearer <token>

Aliases: GET /points/balance, GET /points/summary

Query Parameters

ParameterTypeRequiredDescription
epochintegerNoEpoch number; defaults to the current active epoch

Response

{
"user_address": "0xAbCd...1234",
"epoch_number": 3,
"epoch_status": "active",
"trading_points": "1250.50",
"pnl_points": "340.20",
"holding_points": "85.00",
"referral_points": "20.00",
"referral_code": "AXBLADE2026",
"staking_points": "0.00",
"total_points": "1695.70",
"tier": "T2",
"tier_multiplier": "1.5",
"earn_level": 1,
"earn_level_weight": 8,
"earn_level_points_to_next": "8304.30",
"rank": 142,
"trading_volume": "2500000.00",
"trade_count": 47,
"referral_count": 2,
"updated_at": "2026-04-15T12:30:00Z"
}

New users with no activity return all point fields as "0.00" and rank as null.

Response Fields

FieldTypeDescription
user_addressstringUser's wallet address
epoch_numberintEpoch the data belongs to
epoch_statusstringEpoch status (pending / active / ended / settled)
trading_pointsDecimalTrading Points (TP) accumulated this epoch
pnl_pointsDecimalPnL Points (PP) accumulated this epoch
holding_pointsDecimalHolding Points (HP) accumulated this epoch
referral_pointsDecimalReferral Points (RP) accumulated this epoch
referral_codestring | nullUser's referral code; null if not created
staking_pointsDecimalStaking Points (SP) accumulated this epoch
total_pointsDecimalSum of all point types
tierstringCurrent tier: T1 / T2 / T3
tier_multiplierstringTier rate multiplier (e.g., "1.5")
earn_levelintCurrent Earn Level (0–5)
earn_level_weightintDistribution weight for current level
earn_level_points_to_nextDecimalPoints needed to reach next Earn Level; "0.00" at L5
rankint | nullEpoch leaderboard rank; null if not ranked
trading_volumeDecimalTotal trade volume this epoch (USD)
trade_countintNumber of trades this epoch
referral_countintNumber of referees
updated_atstringLast update timestamp (ISO 8601)

Code Examples

Python

import requests

BASE_URL = "https://api.primit.io/api/v1"
JWT_TOKEN = "your_jwt_token"

resp = requests.get(
f"{BASE_URL}/points",
headers={"Authorization": f"Bearer {JWT_TOKEN}"},
)
data = resp.json()

print(f"Total points: {data['total_points']} (Epoch {data['epoch_number']})")
print(f"Tier: {data['tier']}{data['tier_multiplier']}), Earn Level: L{data['earn_level']}")
print(f"Rank: {data['rank']}")