> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gains.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Support Endpoints Migration

> Support endpoint migration Dec 2025 -> Jan 2026

#### Endpoint Migration Table

| Category | Previous Endpoint `backend-{chain}.gains.trade` | New Endpoint `backend-global.gains.trade` | Notes |
| - | - | - | - |
| **Leaderboard** | `/leaderboard/:period` | `/api/leaderboard/:period?chainId={chainId}` | `chainId` is now a required query parameter. |
| **Referrals** | `/referrals/links/:link/address` | `/api/referrals/links/:link/address` | Base path moved to `/api/referrals`. |
| | `/referrals/addresses/:address/link` | `/api/referrals/addresses/:address/link` | |
| **Holding Rates** | `/holding-rates/:collateralIndex/:pairIndex` | `/api/holding-rates/:collateralIndex/:pairIndex?chainId={chainId}` | `chainId` is now a required query parameter. |
| **Stats** | `/stats` | `/api/stats?chainId={chainId}` | `chainId` is now a required query parameter. |
| **APR** | `/apr` | `/api/apr?chainId={chainId}` | `chainId` is now a required query parameter. |
| **Total Supply** | `/total-supply` | `/api/total-supply` | No `chainId` required (always returns total supply). |

#### Timeline

The old endpoints were retired on January 12, 2026 — make sure you are using the new ones below


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.