Module: MtGox
- Defined in:
- lib/mtgox/value.rb,
lib/mtgox.rb,
lib/mtgox/ask.rb,
lib/mtgox/bid.rb,
lib/mtgox/buy.rb,
lib/mtgox/lag.rb,
lib/mtgox/sell.rb,
lib/mtgox/error.rb,
lib/mtgox/offer.rb,
lib/mtgox/order.rb,
lib/mtgox/trade.rb,
lib/mtgox/client.rb,
lib/mtgox/ticker.rb,
lib/mtgox/balance.rb,
lib/mtgox/max_bid.rb,
lib/mtgox/min_ask.rb,
lib/mtgox/request.rb,
lib/mtgox/version.rb,
lib/mtgox/connection.rb,
lib/mtgox/order_result.rb,
lib/mtgox/price_ticker.rb,
lib/mtgox/configuration.rb,
lib/mtgox/response/parse_json.rb
Overview
In the "old API", currency- and amount-values (price, volume,...) were given as float. These values are likely being deprecated and replaced by fields of the same name with "_int" as suffix. These are fixed-decimal, so you have to move the decimal point yourself (divide). The exponent differs based on the kind of the value.
Defined Under Namespace
Modules: Configuration, Connection, PriceTicker, Request, Response, Value Classes: Ask, Balance, Bid, Buy, Client, Error, FilthyRichError, Lag, MaxBid, MinAsk, MysqlError, Offer, Order, OrderNotFoundError, OrderResult, Sell, Ticker, Trade, UnauthorizedError, Version
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to MtGox::Client.
-
.new ⇒ MtGox::Client
Alias for MtGox::Client.new.
- .respond_to?(method, include_private = false) ⇒ Boolean
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Delegate to MtGox::Client
14 15 16 17 |
# File 'lib/mtgox.rb', line 14 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new ⇒ MtGox::Client
Alias for MtGox::Client.new
9 10 11 |
# File 'lib/mtgox.rb', line 9 def new @client ||= MtGox::Client.new end |
.respond_to?(method, include_private = false) ⇒ Boolean
19 20 21 |
# File 'lib/mtgox.rb', line 19 def respond_to?(method, include_private=false) new.respond_to?(method, include_private) || super(method, include_private) end |