Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public static ApiGetRequest CreateGetIndicatorRequest(TickerEmptyPeriodParameter parameter)
 {
     // Indicator のみ、"ticker"を"tickers" で渡す必要があるのでここで書き換える
     return(new ApiGetRequest(BuffettCodeApiV2Config.ENDPOINT_INDICATOR, new Dictionary <string, string>()
     {
         { ApiRequestParamConfig.KeyTickers, parameter.GetTicker() }
     }));
 }
Ejemplo n.º 3
0
 public static ApiGetRequest CreateGetCompanyRequest(TickerEmptyPeriodParameter parameter)
 {
     return(new ApiGetRequest(BuffettCodeApiV2Config.ENDPOINT_COMPANY, parameter.ToApiV2Parameters()));
 }