Browse guides
Quickstart
Try the hosted recording, seed both local demos and collect a fresh market window.
On this page
Review the hosted demo
Open the recorded Workspace and send Show BTC positions and P&L. The zero-delay AI ladder has one completed pair. Open Dashboard, choose Decision ledger, filter to that policy and delay, and select BTC plan ccf3267. Its timeline connects the initial signal to a fresh recheck and subsequent paper hedge. Start the recording
For the failure case, open the synthetic hedge lab and inspect Recent events. A wait or timeout has a reason and a link to the plan when one exists. Inspect the hedge lab
Start a local copy
Use Python 3.12, uv and a Node.js version supported by the frontend (20.9 or later). Run these commands from the repository root in terminal one.
uv sync --locked
uv run --locked python -m flowshield.v3_runner seed
uv run --locked flowshield serve
The seed creates the checksummed market-replay run and deterministic hedge-lab fixture. You can rerun the seed against the same database. FastAPI listens on loopback port 8000.
In terminal two, start Next.js.
npm --prefix frontend ci
npm --prefix frontend run dev
Open http://127.0.0.1:3000. Try Workspace, Dashboard and Docs. In a run, the top switch carries that run between views. Use Market session in the sidebar to choose another capture. On small screens open the menu first.
Confirm the local run
| Check | Expected result |
|---|---|
Open /runs/market-replay | The composer appears immediately. The run resolves to recorded markets and paper execution. |
Open /dashboard?run=market-replay&view=strategies | The fixed-100, zero-delay BTC account shows one completed pair and about +0.966715 USDT. |
Open /runs/hedge-lab and enter Target ETH only | A proposal appears. After Confirm change, asking for settings shows ETH as the target. |
| Select Replay with settings | A replay opens with the confirmed targets and the fixture's saved input. |
To include the original HSK / USDT example, run uv run --locked flowshield replay --session demo once in the same checkout. If that session already exists, open it using the picker.
Collect new observations
Run the following in terminal three while the two servers remain open.
uv run --locked python -m flowshield.v3_runner paper --session local-live --seconds 60 --interval 5
Open http://127.0.0.1:3000/runs/local-live during collection and check the market's block and book timestamps. The prior demo recording stays available if a venue returns stale data. For port changes, local production builds and persistent storage, see Deployment and security.