Liking cljdoc? Tell your friends :D

binance-clj.rate-limit

Binance REST rate-limit header parsing and local observation state.

Binance REST rate-limit header parsing and local observation state.
raw docstring

create-trackerclj

(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.
sourceraw docstring

normalize-headersclj

(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.
sourceraw docstring

parse-headersclj

(parse-headers headers)

Extracts observed request weight, order count, and Retry-After seconds.

Extracts observed request weight, order count, and Retry-After seconds.
sourceraw docstring

record-attempt!clj

(record-attempt! tracker request)

Records one actual wire attempt and its endpoint weight estimate.

Records one actual wire attempt and its endpoint weight estimate.
sourceraw docstring

record-response!clj

(record-response! tracker headers)

Merges authoritative Binance response-header observations into the tracker.

Merges authoritative Binance response-header observations into the tracker.
sourceraw docstring

snapshotclj

(snapshot tracker)

Returns the tracker's immutable, non-sensitive current state.

Returns the tracker's immutable, non-sensitive current state.
sourceraw docstring

tracker?clj

(tracker? value)

Returns true for trackers created by this namespace.

Returns true for trackers created by this namespace.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close