PositionEventType

Documentation for eth_defi.hyperliquid.position.PositionEventType Python class.

class PositionEventType

Bases: enum.Enum

Type of position event.

Attributes summary

open

Opening a new position from flat

close

Closing entire position to flat

increase

Increasing position size (same direction)

decrease

Decreasing position size (same direction)

open = 'open'

Opening a new position from flat

close = 'close'

Closing entire position to flat

increase = 'increase'

Increasing position size (same direction)

decrease = 'decrease'

Decreasing position size (same direction)