class Binance::Responses::MarketLotSizeFilter

Overview

Typical server response

{
  "filterType":"MARKET_LOT_SIZE",
  "minQty":"0.00000000",
  "maxQty":"63100.00000000",
  "stepSize":"0.00000000"
}

The MARKET_LOT_SIZE filter defines the quantity (aka "lots" in auction terms) rules for MARKET orders on a symbol. There are 3 parts:

minQty defines the minimum quantity allowed. maxQty defines the maximum quantity allowed. stepSize defines the intervals that a quantity can be increased/decreased by. In order to pass the market lot size, the following must be true for quantity:

quantity >= minQty quantity <= maxQty (quantity-minQty) % stepSize == 0

Defined in:

binance/client/rest/responses/market_lot_size_filter.cr

Constructors

Instance Method Summary

Instance methods inherited from class Binance::Responses::ExchangeFilter

filter_type : String filter_type

Constructor methods inherited from class Binance::Responses::ExchangeFilter

new(pull : JSON::PullParser)
new
new

Class methods inherited from class Binance::Responses::ExchangeFilter

from_array(string : String) from_array

Constructor Detail

def self.new(pull : JSON::PullParser) #

Typical server response

{
  "filterType":"MARKET_LOT_SIZE",
  "minQty":"0.00000000",
  "maxQty":"63100.00000000",
  "stepSize":"0.00000000"
}

The MARKET_LOT_SIZE filter defines the quantity (aka "lots" in auction terms) rules for MARKET orders on a symbol. There are 3 parts:

minQty defines the minimum quantity allowed. maxQty defines the maximum quantity allowed. stepSize defines the intervals that a quantity can be increased/decreased by. In order to pass the market lot size, the following must be true for quantity:

quantity >= minQty quantity <= maxQty (quantity-minQty) % stepSize == 0


Instance Method Detail

def decimals #

def max_quantity : Float64 #

def min_quantity : Float64 #

def step_size : Float64 #

def valid?(value : Float64) #

def validate(value : Float64) #