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.