---
title: "public/get_referral_performance"
method: POST
path: "/public/get_referral_performance"
tags: ["Referrals"]
---

# public/get_referral_performance

`POST /public/get_referral_performance`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/public/get_referral_performance`
- Auth: none declared

Returns broker-program referral performance for a referral code, identified either by the code itself or by the referrer's wallet, over a requested time window (start_ms to end_ms, capped at 28 days). The response includes total notional volume, referred fees, fee rewards, builder fees collected, the applicable fee-share percentage, and a per-role/currency/instrument-type breakdown, all as decimal strings.

## Request body

- GetReferralPerformanceParams
  - `end_ms` integer, required: End timestamp in UTC milliseconds.
  - `referral_code` string, nullable: (Optional) referral code.
  - `start_ms` integer, required: Start timestamp in UTC milliseconds.
  - `wallet` string, nullable: (Optional) wallet of the referrer.

## Response `200`

Success

- GetReferralPerformanceResult
  - `fee_share_percentage` string, required
  - `referral_code` string, required
  - `rewards` object, required: Performance by liquidity role / currency / instrument type.
  - `stdrv_balance` string, required
  - `total_builder_fee_collected` string, required
  - `total_fee_rewards` string, required
  - `total_notional_volume` string, required
  - `total_referred_fees` string, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 1 info
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/get_referral_performance/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
