Sha256: ffb46f9e857f4ade038c397c34dcc9460d089835c7330bdbb14653a5c853e50b
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
# frozen_string_literal: true module Cotcube module Bardata def provide(symbol: nil, id: nil, contract:, config: init, date: Date.today - 1, type: nil, fill: :none) case type when :eod, :eods provide_eods(symbol: symbol, id: id, contract: contract, date: date) when :quarters print :quarters when :hours print :hours when :daily, :dailies print :dailies else puts "WARNING: Using provide without :type is for legacy support pointing to .provide_daily".light_yellow provide_daily(symbol: symbol, id: id, contract: contract, config: config) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cotcube-bardata-0.1.3 | lib/cotcube-bardata/provide.rb |
cotcube-bardata-0.1.2 | lib/cotcube-bardata/provide.rb |