Get open limit orders count
Get open limit orders count

Avantis · Reads onchain state

Reads how many limit and stop limit orders a trader has open on an Avantis pair. TradingStorage's openLimitOrdersCount falls when a keeper triggers an order into a trade and when the trader cancels one. Reach for it to tell whether a resting order has triggered, or to cap the orders a strategy keeps in the book.