Liking cljdoc? Tell your friends :D
Clojure only.

binance-clj.filters

Pure local preflight checks for the supported V1 Spot order subset.

Pure local preflight checks for the supported V1 Spot order subset.
raw docstring

validate-orderclj

(validate-order symbol-info order)
(validate-order symbol-info order {:keys [reference-price]})

Returns a normalized V1 MARKET/LIMIT/STOP_LOSS order or throws a local validation error.

symbol-info is one item from exchangeInfo :symbols; known filter numbers may be raw strings or normalized BigDecimals. MARKET orders using base :quantity require :reference-price when an applicable notional filter exists. That rule also applies to STOP_LOSS because its trigger executes a MARKET order. No value is rounded or adjusted.

Returns a normalized V1 MARKET/LIMIT/STOP_LOSS order or throws a local validation error.

`symbol-info` is one item from exchangeInfo `:symbols`; known filter numbers may
be raw strings or normalized BigDecimals. MARKET orders using base `:quantity`
require `:reference-price` when an applicable notional filter exists. That
rule also applies to STOP_LOSS because its trigger executes a MARKET order.
No value is rounded or adjusted.
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