Performance

Calculate PnL performance metrics between two dates for wallets, positions, assets, or holdings.

Calculate PnL Performance

get

Calculate performance metrics (PnL, ROI, TWR, APR, APY) between two dates for organizations and wallets. This endpoint returns a hierarchical structure: Organizations -> Wallets -> Protocols -> Positions -> Assets/Holdings. It includes Merkl rewards as positions within the Merkl protocol. Query Parameters:

  • Either org_id or wallet_address is required (at least one must be provided) - org_id - Returns performance for all wallets in the organization - wallet_address - Returns performance for a specific wallet - Both can be provided together to filter wallets within an organization The response includes comprehensive metrics at each level of the hierarchy, with positions and assets sorted by final value (descending).

Authorizations
x-api-KeystringRequired

API key for authentication

Query parameters
org_idstringOptional

Organization ID to calculate performance for all wallets in the organization

Example: org-123
wallet_addressstringOptional

Wallet address to calculate performance for. Can be used alone or combined with org_id.

Example: 0x1234567890abcdef1234567890abcdef12345678Pattern: ^0x[a-fA-F0-9]{40}$
from_datestringRequired

Start date for performance calculation. Accepts simple format (2025-11-03) or full ISO 8601 (2025-11-03T00:00:00Z)

Example: 2025-11-03
to_datestringRequired

End date for performance calculation. Accepts simple format (2025-11-03) or full ISO 8601 (2025-11-03T23:59:59Z)

Example: 2025-11-03
Responses
chevron-right
200

Successful response with performance metrics

application/json
start_datestring · date-timeRequired

Start date for the performance calculation period

end_datestring · date-timeRequired

End date for the performance calculation period

get
/performance

Last updated