Get open limit orders count

Get open limit orders count on Avantis

Base
Base

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.

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 Avantis ยท 37