Part of DOIN Network ยท Open Source ยท MIT License

AI-Powered
Live Trading.
Fully Automated.

DOIN LTS is a decentralized, plugin-based live trading system that connects ML predictions to real broker execution. Multi-user, multi-portfolio, with AAA security built in.

$ pip install lts && lts --load_config config.json click to copy

Everything you need to trade

A modular, secure, production-ready trading system with plugin architecture for every component.

๐Ÿ‘ฅ

Multi-User & Multi-Portfolio

Multiple users, each with multiple portfolios running independent strategies simultaneously. Full isolation between accounts.

๐Ÿ”Œ

Plugin-Based Strategies

Swap trading strategies, brokers, and pipeline components without changing code. Write your own plugin or use the built-in defaults.

๐Ÿค–

ML Prediction Integration

Connects to DOIN Forecast Provider for real-time ML predictions. Trade on signals from continuously-improving neural networks.

๐Ÿ’ฑ

OANDA Broker Integration

Native OANDA v20 API integration for live forex trading. Execute market orders, manage positions, and stream real-time prices.

๐Ÿ“Š

Backtest Simulation

Run strategies against historical data before going live. Same pipeline, same plugins โ€” just swap the broker plugin to simulation mode.

๐Ÿ”

AAA Security

Authentication, Authorization, and Accounting built in as a plugin. JWT tokens, session management, role-based access control.

๐ŸŒ

REST API

Full API for portfolio management, trade monitoring, and system control. Integrate with any frontend or automation tool.

โš™๏ธ

Configurable Logging

Fine-grained log level control via config, CLI, or environment variables. Set LTS_QUIET=1 for silent production operation.

From prediction to execution

A clean pipeline architecture where every component is a swappable plugin.

User configures portfolios & strategies via API / config โ†“ AAA Plugin authenticates & authorizes the request โ† JWT / sessions โ†“ Pipeline Plugin orchestrates the trading loop โ† configurable latency โ†“ Strategy Plugin evaluates entry/exit rules โ† prediction threshold โ†“ Forecast Provider returns ML predictions โ† REST API call โ†“ ML Models (transformer, LSTM, CNN) generate signals โ† continuously optimized โ†“ Strategy decides: open / close / hold โ† position sizing โ†“ Broker Plugin executes orders on OANDA / simulation โ† live or backtest โ†“ Portfolio Plugin tracks P&L, positions, history โ† per-user accounting

Running in 2 minutes

Install, configure, run.

# Clone and install git clone https://github.com/harveybc/lts.git cd lts pip install -e . # Create a config file cat > config.json <<EOF { "core_plugin": "default_core", "pipeline_plugin": "default_pipeline", "strategy_plugin": "default_strategy", "broker_plugin": "default_broker", "aaa_plugin": "default_aaa", "prediction_provider_url": "http://localhost:8000", "log_level": "INFO", "api_port": 8000, "global_latency": 5 } EOF # Run python -m app.main --load_config config.json # Run in quiet mode LTS_QUIET=1 python -m app.main --load_config config.json # Or set log level via CLI python -m app.main --load_config config.json --log_level DEBUG

Start trading with AI

Open source, plugin-based, and connected to the DOIN prediction network.