Exemple #1
0
        /// <summary>
        /// This API returns daily time series (date, daily open, daily high, daily low, daily close, daily volume, daily adjusted close, and split/dividend events) of the equity specified, covering up to 20 years of historical data.
        ///
        /// The most recent data point is the cumulative prices and volume information of the current trading day, updated realtime.
        /// </summary>
        public async Task <TimeSeriesDailyAdjusted> TimeSeriesDailyAdjusted(string symbol, OutputType output = OutputType.Latest100)
        {
            var function = ApiFunction.TIME_SERIES_DAILY_ADJUSTED;

            return(await ApiClient.SendGetAsync <TimeSeriesDailyAdjusted>(BuildUri(function), new Dictionary <string, string>
            {
                { "symbol", symbol },
                { "outputsize", output.GetDescription() }
            }));
        }
Exemple #2
0
        /// <summary>
        /// This API returns intraday time series (timestamp, open, high, low, close, volume) of the equity specified, updated realtime.
        /// </summary>
        public async Task <TimeSeriesIntraday> TimeSeriesIntraday(string symbol, IntradayInterval interval, OutputType output = OutputType.Latest100)
        {
            var function = ApiFunction.TIME_SERIES_INTRADAY;

            return(await ApiClient.SendGetAsync <TimeSeriesIntraday>(BuildUri(function), new Dictionary <string, string>
            {
                { "symbol", symbol },
                { "interval", interval.GetDescription() },
                { "outputsize", output.GetDescription() }
            }));
        }