Count

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