# 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