Method Name
private/get_liquidator_history
private/get_liquidator_history
Returns a paginated history of auctions that the subaccount has participated in as a liquidator.
Required minimum session key permission level is read_only
Parameters
subaccount_id
integer
required
Subaccount ID |
end_timestamp
integer
End timestamp of the event history (default current time) |
page
integer
Page number of results to return (default 1, returns last if above num_pages ) |
page_size
integer
Number of results per page (default 100, max 1000) |
start_timestamp
integer
Start timestamp of the event history (default 0) |
Response
id
string or integer
required
|
result
object
required
|
result.bids
array of objects
required
List of auction bid events |
result.bids[].cash_received
string
required
Cash received by the subaccount for the liquidation. For the liquidated accounts this is the amount the liquidator paid to buy out the percentage of the portfolio. For the liquidator account, this is the amount they received from the security module (if positive) or the amount they paid for the bid (if negative) |
result.bids[].discount_pnl
string
required
Realized PnL due to liquidating or being liquidated at a discount to mark portfolio value |
result.bids[].percent_liquidated
string
required
Percent of the subaccount that was liquidated |
result.bids[].realized_pnl
string
required
Realized PnL of the auction bid, assuming positions are closed at mark price at the time of the liquidation |
result.bids[].realized_pnl_excl_fees
string
required
Realized PnL of the auction bid, excluding fees from total cost basis, assuming positions are closed at mark price at the time of the liquidation |
result.bids[].timestamp
integer
required
Timestamp of the bid (in ms since UNIX epoch) |
result.bids[].tx_hash
string
required
Hash of the bid transaction |
result.bids[].amounts_liquidated
object
required
Amounts of each asset that were closed |
result.bids[].positions_realized_pnl
object
required
Realized PnL of each position that was closed |
result.bids[].positions_realized_pnl_excl_fees
object
required
Realized PnL of each position that was closed, excluding fees from total cost basis |
result.pagination
object
required
Pagination info |
result.pagination.count
integer
required
Total number of items, across all pages |
result.pagination.num_pages
integer
required
Number of pages |
Example
{request_example_shell}
{request_example_javascript}
{request_example_python}
The above command returns JSON structured like this:
{response_example_json}