Skip to main content

Documentation 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.

Redis is used by the agent-swarm-kit and caching layers within the backtest-kit ecosystem that powers the UZSE Backtest App. It supports pub/sub messaging and in-memory state management for the optional AI-assisted analysis features built on top of the core pipeline. The project ships with a pre-configured Docker Compose file that runs Redis 7.4.1 on the standard port 6379 with password authentication enabled out of the box.

Docker Compose

The docker-compose.yaml under docker/redis/ runs Redis with a --requirepass flag so that unauthenticated connections are rejected from the start. Data is written to a named volume for persistence across container restarts.
version: '3.8'
services:
  redis:
    image: redis:7.4.1
    container_name: redis-server
    ports:
      - "6379:6379"
    environment:
      - REDIS_PASSWORD=mysecurepassword
    command: ["redis-server", "--requirepass", "mysecurepassword"]
    volumes:
      - ./redis_data:/data
    restart: always

volumes:
  redis_data:

Starting Redis

1

Navigate to the Redis Docker directory

cd docker/redis
2

Start the container in detached mode

docker compose up -d
3

Verify authentication

docker exec -it redis-server redis-cli -a mysecurepassword ping
You should receive PONG in response.

Connection Details

SettingValue
Hostlocalhost
Port6379
Passwordmysecurepassword (default)
The password is passed both via the REDIS_PASSWORD environment variable and the --requirepass flag in the server command. Any client connecting to this instance must supply the password via AUTH before issuing commands.
The default password mysecurepassword is a placeholder for local development only. Change it before deploying to any shared or internet-accessible environment. Update both the REDIS_PASSWORD environment variable and the --requirepass argument in the command field of the Compose file to the same strong password, then restart the container.

Usage in the Backtest-Kit Ecosystem

Redis is consumed by the agent-swarm-kit layer, which provides orchestration, caching, and pub/sub capabilities for the optional AI/agent features within the backtest-kit ecosystem. These features include LLM-backed analysis agents and the real-time editor session state.
Redis is not required for the core UZSE data pipeline. All three primary pipeline stages — download trades, import trades, and build candles — operate exclusively against MongoDB. You only need Redis running if you are using the AI agent features or real-time analysis components of the backtest-kit platform.

MongoDB

Primary data store for trades and candles.

MinIO

Optional S3-compatible object storage.

Configuration

Environment variables and project setup.

Pine Script Analysis

Technical analysis via Pine Script in the editor.

Build docs developers (and LLMs) love