Skip to content

Get Funding Payments for Parent Subaccount

Retrieves funding payment history for all subaccounts under a parent subaccount. This endpoint aggregates funding payments across all child subaccounts of a given parent subaccount.

Method Declaration

Python
async def get_funding_payments_for_parent_subaccount(
    self,
    address: str,
    parent_subaccount_number: int,
    limit: Optional[int] = None,
    after_or_at: Optional[str] = None,
    page: Optional[int] = None,
) -> Any
Unification Plan
  • Rename all methods to get_funding_payments_for_parent_subaccount - shorter is better.
  • Add a ParentSubaccount pair to Python and JavaScript, since it's always a pair
  • page optional parameter is missing in Python
  • page optional parameter is missing in Rust

Parameters

ParameterLocationTypeRequiredDescription
addressqueryAddresstrueThe wallet address that owns the account.
parentSubaccountNumberquerySubaccountNumbertrueThe identifier for the parent subaccount within the wallet address.
limitqueryu32falseMaximum number of funding payments to return in the response.
afterOrAtqueryDateTimefalseFilters results to funding payments created at or after a specific timestamp (ISO 8601 format).
pagequeryu32falseThe page number for paginated results.

Response

A promise that resolves to funding payment data containing details such as payment amount, funding rate, position size, market ticker, and timestamp information aggregated across all child subaccounts.

StatusMeaningSchemaDescription
200OKFundingPaymentsResponseObject ⛁The funding payments data.
API Example