class Fcoin::EndPoint::MarketTask

Public Instance Methods

candles() click to toggle source
# File lib/fcoin/cli/endpoint/market_task.rb, line 85
def candles
  symbol = options[:symbol]
  resolution = options[:resolution]
  STDOUT.puts client.market_candles(symbol: symbol, resolution: resolution)
end
depth() click to toggle source
# File lib/fcoin/cli/endpoint/market_task.rb, line 43
def depth
  symbol = options[:symbol]
  level  = options[:level]
  STDOUT.puts client.market_depth(symbol: symbol, level: level)
end
ticker() click to toggle source
# File lib/fcoin/cli/endpoint/market_task.rb, line 21
def ticker
  symbol = options[:symbol]
  STDOUT.puts client.market_ticker(symbol: symbol)
end
trades() click to toggle source
# File lib/fcoin/cli/endpoint/market_task.rb, line 63
def trades
  symbol = options[:symbol]
  STDOUT.puts client.market_trades(symbol: symbol)
end

Private Instance Methods

client() click to toggle source
# File lib/fcoin/cli/endpoint/market_task.rb, line 93
def client
  @client = Fcoin::Client.new
end