BinanceElixir.RateLimit (binance_elixir v0.2.1)

Copy Markdown View Source

Shared, supervised observation of Binance REST rate-limit headers.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

record_attempt(server, weight \\ 0)

@spec record_attempt(GenServer.server(), non_neg_integer()) :: :ok

record_response(server, headers)

@spec record_response(GenServer.server(), map() | [{String.t(), String.t()}]) :: :ok

snapshot(server)

@spec snapshot(GenServer.server()) :: map()

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()