Skip to main content
GET
Get Referral Statistics

Authorizations

X-Api-Key
string
header
default:your-api-key-here
required

Query Parameters

interval_days
integer

Scope period-specific stats to the last N days. Omit for all-time.

Required range: x >= 1
Example:

30

Response

Referral stats

Aggregated referral performance statistics for the authenticated account. All-time totals are always present; period-scoped stats (qualified_referrals, first_trade_volume, period_earnings, earnings_by_event_type) are filtered to the interval_days window if provided.

total_referred
integer
required

All-time total number of accounts that signed up using this referral code.

total_earnings
string
required

All-time total referral earnings credited to this account (in PT).

Example:

"126.00"

total_visits
integer
required

All-time total number of visits tracked via this referral code (before or without registration).

pending_referrals
integer
required

Referred accounts that have signed up but not yet completed the qualifying action (e.g. first trade or verification).

completed_referrals
integer
required

Referred accounts that have completed all qualifying actions and triggered a payout.

unverified_referrals
integer
required

Referred accounts that registered but have not yet verified their identity.

period_earnings
string
required

Total earnings within the interval_days window (in PT). Null if no interval was specified.

Example:

"45.00"

qualified_referrals
integer
required

Number of referred accounts within the interval that met the first qualifying action threshold (e.g. placed their first trade).

first_trade_volume
string
required

Total volume of first trades placed by referred accounts within the interval.

Example:

"220.50"

earnings_by_event_type
EarningsByEventTypeResponse · object[]
required

Breakdown of period earnings grouped by the event type that triggered each earning (DEPOSIT, TRADE, SIGNUP, etc.).

earning_rules
EarningRuleResponse · object[]
required

The active referral earning rules that apply to this account's program.

referral_code
string | null

The authenticated account's referral code. Share this to earn commissions.

interval_days
integer | null

The time window (in days) used for period-scoped stats. Null if all-time stats were requested.