Class: Bitfinex::Client
- Inherits:
-
Object
- Object
- Bitfinex::Client
- Defined in:
- lib/bitfinex/client.rb
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Funding
#funding_cancel_all_offers, #funding_cancel_offer, #funding_create_offer, #funding_credit, #funding_credit_all, #funding_info, #funding_loans, #funding_new_offer, #funding_offers, #funding_offers_all
Methods included from Wallet
#available_currency, #interest_history, #ledgers, #movements, #permissions, #user_info, #wallets, #wallets_history, #withdraw
Constructor Details
#initialize(args = {}) ⇒ Client
Returns a new instance of Client.
9 10 11 12 13 |
# File 'lib/bitfinex/client.rb', line 9 def initialize(args = {}) @api_endpoint = args[:url] ? "#{args[:url]}/v2/" : "https://api.bitfinex.com/v2/" @api_key = args[:api_key] @api_secret = args[:api_secret] end |