HomeDocumentationAPI Reference
Log In

Get Funding History

Method Name

private/get_funding_history

Get subaccount funding history.

DB: read replica

Parameters

subaccount_id integer required
Subaccount id
end_timestamp integer
End timestamp of the event history (default current time)
instrument_name string
Instrument name (returns history for all perpetuals if not provided)
start_timestamp integer
Start timestamp of the event history (default 0)

Response

id string or integer required
result object required
result.events array of objects required
List of funding payments
result.events[].funding string required
Dollar funding paid (if negative) or received (if positive) by the subaccount
result.events[].instrument_name string required
Instrument name
result.events[].timestamp integer required
Timestamp of the funding payment (in ms since UNIX epoch)

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}