Quick start
This guide will help you get NanoARB running locally with synthetic market data in just a few minutes.Prerequisites
Before you begin, make sure you have:- Rust 1.75+ — Install Rust
- Node.js 18+ and pnpm — For the dashboard UI
- Git — To clone the repository
Optional: Docker Desktop for Prometheus/Grafana monitoring
One-command setup
The fastest way to get started is using the provided startup script:Start everything
- Build the Rust trading engine in release mode
- Install UI dependencies (if needed)
- Start the trading engine on port 9090
- Launch the dashboard UI on port 3000
Access the dashboard
Open your browser to http://localhost:3000 to see the real-time trading dashboard.The dashboard shows:
- Live order book with 15 levels
- Real-time price chart with ML predictions
- Trade history and P&L curve
- Latency metrics and performance statistics
- Risk monitoring and position tracking
Manual setup
If you prefer more control, you can start services manually:Build the Rust engine
Start the trading engine
Start the dashboard UI (optional)
Running your first backtest
NanoARB includes a powerful backtesting engine that simulates realistic market conditions.CLI backtest
Run a backtest using synthetic data:API backtest
While the engine is running, you can trigger backtests via the REST API:Custom configuration
Create aconfig.toml file to customize backtest parameters:
config.toml
Available endpoints
Once the engine is running, the following HTTP endpoints are available:| Endpoint | Method | Description |
|---|---|---|
/health | GET | Health check |
/metrics | GET | Prometheus metrics |
/api/state | GET | Full engine state (JSON) |
/api/stream | GET | Server-Sent Events stream |
/api/backtest | POST | Run backtest with custom parameters |
Example: Get current state
- Order book snapshot (15 levels)
- Current position and P&L
- Recent trades
- Latency metrics
- Risk alerts
Monitoring with Grafana
For advanced monitoring, you can launch Prometheus and Grafana:admin / nanoarb).
The pre-configured dashboard shows:
- Real-time P&L and Sharpe ratio
- Latency histograms (p50, p95, p99)
- Order flow and fill rates
- Position and inventory tracking
Running tests
Verify your installation by running the test suite:Next steps
Installation
Detailed installation guide and troubleshooting
API Reference
Explore the full API documentation
Troubleshooting
Port already in use
Port already in use
If port 9090 or 3000 is already in use:Or specify a custom port:
Rust version too old
Rust version too old
NanoARB requires Rust 1.75+. Update Rust:
pnpm not found
pnpm not found
Install pnpm:
Build fails with linker errors
Build fails with linker errors
On Linux, you may need to install additional dependencies: