Module utils

Module utils 

Source

Functionsยง

clamp_price
Clamp a price to be within valid bounds.
is_valid_price
Check if a price is valid for the given tick size.
mid_price
Calculate mid price from best bid and ask.
round_to_tick_size
Round a price to the nearest valid tick increment.
spread_bps
Calculate spread in basis points.