AccountTradeHistory
Documentation for eth_defi.hyperliquid.trade_history.AccountTradeHistory Python class.
- class AccountTradeHistory
Bases:
objectComplete trade history snapshot for a Hyperliquid account.
Combines current open positions, historical closed trades, open trades, all fills, and funding payments into a single result.
Attributes summary
addresssnapshot_timeopen_positionsclosed_tradesopen_tradesfillsfunding_paymentsmargin_summarystart_timeend_timefills_truncatedMethods summary
__init__(address, snapshot_time, ...)- __init__(address, snapshot_time, open_positions, closed_trades, open_trades, fills, funding_payments, margin_summary, start_time, end_time, fills_truncated)
- Parameters
address (eth_typing.evm.HexAddress) –
snapshot_time (datetime.datetime) –
open_positions (list[eth_defi.hyperliquid.api.AssetPosition]) –
closed_trades (list[eth_defi.hyperliquid.trade_history.RoundTripTrade]) –
open_trades (list[eth_defi.hyperliquid.trade_history.RoundTripTrade]) –
fills (list[eth_defi.hyperliquid.position.Fill]) –
funding_payments (list[eth_defi.hyperliquid.trade_history.FundingPayment]) –
margin_summary (eth_defi.hyperliquid.api.MarginSummary) –
start_time (datetime.datetime) –
end_time (datetime.datetime) –
fills_truncated (bool) –
- Return type
None