Foundry: Full Stack

Get the complete Datafye development environment running in under 5 minutes. Includes data, algo runtime, backtesting, and AI assistance.

What you'll have:

  • Data Cloud with synthetic market data

  • Algo Container runtime with example strategy

  • Backtesting engine with sample results

  • Environment MCP Server for AI-assisted development

Prerequisites:

  • Docker Desktop installed and running

  • 12GB+ RAM available

  • Python 3.7+ (optional - for testing)

Windows users: You need WSL to install the CLI. Click here for instructions

Setting up WSL for Windows

If you don't already have WSL installed, follow these steps:

  1. Install WSL: Open PowerShell or Windows Command Prompt in administrator mode and run:

    wsl --install

    This will install Ubuntu by default.

  2. Restart your computer when prompted

  3. Launch WSL: Open the Start menu, search for "Ubuntu" (or your chosen Linux distribution), and click to launch

  4. Complete initial setup: Create a username and password when prompted

Once WSL is installed and running, continue with the installation instructions below (WSL provides a Linux environment, so follow the Linux instructions).

For more details, see Microsoft's WSL installation guide.

Tip: Consider using Windows Terminal for a better terminal experience.

Step 1: Install the Datafye CLI

curl -fsSL https://downloads.n5corp.com/datafye/cli/latest/install.sh | sudo bash

Verify installation:

Expected output:

No sudo access? See CLI Installation for alternative installation methods.

Step 2: Download Deployment Descriptor

This descriptor configures:

  • Synthetic dataset (10 symbols with 90 days history)

  • Pre-built momentum algo container

  • Backtesting engine

  • Environment MCP Server

  • No API keys required

Step 3: Provision Full Stack Environment

Expected Output (when available):

Provisioning takes 5-10 minutes.

What Just Happened?

The deployment descriptor configured:

  • Data Cloud - Normalized market data service with REST and WebSocket APIs

  • Algo Container Runtime - Managed environment for running trading algorithms

  • Backtesting Engine - Historical strategy testing and optimization

  • Environment MCP Server - AI-assisted exploration and development

  • Synthetic Dataset - 10 symbols with 90 days of historical data

What's running:

  • Data Cloud container at http://localhost:8080

  • Algo Runtime container at http://localhost:8081

  • Environment MCP Server at http://localhost:3000

  • Pre-built momentum algo deployed and ready to run

  • Backtesting engine ready for strategy testing

Step 4: Verify Services

Option A: Python Test Script

Output:

Option B: CLI Commands

Step 5: Run a Backtest

Note: Backtesting commands are being finalized. The example shows expected workflow.

Expected output:

View full scorecard:

Step 6: Connect AI Tools (Optional)

The Environment MCP Server at http://localhost:3000 enables AI-assisted development.

Setup:

  1. Configure your AI tool (VS Code, Cursor, Claude, etc.) with MCP server endpoint

  2. Explore your deployment conversationally

  3. Analyze backtest results with AI assistance

See: Integrating with AI Agents

Manage Your Deployment

Next Steps

Learn the SDK:

Deep dive into backtesting:

AI-assisted development:

Move to trading:

Troubleshooting

Docker not running: Start Docker Desktop and retry.

Insufficient resources: Increase Docker memory to 12GB+ in Docker Desktop settings.

Port conflicts: Stop conflicting services or see CLI Reference for custom ports.

MCP server not responding: Check docker logs datafye-mcp-server

Last updated