Timestamp units, receive-window rules, and server-offset-aware clocks.
Timestamp units, receive-window rules, and server-offset-aware clocks.
(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.
(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.
Binance's default receive window in milliseconds.
Binance's default receive window in milliseconds.
Binance's maximum receive window in milliseconds.
Binance's maximum receive window in milliseconds.
(normalize-recv-window value)Validates Binance's millisecond recvWindow, including microsecond precision.
Validates Binance's millisecond recvWindow, including microsecond precision.
(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`.
Timestamp units accepted by Binance Spot signed requests.
Timestamp units accepted by Binance Spot signed requests.
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 |