BinanceElixir.Spot.Filters (binance_elixir v0.2.1)

Copy Markdown View Source

Exact-decimal local preflight for Spot LIMIT, MARKET, and STOP_LOSS orders.

Summary

Functions

Parses a plain decimal string or integer without accepting floats or exponent notation.

Functions

decimal(value)

@spec decimal(String.t() | integer()) :: {:ok, Decimal.t()} | :error

Parses a plain decimal string or integer without accepting floats or exponent notation.

validate(symbol_info, params, opts \\ [])

@spec validate(map(), map() | keyword(), keyword()) ::
  {:ok, map()} | {:error, BinanceElixir.Error.t()}