The bulk fetch scripts automate the full historical data collection process by chaining download-trades and import-trades in a tight loop, iterating through every calendar month from 8 February 2018 to 20 April 2026 for ISINDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/theonetrade/uzse-backtest-app/llms.txt
Use this file to discover all available pages before exploring further.
UZ7011340005. Running one of these scripts unattended is the easiest way to populate trade-results with the complete dataset before building candles.
Scripts
Two equivalent scripts are provided — choose the one that matches your operating system.| Script | Platform |
|---|---|
scripts/linux/fetch.sh | Linux / macOS |
scripts/win/fetch.bat | Windows (cmd) |
Usage
What the Scripts Do
Each script iterates every month in the range, calling the two pipeline scripts in sequence. One iteration looks like this:08.02.2018 (the earliest available trade date) and the last month ends on 20.04.2026. Every intermediate month uses the first and last calendar day of that month as the begin and end arguments. After each import-trades run the tmp/*.html files are deleted automatically, keeping disk usage minimal throughout the long run.
Regenerating the Scripts
If you need to extend the date range or change the ISIN, regenerate the shell script from the parser sequence snippet in the README:node from the project root to produce a fresh scripts/linux/fetch.sh. Adapt the start, end, and ISIN string as needed, then manually mirror any changes into scripts/win/fetch.bat for Windows compatibility.
Using the Pre-Built Data Dump
If you want to skip the multi-hour scraping process entirely, you can import the pre-built JSON dumps directly into MongoDB withmongoimport:
Next Steps
Oncetrade-results is populated — whether via the bulk fetch scripts or the JSON dump — you can:
Build Candles
Aggregate raw trades into OHLCV candlestick data across all eleven timeframes.
Check Gaps
Scan for missing trading days to verify data completeness before running analysis.