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.
- API keysUses the configured API credentials.
- Ticker jobsProcesses ticker tasks concurrently.
- Date batchesSplits each ticker’s history into date ranges.
- 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
| Ticker | Timestamp (UTC) | Open | Close | Volume |
|---|---|---|---|---|
| AAPL | 2026-09-25 04:00:00 | 336.04 | 341.07 | 30002507.354057 |
| AAPL | 2026-09-28 04:00:00 | 340.37 | 338.4 | 32820848.98415 |
| AAPL | 2026-09-29 04:00:00 | 336.965 | 329.4 | 38478037.237258 |
| AAPL | 2026-09-30 04:00:00 | 330.8 | 333.02 | 49988558.23475 |
| AAPL | 2026-10-01 04:00:00 | 330 | 330.32 | 36306346.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