Use this file to discover all available pages before exploring further.
Downloading eight years of UZSE trade data one month at a time by hand would require running over 200 pairs of commands. The batch fetch scripts automate this entirely — they loop through every calendar month from February 2018 through April 2026 for symbol UZ7011340005, calling download-trades.ts followed immediately by import-trades.ts for each month before moving on to the next. Both a Linux/macOS shell script and a Windows batch file are provided so the process works on any platform.
Run the appropriate script from the project root directory. The Linux script uses cd "$(dirname "$0")/../.." at startup to ensure it always runs from the correct location regardless of where it is invoked.
Note that the first entry starts on 08.02.2018 (the earliest available UZSE trade record for this symbol) and the last entry ends on 20.04.2026 rather than the 30th.Each download-trades.ts call saves HTML pages to tmp/, then import-trades.ts immediately reads and inserts them before deleting the HTML files — keeping disk usage low throughout the run.
The full history run takes significant time. Each monthly batch may span many paginated pages, and the download script retries timed-out pages up to 10 times with a 30-second delay between attempts. Plan for the script to run for several hours on a typical connection, and do not interrupt it mid-run — the month-by-month structure and SHA1 deduplication mean you can safely resume by re-running the script; already-imported records will be skipped automatically.
If you need a different symbol, different start/end dates, or want to regenerate the fetch scripts after updating the date range, use the Parser Sequence Script from the README. Paste this into a Node.js REPL or a .js file and run it with node:
Modify the start, end, or the ISIN string in the lines.push calls to target a different symbol or period, then adapt the output for Windows .bat syntax if needed.
Once the batch import completes, proceed directly to build-candles.ts. The candle builder reads from the trade-results collection that the batch scripts populated, so no additional steps are needed between the two.