count() returns the number of elements in a list — for example, the number of asks in the order book.
Learn how to use the Count function in Origami Tech to count data entries, signal events, or conditions within your automated strategies.
count
Returns the number of list elements
count([orderbook().ask]) → 50
count([orderbook().ask])
50
count([ask.price for ask in orderbook().ask if ask.price < 1200]) → 23
count([ask.price for ask in orderbook().ask if ask.price < 1200])
23