class RuBittrex::Market
Attributes
base_currency[R]
created_at[R]
min_trade[R]
notice[R]
precision[R]
prohibited_in[R]
quote_currency[R]
raw[R]
status[R]
symbol[R]
terms[R]
terms_of_service[R]
Public Class Methods
all(params = {})
click to toggle source
# File lib/ru_bittrex/market.rb, line 24 def self.all(params = {}) collection _get('markets', params) end
get(market, params = {})
click to toggle source
# File lib/ru_bittrex/market.rb, line 28 def self.get(market, params = {}) new _get("markets/#{market}", params) end
new(attrs = {})
click to toggle source
# File lib/ru_bittrex/market.rb, line 10 def initialize(attrs = {}) @symbol = attrs["symbol"] @base_currency = attrs["baseCurrencySymbol"] @quote_currency = attrs["quoteCurrencySymbol"] @min_trade = attrs["minTradeSize"] @precision = attrs["precision"] @status = attrs["status"] @created_at = extract_timestamp(attrs["createdAt"]) @notice = attrs["notice"] @prohibited_in = attrs["prohibitedIn"] @terms_of_service = attrs["associatedTermsOfService"] @raw = attrs end