Class: Bitbot::Trader::Providers::MtGox

Inherits:
Bitbot::Trader::Provider show all
Defined in:
lib/bitbot/trader/providers/mt_gox.rb,
lib/bitbot/trader/providers/mt_gox/http_client.rb,
lib/bitbot/trader/providers/mt_gox/open_orders_parser.rb,
lib/bitbot/trader/providers/mt_gox/account_info_parser.rb,
lib/bitbot/trader/providers/mt_gox/open_orders_request.rb,
lib/bitbot/trader/providers/mt_gox/account_info_request.rb,
lib/bitbot/trader/providers/mt_gox/http_client/hmac_middleware.rb,
lib/bitbot/trader/providers/mt_gox/value_with_currency_coercer.rb

Overview

Provider for MtGox API (version 2)

Defined Under Namespace

Classes: AccountInfoParser, AccountInfoRequest, HttpClient, OpenOrderParser, OpenOrdersRequest, ValueWithCurrencyCoercer

Instance Attribute Summary

Attributes inherited from Bitbot::Trader::Provider

#client

Instance Method Summary collapse

Methods included from ApiMethods

#account, #open_orders

Constructor Details

#initialize(options, client = HttpClient.build(options)) ⇒ undefined

Initializes MtGox provider

Parameters:

  • options (Hash)
  • client (HttpClient) (defaults to: HttpClient.build(options))

Options Hash (options):

  • :key (String)
  • :secret (String)


23
24
25
# File 'lib/bitbot/trader/providers/mt_gox.rb', line 23

def initialize(options, client = HttpClient.build(options))
  @client = client
end