Module: MtGox
- Extended by:
- Configuration
- Defined in:
- lib/mtgox/value.rb,
lib/mtgox.rb,
lib/mtgox/ask.rb,
lib/mtgox/bid.rb,
lib/mtgox/buy.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/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, MaxBid, MinAsk, MysqlError, Offer, Order, Sell, Ticker, Trade, UnauthorizedError, Version
Constant Summary
Constants included from Configuration
Configuration::DEFAULT_COMMISSION, Configuration::VALID_OPTIONS_KEYS
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
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Delegate to MtGox::Client
16 17 18 19 |
# File 'lib/mtgox.rb', line 16 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
11 12 13 |
# File 'lib/mtgox.rb', line 11 def new MtGox::Client.new end |
.respond_to?(method, include_private = false) ⇒ Boolean
21 22 23 |
# File 'lib/mtgox.rb', line 21 def respond_to?(method, include_private=false) new.respond_to?(method, include_private) || super(method, include_private) end |