Skip to main content

Module utils

Module utils 

Source
Expand description

Helpers that are not tied to one endpoint.

  • date_format: the date-time text format of the API, for #[serde(with = ...)].
  • precision: price and quantity arithmetic in whole steps, free of binary rounding noise.
  • rate_limiter: a token-bucket limiter to stay below the broker’s request limits.

Modules§

date_format
The date-time text format of the BCS API, for use with #[serde(with = "...")].
precision
Price and quantity arithmetic in whole steps, exactly.
rate_limiter
A small token-bucket rate limiter for the broker’s request limits.