Class: BitflyerApi::Client

Inherits:
Object
  • Object
show all
Includes:
Methods::Private::API, Methods::Private::AccountStatement, Methods::Private::Assets, Methods::Private::Trade, Methods::Public
Defined in:
lib/bitflyer_api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Methods::Private::Trade

#my_cancel_all_child_orders, #my_cancel_child_order, #my_cancel_parent_order, #my_child_orders, #my_collateral_history, #my_executions, #my_parent_order, #my_parent_orders, #my_positions, #my_send_child_order, #my_send_parent_order, #my_trading_commission

Methods included from Methods::Private::Assets

#my_balance, #my_collateral, #my_collateral_accounts

Methods included from Methods::Private::API

#my_permissions

Methods included from Methods::Private::AccountStatement

#my_addresses, #my_bank_accounts, #my_coin_ins, #my_coin_outs, #my_deposits, #my_withdraw, #my_withdrawals

Methods included from Methods::Public

#board, #board_state, #chat, #executions, #health, #market, #ticker

Constructor Details

#initialize(key, secret) ⇒ Client

Returns a new instance of Client.



18
19
20
# File 'lib/bitflyer_api/client.rb', line 18

def initialize(key, secret)
  @conn = BitflyerApi::HTTP::Connection.new(key, secret)
end

Instance Attribute Details

#connObject

Returns the value of attribute conn.



16
17
18
# File 'lib/bitflyer_api/client.rb', line 16

def conn
  @conn
end