class Binance::Responses::LotSizeFilter

Overview

Typical server response

{
  "filterType":"LOT_SIZE",
  "minQty":"0.00100000",
  "maxQty":"100000.00000000",
  "stepSize":"0.00100000"
}

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

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

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

Defined in:

binance/client/rest/responses/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":"LOT_SIZE",
  "minQty":"0.00100000",
  "maxQty":"100000.00000000",
  "stepSize":"0.00100000"
}

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

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

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) #