Sha256: 6752fe1de121a5313069b4c205ffaad79243e6ef07b8ff24abb3ed0c5c44adec

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

require 'bigdecimal'

require_relative 'base_service'
require_relative '../redis/service'
require_relative '../trade/option/contract_service'

module EodFacade
  class Eod < ::EodFacade::Base
    class << self
      def call(symbol, params = {})
        data = make_request(url_path(symbol), params.merge(fmt: 'json'))
        Oj.load(data)
      end

      private

      def url_path(symbol)
        "/eod/#{symbol}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sensei_eod_utils-0.0.2 lib/eod_facade/eod.rb
sensei_eod_utils-0.0.1 lib/eod_facade/eod.rb
sensei_eod_utils-0.0.0 lib/eod_facade/eod.rb