Retrieve 15-Minute Interval Intraday Stock Data

The QM_GetIntradayDataFifteenMinutesDynamic function allows you to conveniently pull 15-minute interval intraday data for a given stock symbol directly into Excel. With just a simple formula, you can specify how many historical records you want and seamlessly sort the returned data to display it in ascending or descending order. This makes it easy to track price movements throughout the trading day and perform in-depth intraday analysis — all from within Excel using MarketXLS.

Why Use This Function?

  • Quickly retrieve intraday price data (in 15-minute intervals) for in-depth analysis or charting.
  • Limit the number of historical data points returned by specifying RecordCount.
  • Automatically sort data by date and time, ensuring all rows are neatly organized.
  • Ideal for traders, analysts, or anyone requiring frequent, time-based price snapshots.
  • Use it to identify short-term trends, price volatility, or to complement technical analysis tools.

How to Use in Excel

=QM_GetIntradayDataFifteenMinutesDynamic(Symbol, [RecordCount])

• Symbol: Ticker symbol of the stock (e.g., "AAPL").
• RecordCount (optional): Maximum number of records to retrieve; defaults to 0, which typically retrieves all available data.

In more advanced scenarios, the underlying code also supports an additional optional parameter allowing you to specify the sorting order as "ASC" or "DESC." By default, sorting is DESC (most recent data first).

  1. Open Excel and select a cell where you want the intraday data to begin.
  2. Type the formula as shown above, replacing Symbol with the stock ticker and RecordCount with the desired number of rows.
  3. Press Enter. MarketXLS will populate the data table below your active cell.

Parameters Explained

Parameter Description Example Values Notes
Symbol Ticker symbol whose intraday data you want "AAPL", "MSFT", "TSLA" Required. Must be a valid US stock symbol.
RecordCount Optional. Maximum number of 15-minute records to retrieve; 0 pulls all available data 10, 50, 100, 0 If RecordCount exceeds actual available rows, only the available rows are returned.

(Advanced note: A third parameter, sortingOrder, can be passed as "ASC" or "DESC" for custom sorting; the default is "DESC".)

Example Usage

Basic Examples

  1. Retrieve all available 15-minute intervals for Apple:
    =QM_GetIntradayDataFifteenMinutesDynamic("AAPL")
    • Returns a table of Apple’s intraday quotes in 15-minute increments, sorted with the latest times first.

  2. Retrieve only the 10 most recent 15-minute intervals for Microsoft:
    =QM_GetIntradayDataFifteenMinutesDynamic("MSFT", 10)
    • Returns a truncated set of 10 data rows for quick analysis.

Advanced Scenarios

  1. Using a larger RecordCount for deeper history:
    =QM_GetIntradayDataFifteenMinutesDynamic("TSLA", 100)
    • Pulls 100 rows of intraday data, useful for detailed short-term trend analysis or intraday backtesting.

  2. Sorting data in ascending order (additional hidden parameter):
    Though the default function signature does not show it, the underlying code supports a third parameter for sorting order. For instance:
    =QM_GetIntradayDataFifteenMinutesDynamic("AAPL", 20, "ASC")
    • This returns up to 20 rows of 15-minute interval data, ordered from oldest to newest.

  3. Pairing with other Excel functions:
    • Combine results with Excel’s charting tools to create real-time or dynamic intraday charts.
    • Use additional MarketXLS formulas or pivot tables on the returned data to slice and dice intraday activity.

Common Questions and Troubleshooting

• Why am I getting fewer records than I requested if I set RecordCount high?

  • The data source might not have that many 15-minute intervals available for the date range covered.

• I see “No Data Retrieved.” What happened?

  • Ensure you have a valid MarketXLS license and that your Symbol is correct. Also check your subscription settings under Data Subscriptions.

• Can I sort the data differently?

  • Yes. By default, the data is returned in descending order (“DESC”), but you can change it to “ASC” by specifying that as a third argument in advanced usage.

• Do I need any special configurations to handle older data?

  • As long as your MarketXLS subscription level supports the historical intraday feed, the function will retrieve all available intervals for that symbol within the feed’s coverage.

By leveraging QM_GetIntradayDataFifteenMinutesDynamic, you can easily analyze precise 15-minute interval data right in Excel. Track intraday price movements, volume, and more — all within your familiar spreadsheet workflow. Use RecordCount and sorting options to tailor the exact data needed for your trading strategies, short-term research, or price action studies.