public JObject GetCompany(TickerEmptyPeriodParameter parameter, bool isConfigureAwait = true, bool useCache = true) { var request = BuffettCodeApiV2RequestCreator.CreateGetCompanyRequest(parameter); var response = apiClientCore.Get(request, isConfigureAwait, useCache); return(ApiGetResponseBodyParser.Parse(response)); }
public static ApiGetRequest CreateGetIndicatorRequest(TickerEmptyPeriodParameter parameter) { // Indicator のみ、"ticker"を"tickers" で渡す必要があるのでここで書き換える return(new ApiGetRequest(BuffettCodeApiV2Config.ENDPOINT_INDICATOR, new Dictionary <string, string>() { { ApiRequestParamConfig.KeyTickers, parameter.GetTicker() } })); }
public static ApiGetRequest CreateGetCompanyRequest(TickerEmptyPeriodParameter parameter) { return(new ApiGetRequest(BuffettCodeApiV2Config.ENDPOINT_COMPANY, parameter.ToApiV2Parameters())); }