Module position

Module position 

Source
Expand description

Data structures and events for positions

Modules§

events
Events

Structs§

ClosePositionInstructions
Instructions to close a position.
ClosedPosition
Information on a closed position
CollateralAndUsd
Collateral and USD which will always be non-negative.
LiquidationMargin
Liquidation margin for a position, broken down by component.
Position
The position itself
PositionId
PositionId
PositionQueryResponse
Query response representing current state of a position
PositionsResp
Response from crate::contracts::market::entry::QueryMsg::Positions
SignedCollateralAndUsd
Collateral and USD which can become negative

Enums§

LiquidationReason
Reason why a position was liquidated
MaybeClosedPosition
Outcome of operations which might require closing a position.
PositionCloseReason
Reason the position was closed
PositionOrPendingClose
Query response intermediate value on a position.