Get position
Get position

SynFutures · 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.