Binance REST rate-limit header parsing and local observation state.
Binance REST rate-limit header parsing and local observation state.
(create-tracker)(create-tracker clock)Creates a local rate-limit tracker. The optional clock returns milliseconds.
Creates a local rate-limit tracker. The optional clock returns milliseconds.
(normalize-headers headers)Returns a lowercase string-keyed header map with vector string values.
Returns a lowercase string-keyed header map with vector string values.
(parse-headers headers)Extracts observed request weight, order count, and Retry-After seconds.
Extracts observed request weight, order count, and Retry-After seconds.
(record-attempt! tracker request)Records one actual wire attempt and its endpoint weight estimate.
Records one actual wire attempt and its endpoint weight estimate.
(record-response! tracker headers)Merges authoritative Binance response-header observations into the tracker.
Merges authoritative Binance response-header observations into the tracker.
(snapshot tracker)Returns the tracker's immutable, non-sensitive current state.
Returns the tracker's immutable, non-sensitive current state.
(tracker? value)Returns true for trackers created by this namespace.
Returns true for trackers created by this namespace.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |