DataFlow

Historical market data

DataFlow takes a market-data request from the form to a downloadable CSV. The backend queues the work and retrieves the requested bars.

Open DataFlow
Interface
Next.js and TypeScript handle the request form.
Queue
Node.js and Express track requests in SQLite.
Retrieval
A node-cron job fetches market bars from Polygon.

Request scope

Assets
Stocks and ETFs
Intervals
1 minute to 1 day
History per request
Up to 2 years
Batch size
Up to 3 tickers

Exports contain timestamped price and volume bars. Available history depends on the symbol and provider.

Request setup

The form collects the symbols, dates and interval. The review screen shows those choices before the request enters the queue.

Queued processing

The API stores the request in SQLite. A background worker picks up queued jobs, while the page checks their status.

The percentage is a time estimate. Completion comes from the backend.

Market-data retrieval

The worker divides each ticker request into date ranges. It fetches those batches from Polygon before passing the bars to the formatter.

Retrieval workflow
  1. API keysUses the configured API credentials.
  2. Ticker jobsProcesses ticker tasks concurrently.
  3. Date batchesSplits each ticker’s history into date ranges.
  4. CSV outputSorts the returned bars and writes the file.

Prepare the CSV

The formatter removes duplicate timestamps and sorts the returned bars. It then writes the CSV columns and request metadata.

AAPL daily CSV sample

25 September to 1 October 2026

Selected columns
TickerTimestamp (UTC)OpenCloseVolume
AAPL2026-09-25 04:00:00336.04341.0730002507.354057
AAPL2026-09-28 04:00:00340.37338.432820848.98415
AAPL2026-09-29 04:00:00336.965329.438478037.237258
AAPL2026-09-30 04:00:00330.8333.0249988558.23475
AAPL2026-10-01 04:00:00330330.3236306346.557309

Download the result

Once processing finishes, the page provides the CSV download. Multi-ticker requests can return individual files or a ZIP bundle.

Download sample CSV
Open full-size image