The UZSE Backtest App is configured through a small set of environment variables and two static configuration files. The main connection setup lives inDocumentation 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.
config/setup.ts, which is imported by every pipeline script that touches the database. Symbol metadata — used by the analysis editor UI — is defined in config/symbol.config.cjs. Understanding these two files is enough to fully configure the application for any environment.
Database Connection — config/setup.ts
config/setup.ts is the single entry point for all MongoDB connectivity. Importing this file in any script is sufficient to open the database connection — no further setup is needed. The file reads the MONGO_URI environment variable and falls back to a sensible local default:
backtest) is embedded in the URI path. To use a different database or a remote cluster, simply change MONGO_URI — no code modifications are required.
Environment Variables
| Variable | Default | Description |
|---|---|---|
MONGO_URI | mongodb://localhost:27017/backtest | MongoDB connection string including the target database name. Supports all URI options (auth, replica sets, TLS, etc.). |
Symbol Configuration — config/symbol.config.cjs
config/symbol.config.cjs defines the list of trading symbols available in the analysis editor UI. Each entry provides display metadata used for chart rendering and symbol selection. The file exports a plain CommonJS array so it can be consumed by both ESM and CJS tooling.
Each symbol object has the following shape:
| Field | Type | Description |
|---|---|---|
symbol | string | Trading pair or ticker identifier (e.g. HMKB, BTCUSDT) |
displayName | string | Human-readable name shown in the UI (e.g. Bitcoin, Hamkorbank) |
color | string | Hex color code used for the chart line and UI accents |
priority | number | Display order — lower values appear first in the symbol list |
icon | string | Path to the small icon image (e.g. /icon/btc.png) |
logo | string | Path to the larger logo image (e.g. /icon/128/btc.png) |
description | string | Multi-line description of the asset, built with str.newline() |
Priority Tiers
Symbols are grouped into six priority tiers that control the order they appear in the editor’s symbol picker:| Priority | Tier | Symbols |
|---|---|---|
50 | Premium | BTCUSDT, ETHUSDT, UNIUSDT |
100 | High | BNBUSDT, SOLUSDT, LTCUSDT, BCHUSDT, NEOUSDT, FILUSDT, XMRUSDT |
150 | Medium | XRPUSDT, AVAXUSDT, LINKUSDT, DOTUSDT, MATICUSDT, AAVEUSDT, SUSDT |
200 | Low | DOGEUSDT, TRXUSDT, ADAUSDT, EOSUSDT, XLMUSDT, KSMUSDT, COMPUSDT |
250 | Extended | ATOMUSDT, ALGOUSDT, IOTAUSDT, VETUSDT, BATUSDT |
300 | Archive | ETCUSDT, DASHUSDT, ZECUSDT |
Market Sector (mktId) Options
When running the download-trades pipeline script, you specify a market sector to filter which instruments are fetched from the UZSE. The market field on every trade record reflects this value.
mktId | Sector | Description |
|---|---|---|
STK | Equities | Common and preferred stock listed on the UZSE (default) |
BON | Bonds | Fixed-income securities traded on the exchange |
STK if no value is provided.
Infrastructure Configuration
Each infrastructure service is configured independently via its own Docker Compose file. See the dedicated pages for full details:MongoDB
Primary data store for trades and OHLCV candles. Configured via
MONGO_URI.MinIO
Optional S3-compatible object storage for exports and backups.
Redis
Caching and pub/sub for the agent-swarm-kit AI layer.