Get open limit order
Get open limit order

Avantis · Reads onchain state

Reads one open Avantis limit or stop limit order as TradingStorage holds it at the block the plug runs. TradingStorage's getOpenLimitOrder returns the collateral the order escrows, its side, its leverage, its take profit and stop loss, its trigger price, its slippage and the block it was placed or last updated at. It reverts once the order has executed or been cancelled. Reach for it to decide whether to move an order's trigger, or to read an order's terms into a later step.