Example #1
0
        public static ApiGetRequest CreateGetDailyRequest(TickerDayParameter parameter, bool useOndemand)
        {
            var endpoint = useOndemand ?
                           BuffettCodeApiV3Config.ENDPOINT_ONDEMAND_DAILY : BuffettCodeApiV3Config.ENDPOINT_DAILY;

            return(new ApiGetRequest(endpoint, parameter.ToApiV3Parameters()));
        }
        public JObject GetDaily(TickerDayParameter parameter, bool useOndemand, bool isConfigureAwait = true, bool useCache = true)
        {
            var request  = BuffettCodeApiV3RequestCreator.CreateGetDailyRequest(parameter, useOndemand);
            var response = apiClientCore.Get(request, isConfigureAwait, useCache);

            return(ApiGetResponseBodyParser.Parse(response));
        }