Class: BinanceClient::Market
- Defined in:
- lib/binance_client/models/market.rb
Constant Summary collapse
- METHODS =
%i[ symbol status base_asset base_asset_precision quote_asset quote_precision quote_asset_precision base_commission_precision quote_commission_precision order_types iceberg_allowed oco_allowed quote_order_qty_market_allowed is_spot_trading_allowed is_margin_trading_allowed ].freeze
- BOOL_MAP =
{ iceberg_allowed: :iceberg_allowed?, oco_allowed: :oco_allowed?, quote_order_qty_market_allowed: :quote_order_qty_market_allowed?, is_spot_trading_allowed: :spot_trading_allowed?, is_margin_trading_allowed: :margin_trading_allowed?, }.freeze
Instance Attribute Summary collapse
-
#raw_hash ⇒ Object
Returns the value of attribute raw_hash.
Instance Method Summary collapse
- #filters ⇒ Object
-
#initialize(**kwargs) ⇒ Market
constructor
A new instance of Market.
Constructor Details
#initialize(**kwargs) ⇒ Market
Returns a new instance of Market.
33 34 35 36 37 |
# File 'lib/binance_client/models/market.rb', line 33 def initialize(**kwargs) kwargs.each do |key, value| self.send("#{key}=", value) end end |
Instance Attribute Details
#raw_hash ⇒ Object
Returns the value of attribute raw_hash.
30 31 32 |
# File 'lib/binance_client/models/market.rb', line 30 def raw_hash @raw_hash end |
Instance Method Details
#filters ⇒ Object
51 52 53 54 55 |
# File 'lib/binance_client/models/market.rb', line 51 def filters @filters ||= raw_hash["filters"].map do |filter_hash| MarketFilter.new(raw_hash: filter_hash) end end |