class Bitcoinica::Quote
Public Class Methods
exchange_style(currency_pair = 'BTCUSD')
click to toggle source
# File lib/bitcoinica/quote.rb, line 14 def exchange_style(currency_pair = 'BTCUSD') find(:all, from: "#{self.site}/quotes/#{currency_pair}/compatible.json") end
history(currency_pair = 'BTCUSD', n = 100)
click to toggle source
# File lib/bitcoinica/quote.rb, line 10 def history(currency_pair = 'BTCUSD', n = 100) find(:all, from: "#{self.site}/quotes/#{currency_pair}/history.json", params: { n: n }) end
ticker(currency_pair = 'BTCUSD')
click to toggle source
# File lib/bitcoinica/quote.rb, line 6 def ticker(currency_pair = 'BTCUSD') find(currency_pair) end