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,
) -> AnyUnification Plan
- Rename all methods to
get_funding_payments_for_parent_subaccount- shorter is better. - Add a
ParentSubaccountpair to Python and JavaScript, since it's always a pair pageoptional parameter is missing in Pythonpageoptional parameter is missing in Rust
Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
address | query | Address | true | The wallet address that owns the account. |
parentSubaccountNumber | query | SubaccountNumber | true | The identifier for the parent subaccount within the wallet address. |
limit | query | u32 | false | Maximum number of funding payments to return in the response. |
afterOrAt | query | DateTime | false | Filters results to funding payments created at or after a specific timestamp (ISO 8601 format). |
page | query | u32 | false | The 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.
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | FundingPaymentsResponseObject ⛁ | The funding payments data. |