Count

Learn how to use the Count function in Origami Tech to count data entries, signal events, or conditions within your automated strategies.

count(list[Any]) -> int

Returns the number of list elements

Example:

count([orderbook().ask])50

count([ask.price for ask in orderbook().ask if ask.price < 1200])23

Last updated