Use this query to get a summary of the latest actions per product on Vertex for a subaccount. Tracked variables (ex. net interest) are extrapolated to the timestamp or set of timestamps provided.
Rate limits
480 requests/min or 80 requests/10secs per IP address. (weight = 5)
A bytes32 sent as a hex string; includes the address and the subaccount identifier.
timestamp
number / string / array
No
Timestamp (unix epoch in seconds) can be used to only return events/actions created <= timestamp; can also provide a list of timestamps to retrieve multiple subaccount summaries (one per timestamp).
Net cumulative: the net difference in that quantity since the beginning of time. For example, if I want to compute total amount paid out in funding between two events, you can subtract the net_funding_cumulative of the larger event by the net_funding_cumulative of the smaller event.
Net unrealized: similar to net_cumulative, but for net_unrealized, we have the caveat that when the magnitude of your position decreases, the magnitude of net_unrealized decreases by the same amount.
Field name
Description
submission_idx
Used to uniquely identify the blockchain transaction that generated the event; you can use it to grab the relevant transaction in the txs section.
product_id
The id of of the product the event is associated with.
event_type
Name of the transaction type this event corresponds to.
subaccount
The subaccount associated to the event.
pre_balance
The state of your balance before the event happened.
post_balance
The state of your balance after the event happened.