Module: Luno::Markets

Included in:
Client
Defined in:
lib/luno/markets.rb

Instance Method Summary collapse

Instance Method Details

#list_ticker_for_pair(pair:) ⇒ Object



8
9
10
11
# File 'lib/luno/markets.rb', line 8

def list_ticker_for_pair(pair:)
  path = 'ticker'
  authorise_and_send(http_method: :get, path: path, params: { pair: pair })
end

#list_tickets_for_all_pairsObject



13
14
15
16
# File 'lib/luno/markets.rb', line 13

def list_tickets_for_all_pairs
  path = 'tickers'
  authorise_and_send(http_method: :get, path: path)
end

#market_top_100_bids(pair: 'XBTZAR') ⇒ Object



3
4
5
6
# File 'lib/luno/markets.rb', line 3

def market_top_100_bids(pair: 'XBTZAR')
  path = "orderbook_top?pair=#{pair}"
  unauthorised_and_send(http_method: :get, path: path)
end