bitfinexcom / bitfinex-api-rb

BITFINEX Ruby trading API - Bitcoin, Litecoin, and Ether exchange
https://www.bitfinex.com/
MIT License
81 stars 94 forks source link

LoadError: cannot load such file -- bitfinex-api-rb #35

Closed sha-265 closed 7 years ago

sha-265 commented 7 years ago

Hi,

I installed bitfinex-api-rb with bundle successfully, after adding it to Gemsfile. Now I'm trying to load the the bitfinex-api-rb into my application in an initializer but get error when trying to start application:

LoadError: cannot load such file -- bitfinex-api-rb

This is the initializer i'm using:

require 'bitfinex-api-rb'

Bitfinex::Client.configure do |config|
  config.key = GLOBAL[:bitfinex_key]
  config.secret = GLOBAL[:bitfinex_secret]
  config.websocket_api_endpoint = "wss://api.bitfinex.com/ws"
end

Any suggestion why?

Thanks.

BeastOfBodmin commented 7 years ago

You need to use

require 'bitfinex'

which is not clear.

sha-265 commented 7 years ago

Yes, I already figured it out. Thanks anyway.