HomeDocumentationAPI Reference
Log In
API Reference

Get Subaccount Value History

Method Name

private/get_subaccount_value_history

Get the value history of a subaccount
Required minimum session key permission level is read_only

Parameters

end_timestamp  integer required
End timestamp

period  integer required
Period

start_timestamp  integer required
Start timestamp

subaccount_id  integer required
Subaccount_id

Response

id  string or integer required

result  object required

result. subaccount_id  integer required
Subaccount_id

result. subaccount_value_history  array of objects required
Subaccount value history

result.subaccount_value_history[]. subaccount_value  string required
Total mark-to-market value of all positions and collaterals

result.subaccount_value_history[]. timestamp  integer required
Timestamp of when the subaccount value was recorded into the database

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}