-
Notifications
You must be signed in to change notification settings - Fork 6
Ticker method and market data methods are not correctly responding #1
Comments
Just pushed version 0.0.4 fixing these issues. Do notice there is no transactions method, it was a problem with the documentation. The actual method is called 'trades'. |
undefined method `to_d' for nil:NilClass |
Hi pinklin, thanks for reporting this, we'll check it out as soon as cheers On Wed, Mar 11, 2015 at 7:31 AM, pinklin notifications@github.com wrote:
|
Hi pinklin, Could you confirm the issue persists? I could not reproduce it, it may have On Wed, Mar 11, 2015 at 8:34 PM, nubis bruno yo@nubis.im wrote:
|
Checked it again, the same error occurs for the method. |
Still can't reproduce, You could add a debugger or just log the raw response retrieved in If the error persists please provide a full traceback. hope that helps. On Fri, Mar 13, 2015 at 1:19 AM, pinklin notifications@github.com wrote:
|
I tried the public methods(Ticker, order book and market data methods) from my console. But I got correct response for only order book method. Other two methods does not respond properly.
2.1.3 :001 > Itbit::XBTUSDMarketData.ticker
TypeError: no implicit conversion of nil into String
from /home/user/.rvm/gems/ruby-2.1.3@service/gems/itbit-0.0.3/lib/itbit/api.rb:29:in
digest' from /home/user/.rvm/gems/ruby-2.1.3@service/gems/itbit-0.0.3/lib/itbit/api.rb:29:in
sign_message'from /home/user/.rvm/gems/ruby-2.1.3@service/gems/itbit-0.0.3/lib/itbit/api.rb:14:in `request'
2.1.3 :003 > Itbit::XBTUSDMarketData.transactions
NoMethodError: undefined method
transactions' for Itbit::XBTUSDMarketData:Class from (irb):3 from /home/user/.rvm/gems/ruby-2.1.3@service/gems/railties-4.1.8/lib/rails/commands/console.rb:90:in
start'from /home/user/.rvm/gems/ruby-2.1.3@service/gems/railties-4.1.8/lib/rails/commands/console.rb:9:in `start'
But the order book method is working
2.1.3 :002 > Itbit::XBTUSDMarketData.orders
=> {:bids=>[[#BigDecimal:58f0bd8,'0.36782E3',18(18), #BigDecimal:58f0b88,'0.27176E1',18(18)], [#BigDecimal:58f0ac0,'0.3674525E3',18(18), #BigDecimal:58f0a48,'0.15E1',18(18)], [#BigDecimal:58f09a8,'0.36405E3',18(18), #BigDecimal:58f0908,'0.25E2',9(18)], [#BigDecimal:58f07c8,'0.363897E3',18(18), #BigDecimal:58f0750,'0.1E-1',9(18)], [#BigDecimal:58f0688,'0.36301E3',18(18), #BigDecimal:58f0638,'0.5E2',9(18)], [#BigDecimal:58f05c0,'0.35735E3',18(18), #
The text was updated successfully, but these errors were encountered: