Page cover

Builder API access

Methodology

  • We use actual Hyperliquid builder trade data published by Hyperliquid, which is subject to a 48-hour time lag.

  • To provide near real-time accuracy, we fill in the most recent 48-hour gap using our own live trade tracking system, which may carry a small margin of error.

  • Important: When calculating commissions, we do not use the real-time (rolling) data. Only confirmed on-chain data is used once it becomes available through Hyperliquid’s official stream.

Builders Referrals API Documentation

This API provides access to referral data and trading volume information for specific referral codes. All endpoints are read-only and require API key authentication.

Base URL

https://app.based.one/api/builders/referrals

Authentication

All API requests must include a valid API key in the request headers.

Header Required

x-api-key: YOUR_API_KEY

Authentication Error Response

{
  "error": "Invalid or missing API key"
}

1. Get All Referrals by Code

Retrieve a complete list of all referrals (tier 1, 2, and 3) under a specific referral code with their trading performance and commission data.

Endpoint

Parameters

  • code (path parameter, required): The referral code to query

Query Parameters

  • sortBy (optional): Sort field - registrationDate, totalTraded, commissionEarned (default: registrationDate)

  • sortDirection (optional): Sort direction - asc, desc (default: desc)

  • tier (optional): Filter by tier - all, tier1, tier2, tier3 (default: all)

Sample Request

Sample Response


2. Get 30-Day Rolling Volume by Code

Retrieve referral data showing only the last 30 days of trading volume and commission earnings.

Endpoint

Parameters

  • code (path parameter, required): The referral code to query

Query Parameters

  • sortBy (optional): Sort field - registrationDate, totalTraded, commissionEarned (default: registrationDate)

  • sortDirection (optional): Sort direction - asc, desc (default: desc)

  • tier (optional): Filter by tier - all, tier1, tier2, tier3 (default: all)

Sample Request

Sample Response


3. Get Individual User Volume by Address

Retrieve detailed trading volume and commission data for a specific user address under a referral code, including trade history and asset breakdown.

Endpoint

Parameters

  • code (path parameter, required): The referral code to query

  • address (path parameter, required): The wallet address of the specific user

Query Parameters

  • days (optional): Number of days to look back (default: 30)

  • includeAllTime (optional): Set to true to get all-time data instead of rolling window (default: false)

Sample Request

Sample Response


Error Responses

All endpoints return consistent error responses:

401 Unauthorized

400 Bad Request

403 Forbidden

404 Not Found

500 Internal Server Error


Data Definitions

Commission Rates

  • Tier 1 (Direct referrals): 60% of builder fees

  • Tier 2 (Sub-referrals): 12% of builder fees

  • Tier 3 (Sub-sub-referrals): 4% of builder fees

Data Sources

  • BuilderTrade: Historical trading data (cleaned, up to cutoff date)

  • TraderTrade: Recent trading data (real-time, from cutoff date onwards)

Volume Calculation

All volume figures represent the total USD value of trades (price × size) executed by the referral users within the specified time period.


Getting API Access

To obtain an API key for accessing these endpoints, please contact the development team. API keys are issued for legitimate business use cases.

Rate Limits

These endpoints currently have no rate limits, but reasonable usage is expected. For high-volume integrations, please contact support.

Support

For API support, API key requests, or questions, please contact the development team here.

Last updated