module Watchcow::ApiSymbol

Public Class Methods

contract_list() click to toggle source
# File lib/watchcow/api_symbol.rb, line 4
def contract_list
  %w{btc eth link dot eos trx ada ltc bch xrp bsv etc fil}
end
current_types() click to toggle source
# File lib/watchcow/api_symbol.rb, line 14
def current_types
  Watchcow::ContractInfo.current_contracts
end
dm_types() click to toggle source
# File lib/watchcow/api_symbol.rb, line 8
def dm_types
  data = mapping.select do |k, v|
    v.in? current_types
  end.keys
end
mapping() click to toggle source
# File lib/watchcow/api_symbol.rb, line 18
def mapping
  {
    'cq' => 'quarter',
    'nq' => 'next_quarter',
    'nw' => 'next_week',
    'cw' => 'this_week'
  }
end