Sha256: 43af2e12b635e17a963066b4fb3f273bc3e4c7f2f749973ab7fd2ce011bbc749
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/cotcube-bardata.rb' symbol = ARGV[0].nil? ? nil : ARGV[0].upcase json = ARGV.include? 'json' begin s = Cotcube::Bardata.provide_eods(threshold: 0.10, contracts_only: false, symbol: symbol, filter: :oi_part) if json p s.to_json else s.each {|x| puts x.values.to_csv} end rescue msg = { error: 503, message: "Could not processes symbol '#{symbol}'." } p msg.to_json end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cotcube-bardata-0.1.18 | bin/eod.rb |
cotcube-bardata-0.1.17 | bin/eod.rb |