Tutorials¶
Step-by-step lessons to get you productive with FLOX.
Pick your language¶
Each language has its own quickstart. After that the tutorials are language-agnostic and use code tabs so you can pick what you read.
| Quickstart | Audience |
|---|---|
| Python quickstart | Quants and researchers — backtest in pandas-friendly Python |
| Node.js quickstart | JavaScript / TypeScript stacks — same API as Python |
| Codon quickstart | Python syntax compiled to native code |
| C++ quickstart | Direct access to the engine — lowest latency |
Core path¶
After your language quickstart, work through these. They cover the same concepts; each page has tabs for Python / Node.js / C++ / Codon (where applicable).
| Tutorial | What You'll Learn |
|---|---|
| Your first FLOX backtest | Three commands from a clean Python env to a working backtest |
| First Strategy | Write a simple trading strategy |
| Multi-Timeframe Strategy | Build strategies using multiple bar timeframes |
| Recording Data | Capture live market data to disk |
| Backtesting | Replay recorded data through your strategy |
| Run Demo | End-to-end demo runner |
Recommended order¶
- Quickstart for your language — verify your environment works
- Your first FLOX backtest — fastest path to a result on real BTC data
- First Strategy — understand the core programming model
- Multi-Timeframe Strategy — work with multiple bar timeframes
- Recording Data — set up market data capture
- Backtesting — test strategies against historical data
After completing these tutorials, move on to How-To Guides for specific tasks or Explanation for deeper understanding.
Requirements per language¶
- Python 3.10+
pip install flox-pyor build from source
- Node.js 18+
npm install @flox-foundation/floxor build from source
- Codon compiler installed
- Flox built with
-DFLOX_ENABLE_CAPI=ON
- C++20 compiler (GCC 13+ or Clang 16+)
- CMake 3.22+
- Linux (recommended) or macOS
See the Bindings page for full per-language build details.