usePositionStream
provides the current position details of the account, and includes some useful data calculations for showing positions, including:
usePositionStream
, you may use the
@orderly.network/perp package
. This package implements all position related calculations. See
reference.usePositionStream
returns an array, with the first item of the arry as follows:
usePositionStream
.
usePositionStream
array response:
useOrderEntry
. For more details, please see orders