Module limits
Expand description
Loads limits.toml (section [bybit]) through BrokerLimits::from_toml_section.
The exchange publishes a limit per second and endpoint for each user (10 a second for placing, amending and
cancelling, 50 for the reads) and one for each IP address (600 requests in 5 seconds). The bundled values are the
published ones. One BrokerLimiter per login: give every connector of one Bybit login the same
Arc<BrokerLimiter>.
Constants§
- DEFAULT_
LIMITS_ TOML - The text of the bundled limits file
limits.toml, compiled into the crate.
Functions§
- default_
limits - The bundled Bybit limits, parsed.
- limits_
from_ toml_ path - Reads the
[bybit]section of a limits file on disk, to tune the limits without recompiling. - limits_
from_ toml_ str - Reads the
[bybit]section of a limits file given as text.