class Binance::Responses::MinNotionalFilter

Overview

Typical Server Response:

{
  "filterType":"MIN_NOTIONAL",
  "minNotional":"0.00100000",
  "applyToMarket":true,
  "avgPriceMins":5
}

The MIN_NOTIONAL filter defines the minimum notional value allowed for an order on a symbol. An order's notional value is the price * quantity. applyToMarket determines whether or not the MIN_NOTIONAL filter will also be applied to MARKET orders. Since MARKET orders have no price, the average price is used over the last avgPriceMins minutes. avgPriceMins is the number of minutes the average price is calculated over. 0 means the last price is used.

Defined in:

binance/client/rest/responses/min_notional_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":"MIN_NOTIONAL",
  "minNotional":"0.00100000",
  "applyToMarket":true,
  "avgPriceMins":5
}

The MIN_NOTIONAL filter defines the minimum notional value allowed for an order on a symbol. An order's notional value is the price * quantity. applyToMarket determines whether or not the MIN_NOTIONAL filter will also be applied to MARKET orders. Since MARKET orders have no price, the average price is used over the last avgPriceMins minutes. avgPriceMins is the number of minutes the average price is calculated over. 0 means the last price is used.


Instance Method Detail

def apply_to_market : Bool #

def avg_price_mins : Int32 #

def min_notional : Float64 #

def valid?(value : Float64) #