Liking cljdoc? Tell your friends :D

binance-clj.time

Timestamp units, receive-window rules, and server-offset-aware clocks.

Timestamp units, receive-window rules, and server-offset-aware clocks.
raw docstring

calculate-offset-msclj

(calculate-offset-ms server-time-ms request-start-ms response-end-ms)

Estimates server offset from the midpoint of one request/response interval.

Estimates server offset from the midpoint of one request/response interval.
sourceraw docstring

current-timestampclj

(current-timestamp clock unit)

Reads a millisecond clock and returns a Binance timestamp in the chosen unit.

Reads a millisecond clock and returns a Binance timestamp in the chosen unit.
sourceraw docstring

default-recv-windowclj

Binance's default receive window in milliseconds.

Binance's default receive window in milliseconds.
sourceraw docstring

max-recv-windowclj

Binance's maximum receive window in milliseconds.

Binance's maximum receive window in milliseconds.
sourceraw docstring

normalize-recv-windowclj

(normalize-recv-window value)

Validates Binance's millisecond recvWindow, including microsecond precision.

Validates Binance's millisecond recvWindow, including microsecond precision.
sourceraw docstring

synchronized-clockclj

(synchronized-clock base-clock)

Creates an offset-aware clock boundary.

The returned map contains :now, :offset-ms, and :synchronize! functions. Callers inject :now into client config and update the offset after /time.

Creates an offset-aware clock boundary.

The returned map contains `:now`, `:offset-ms`, and `:synchronize!` functions.
Callers inject `:now` into client config and update the offset after `/time`.
sourceraw docstring

timestamp-unitsclj

Timestamp units accepted by Binance Spot signed requests.

Timestamp units accepted by Binance Spot signed requests.
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