Blazing iconBlazing
Advanced20 minAdvancedDev Preview

Trading Strategy Sandbox

This example shows how to build a trading strategy platform with two sides: **YOUR SIDE (Platform Owner):** - Define services your users can access (MarketDataService) - Define a workflow that uses run_sandboxed() to execute user code - Register with Blazing and publish **YOUR USER'S SIDE (End Users):** - Write strategy functions using your services - Submit code as a string - Get results back safely **Security Model (5 Layers - ALL HANDLED BY run_sandboxed()):** 1. AST validation - blocks dangerous imports/builtins 2. Cryptographic signing - HMAC-SHA256 prevents tampering 3. Signature verification - server validates before execution 4. Bytecode validation - blocks dangerous opcodes 5. Pyodide WASM sandbox - no network/filesystem access

Coming SoonDev Preview

This content is part of an upcoming preview program. Request early access

#dynamic-code#pyodide#python#sandbox
sandbox.py