module Cryptowatch::Markets

Constants

API_URL
ROUTES

Public Class Methods

index() click to toggle source
# File lib/cryptowatch/business/markets.rb, line 20
def self.index
  return API_URL
end
market(exchange) click to toggle source
# File lib/cryptowatch/business/markets.rb, line 24
def self.market(exchange)
  return Api::format_url(API_URL, exchange)
end
ohlc(exchange, asset) click to toggle source
# File lib/cryptowatch/business/markets.rb, line 52
def self.ohlc(exchange, asset)
  return self.market(exchange, asset, :ohlc)
end
orderbook(exchange, asset) click to toggle source
# File lib/cryptowatch/business/markets.rb, line 44
def self.orderbook(exchange, asset)
  return self.market(exchange, asset, :orderbook)
end
price(exchange, asset) click to toggle source
# File lib/cryptowatch/business/markets.rb, line 36
def self.price(exchange, asset)
  return self.market(exchange, asset, :price)
end
summary(exchange, asset) click to toggle source
# File lib/cryptowatch/business/markets.rb, line 40
def self.summary(exchange, asset)
  return self.market(exchange, asset, :summary)
end
trades(exchange, asset) click to toggle source
# File lib/cryptowatch/business/markets.rb, line 48
def self.trades(exchange, asset)
  return self.market(exchange, asset, :trades)
end