Skip to main content

Module limits

Module limits 

Source
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.