Pure local preflight checks for the supported V1 Spot order subset.
Pure local preflight checks for the supported V1 Spot order subset.
(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.
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 |