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.crConstructors
-
.new(pull : JSON::PullParser)
Typical server response { "filterType":"LOT_SIZE", "minQty":"0.00100000", "maxQty":"100000.00000000", "stepSize":"0.00100000" }
Instance Method Summary
- #decimals
- #max_quantity : Float64
- #min_quantity : Float64
- #step_size : Float64
- #valid?(value : Float64)
- #validate(value : Float64)
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
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