Builder Code

Get Builder Code Statistics

Changed on

Returns trading volume and builder fees attributed to the builder code owned by the authenticated account. Time bounds are inclusive. Omit endTime for live statistics; live results use a five-minute start-time bucket and are cached for one hour. Historical requests include endTime and are cached for 24 hours. An explicit endTime must be at least one minute in the past.

get/v1/builder_code/stats

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/builder_code/stats
  • Auth
    • HTTP bearer
    • or API key in header ONDO-KEY-ID

Query parameters

startTimeinteger required
Example:1789725600000

Required inclusive start time in Unix milliseconds. For live requests, the server rounds this value down to a five-minute boundary and returns the effective value in the response.

endTimeinteger
Example:1789729200000

Optional inclusive end time in Unix milliseconds. Omit this parameter for live statistics. When provided, it must be at least one minute in the past and must not be before startTime.

Response

Builder-code volume and fee statistics for the effective inclusive time window

successboolean required

Whether the request was successful

errorstring

Error message, present only on failure

error_codestring

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecatedstring

Deprecation notice, if applicable

Example response

{
  "success": true,
  "result": {
    "startTime": 1789725600000,
    "endTime": 1789729200000,
    "totalVolume": "12500.123456789",
    "totalBuilderFee": "12.500123456789",
    "accounts": [
      {
        "accountId": "2564891920043613872",
        "walletAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
        "totalVolume": "10000.123456789",
        "builderFee": "10.000123456789"
      }
    ]
  }
}

Changes