Get position

Get position on SynFutures

Base
Base

Reads onchain state

Reads a trader's position on one expiry of a SynFutures instrument on Base, at the block the plug runs. The Observer's getPosition answers at the instrument's 18-decimal precision: the margin balance, the signed size (negative is short), the entry notional and the social loss and funding indexes the position entered at. A size of zero means the trader holds no position there. Reach for it to gate a close on the position still being open, to read its entry price as the notional over the size, or to size a later trade from it.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More on SynFutures · 13