hstove / rbtc_arbitrage

A gem for automating arbitrage between Bitcoin exchanges.
MIT License
274 stars 94 forks source link

price': uninitialized constant RbtcArbitrage::Clients::BitstampClient::Bitstamp (NameError) #3

Closed JsonSam closed 10 years ago

JsonSam commented 10 years ago

@hstove - When I run rbtc I am getting the following error

    $ rbtc
    I, [MAR 24 2014 10:29:15 AM +0530#5206]  INFO -- : Fetching exchange rates

/home/user/.rvm/gems/ruby-2.0.0-p353@ui/gems/rbtc_arbitrage-2.0.1/lib/rbtc_arbitrage/clients/bitstamp_client.rb:31:in price': uninitialized constant RbtcArbitrage::Clients::BitstampClient::Bitstamp (NameError) from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/gems/rbtc_arbitrage-2.0.1/lib/rbtc_arbitrage/trader.rb:82:infetch_prices' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/gems/rbtc_arbitrage-2.0.1/lib/rbtc_arbitrage/trader.rb:35:in trade' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/gems/rbtc_arbitrage-2.0.1/lib/rbtc_arbitrage/cli.rb:14:intrade' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/gems/thor-0.19.0/lib/thor/command.rb:27:in run' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/gems/thor-0.19.0/lib/thor/invocation.rb:126:ininvoke_command' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/gems/thor-0.19.0/lib/thor.rb:359:in dispatch' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/gems/thor-0.19.0/lib/thor/base.rb:440:instart' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/gems/rbtc_arbitrage-2.0.1/bin/rbtc:5:in <top (required)>' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/bin/rbtc:23:inload' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/bin/rbtc:23:in <main>' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/bin/ruby_executable_hooks:15:ineval' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ui/bin/ruby_executable_hooks:15:in `

'

I have the following in my Gemfile and bundle install Gemfile gem 'rbtc_arbitrage', '~> 2.0.1'

hstove commented 10 years ago

I just pushed version 2.0.2 which may help with this, but no promises. Thanks for reporting!

On Mar 23, 2014, at 10:08 PM, JeffersonSampaul notifications@github.com wrote:

@hstove - When I run rbtc I am getting the following error

$ rbtc I, [MAR 24 2014 10:29:15 AM +0530#5206] INFO -- : Fetching exchange rates /home/user/.rvm/gems/ruby-2.0.0-p353@rxai/gems/rbtc_arbitrage-2.0.1/lib/rbtc_arbitrage/clients/bitstamp_client.rb:31:in price': uninitialized constant RbtcArbitrage::Clients::BitstampClient::Bitstamp (NameError) from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/gems/rbtc_arbitrage-2.0.1/lib/rbtc_arbitrage/trader.rb:82:infetch_prices' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/gems/rbtc_arbitrage-2.0.1/lib/rbtc_arbitrage/trader.rb:35:in trade' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/gems/rbtc_arbitrage-2.0.1/lib/rbtc_arbitrage/cli.rb:14:intrade' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/gems/thor-0.19.0/lib/thor/command.rb:27:in run' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/gems/thor-0.19.0/lib/thor/invocation.rb:126:ininvoke_command' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/gems/thor-0.19.0/lib/thor.rb:359:in dispatch' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/gems/thor-0.19.0/lib/thor/base.rb:440:instart' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/gems/rbtc_arbitrage-2.0.1/bin/rbtc:5:in <top (required)>' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/bin/rbtc:23:inload' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/bin/rbtc:23:in

' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/bin/ruby_executable_hooks:15:ineval' from /home/jefferson/.rvm/gems/ruby-2.0.0-p353@ybench-ui/bin/ruby_executable_hooks:15:in `'

I have the following in my Gemfile and bundle install Gemfile gem 'rbtc_arbitrage', '~> 2.0.1'

— Reply to this email directly or view it on GitHub.