class CoinRail::HTTP::Public::Client
Public Class Methods
new()
click to toggle source
# File lib/coinrail/http/public.rb, line 5 def initialize @connection = Connection.new(nil, nil) end
Public Instance Methods
last_transaction(currency = 'btc-krw')
click to toggle source
# File lib/coinrail/http/public.rb, line 15 def last_transaction(currency = 'btc-krw') @connection.get('/last/transaction', { currency: currency.to_lower }).body end
Also aliased as: executions
orderbook(currency = 'btc-krw')
click to toggle source
# File lib/coinrail/http/public.rb, line 9 def orderbook(currency = 'btc-krw') @connection.get('/public/orderbook', {currency: currency }).body end
Also aliased as: board