Read the market. Then run it.

Everything you need to use SENTINEL, from what an order book is to how the warning model was trained. No finance background needed.

1. Start here

SENTINEL is a pretend stock market that runs on your computer. Forty trading bots, each with its own personality, buy and sell one made-up stock. While they trade, SENTINEL watches the market and warns you when it is about to run out of buyers or sellers: the moment when trading suddenly becomes expensive and prices jump. That moment is called a liquidity crunch, and in real markets it is when people lose the most money.

You can use it to learn how markets work, to watch a crunch happen safely, or to study how different kinds of traders behave under stress. Read chapter 2 if terms like bid, spread or order book are new; otherwise jump to the quick start.

Tip: on the dashboard, every number has a small i button next to it. Hover over it (or tap it on a phone) for a plain-language explanation.

2. Market basics in 5 minutes

The order book

A stock exchange is a matchmaker. People who want to buy say what they will pay; people who want to sell say what they will accept. Orders that do not match straight away wait in a list called the order book. Here is a tiny one:

PriceShares waiting
100.03400
100.02250
100.01150
mid 100.00 · spread 0.02
99.99200
99.98300
99.97500
  • The top half are asks: people waiting to sell. The cheapest, 100.01, is the best ask.
  • The bottom half are bids: people waiting to buy. The highest, 99.99, is the best bid.
  • The gap between them, 0.02, is the spread. The point halfway, 100.00, is the mid price.
  • All the shares waiting are the depth: 800 to sell and 1,000 to buy here.

A worked example

You want to buy 300 shares right now. You take the 150 at 100.01, then 150 of the 250 at 100.02. Your average price is 100.015, a bit above the mid: that extra is your cost of trading immediately. Now imagine most sellers had just cancelled and only 50 shares were waiting at each price. The same order would chew through several levels and pay far more. That is a liquidity crunch: nothing about the company changed, but trading suddenly got expensive. SENTINEL tries to see it coming.

Liquidity, in one line

A market is liquid when lots of orders are waiting close to the current price, so trades barely move it. Narrow spread and deep book: liquid. Wide spread and thin book: illiquid, and dangerous.

Kinds of orders

Limit order
Buy or sell at a price you choose, or better. If nobody matches it right away it waits in the order book. Waiting orders are what make a market liquid.
Market order
Buy or sell right now at whatever the best available price is. It always trades (if anyone is there), but you pay the spread and may move the price.
Post-only
A limit order that is cancelled instead of trading immediately, so it only ever waits in the book. Market makers use it to make sure they earn the spread rather than pay it.
IOC (immediate or cancel)
Trade whatever you can right now, cancel the rest. Nothing is left waiting in the book.
Stop order
Dormant until the price reaches a trigger, then becomes a market order. Usually a stop-loss: "if it falls to X, get me out".

3. Quick start

  1. Open the simulator. Click Open simulator (or try it on the home page).
  2. Choose a preset, the mix of bots. Balanced (40 bots of every non-adversarial type) is the best first run.
  3. Choose a scenario, the kind of day. Start with Normal session to learn what calm looks like, then try Liquidity shock to see a crunch.
  4. Leave the rest on default for now. The seed fixes the randomness (same seed, same run); latency sets how fast orders travel; informed access lets some bots peek at the hidden fair value; speed is how fast the replay runs.
  5. Launch. The dashboard fills in within a second or two and updates every simulated second.
  6. Stop when you like (or let it run to the close). Stopping freezes a session report you can read on screen or download as PDF or JSON.

Running it on your own computer

With Docker installed, one command starts everything:

docker-compose up --build
# dashboard  http://localhost:3000
# api        http://localhost:8000   ·   live feed ws://localhost:8000/ws

Without Docker, start the backend (Python 3.11) and the frontend (Node 18+) in two terminals:

# terminal 1
cd backend
pip install -r requirements.txt
uvicorn src.api.main:app --reload --port 8000

# terminal 2
cd frontend
npm install
npm run dev        # then open http://localhost:3000

4. A tour of the dashboard

Everything on the dashboard updates once per simulated second. Here is what each part shows, top to bottom. Remember the i buttons: each one explains its number in place.

Ticker tape
The scrolling strip along the top: price, spread, stress, depth, imbalance, VWAP and other headline numbers at a glance.
Market summary
Eight tiles: mid price, spread, buy and sell depth, imbalance, volatility, VWAP and match rate. A note turns orange when a reading is unusual, for example depth below 60% of its median.
Price chart
Candles of the mid price. Pick 1-second, 5-second or 1-minute candles. Each candle shows where the price opened, closed, and its high and low in that interval; light candles closed up, orange ones closed down. The panels under it plot spread and depth on the same timeline, so you can see a crunch line up with a price move.
Order book · L2
The waiting orders, 8 levels a side: sell orders (asks, orange) above the mid, buy orders (bids) below. Size is shares at that price; cumulative is everything from the best price out to that level. The bar behind each row shows its size, and a level flagged by the large-order detector is highlighted.
Liquidity stress
The big number is the stress score: the model's probability that a liquidity shock starts in the next 60 seconds. Under it are the four warning bands and every input the model reads, each with an i button that explains it. Orange inputs point towards stress.
Large order detection
Inside the stress panel: when one price level is much bigger than the rest of the book, it shows the side, price, size, how many times the median level it is, its share of that side and a confidence score.
Order flow
Whole-run counters (orders, fills, cancellations, match rate, notional value), the split of aggressive buying versus selling in the last 10 seconds, a 2-minute bar chart of that flow, and, when informed access is on, the hidden fundamental value and how far the market is from it.
Activity
Three tabs. Agents: position, trades and profit for each bot type. Recent orders: the latest orders with their status. Event log: exchange events such as auctions, risk halts, scenario shocks and square-offs.

Session times use a pretend clock that opens at 09:30, like the New York stock exchange, so 09:31:00 means one minute into the run.

5. The bots

Each bot follows fixed rules; there is no hidden AI trading. They are modelled on the kinds of participants found in real stock markets, and all of them obey the same risk rules: a cap on how much they can hold, and a kill switch that stops a bot opening new positions after a large loss (it shows as halted in the Agents tab).

BotWhat it doesWhy it is thereIn Balanced
Market makerKeeps a buy and a sell order at four price levels each side, around a size-weighted mid price. Leans its quotes away when it holds too much inventory, and widens them when the flow turns one-sided.Supplies liquidity and earns the spread; real exchanges pay these firms to be there.3
High-frequency trader (HFT)The fastest bot (1 μs). Reads the queue at the best price and joins the side that looks about to win. It never crosses the spread to get in, and gets out fast: on a 5-tick stop, after 90 seconds, or if the signal reverses.Shows how speed and queue position, not prediction, make money in microstructure.2
InstitutionalHas to buy or sell a big block, sliced into small child orders on a schedule (TWAP: time-weighted average price). Trades passively when on schedule, aggressively when behind.Big funds move prices just by needing to trade; this is the main source of one-way pressure.2
RetailSmall, occasional orders driven by moving-average crossovers, with a stop-loss.The everyday investor: small and slow.10
InformedGets an occasional noisy peek at the hidden fair value and trades when the gap beats its costs, aggressively if the gap is large. Only active with informed access on.Information is an edge; these bots move the price towards fair value before the public catches up.3
NoiseTrades at random, more often after the price jumps, mostly with small orders at the best price.Real markets have lots of trading with no clear reason; it keeps volume realistic.10
Liquidity traderHas to complete a fixed quantity within the session whatever the price, sliced into child orders.Forced flow, like a pension fund rebalancing or a margin call.1
MomentumBuys breakouts above a recent range (and sells breakdowns), but only when aggressive flow confirms the move. Uses a trailing stop.Trend followers amplify moves.2
Mean reversionBets that stretched prices snap back, using Bollinger bands and RSI, with a stop if the stretch keeps going.The counterweight to momentum.2
SentimentFollows or fades the recent mood of the market and holds each position for a few minutes.Herding behaviour.5
SpooferPlaces large orders it does not intend to fill, then cancels them, to make the book look one-sided. Only in the spoofing scenario.Illegal in real markets; here to test the large-order detector.0

6. How the simulator works

One second at a time

The simulation moves in steps of one simulated second. Within a second, each bot wakes up on its own schedule, looks at the market as it stood when its data last arrived (slow bots see older data), and may send, change or cancel orders. Orders take time to reach the exchange, from 1 microsecond for the fastest bot to milliseconds for retail.

Matching

The exchange uses price-time priority, like real stock exchanges: the best price trades first, and among orders at the same price, the one that arrived first trades first. That is why speed matters for HFTs: being early in the queue at the best price is how they get filled.

The hidden fair value

Underneath the market is a hidden fundamental value that drifts gently, with an occasional jump for news. Informed bots get a noisy early look at it; everyone else learns it 30 seconds later. Arbitrage traders then pull the price back towards that public value, so prices wander like a real stock but cannot drift off forever. Its volatility is set to about 20% a year, in line with large real stocks.

The venue's own orders

Real books have thousands of small passive traders. SENTINEL stands in for them with a ten-level ladder of waiting orders around the public fair value, topped up by a fifth of its size every second. A big sweep thins it for a few seconds rather than for good, and forced selling at the close meets fair-value buyers instead of an empty book.

The trading day

Pre-openMarket-open scenario only, the first 4% of the run. Orders collect but nothing trades; then a single auction price clears as much as possible.
OpenUp to 10% of the run. Bots are 1.5 times as busy as usual, like the real opening rush.
ContinuousThe middle of the day. Normal matching, slightly quieter activity.
CloseThe last 10%. Activity picks up again.
Square-offThe last 3%. Like a broker's intraday rule, every open position is closed at market, so the bots finish flat.

How realistic is it?

It was tuned against five real NASDAQ trading days (see chapter 7). In normal sessions the price moves about 17–21% a year (real large stocks: 13–20%), stays within about 25 bps of fair value, and the book hits the liquidity-shock condition 2.5–6% of the time (real: 0–13%). Short-term price moves have the “fat tails” real markets show. It is still a model: one stock, no real news, and bots instead of people.

A fixed seed reproduces a run exactly: same seed, same settings, same result.

7. The warning signals

Liquidity stress: what it predicts

The stress score is a probability between 0 and 1: how likely it is that within the next 60 seconds the spread reaches 2.5 times its normal size, or the waiting orders fall to 40% of normal. “Normal” means the typical level over the last calm minute. Health is simply 1 minus stress.

safebelow 0.20Nothing unusual. Trading costs are normal.
caution0.20 – 0.40Something is off: the book is thinning or the spread is twitchy. Worth watching.
warning0.40 – 0.60A crunch is more likely than not to be building. Big orders would move the price a lot.
critical0.60 and aboveA shock is under way or imminent: the spread is blowing out or the book is emptying.

What the model reads

Every second the model reads 32 numbers about the book. Most are written as today versus normal, so 1.00 means normal; that way the same model works for a $100 simulated stock and a $580 real one. They fall into five groups:

Right now · 11 inputs

The state of the book this second, mostly against its normal over the last minute.

spread_ratio · Spread vs normal
The gap between the best buy and best sell price, divided by its usual size over the last minute. 1.00 is normal; 2.00 means the gap has doubled, so trading right now costs twice as much.
depth_ratio · Depth vs normal
How many shares are waiting to be traded in the book, compared with the usual amount over the last minute. 1.00 is normal; 0.50 means half the usual liquidity has gone.
bid_depth_ratio · Buy-side depth vs normal
Same as depth vs normal, for buy orders only. A low value means few buyers are waiting, so sellers will push the price down easily.
ask_depth_ratio · Sell-side depth vs normal
Same as depth vs normal, for sell orders only. A low value means few sellers are waiting, so buyers will push the price up easily.
depth_change_1s · Depth change, 1 s
Depth now divided by depth one second ago. Below 1.00 means orders are disappearing; a sudden drop is often the first sign of a crunch.
depth_change_5s · Depth change, 5 s
Depth now divided by depth five seconds ago. Smooths out one-second noise to show whether liquidity is steadily draining.
spread_change_5s · Spread change, 5 s
Spread now divided by the spread five seconds ago. Above 1.00 means the gap between buyers and sellers is widening.
imbalance · Book imbalance
Buy depth minus sell depth, divided by the total, across all 10 levels. Runs from −1 (only sellers) to +1 (only buyers); 0 is balanced. A one-sided book breaks more easily.
top_imbalance · Best-price imbalance
The same imbalance, but only for the orders at the best buy and best sell price. A queue about to run out on one side often predicts the next price move.
vol_ratio · Volatility vs normal
How much the price has been jumping over the last 10 seconds, compared with the usual amount over the last minute. Above 2 means the market is unusually jumpy.
flow_pressure · Flow pressure
Shares bought aggressively minus shares sold aggressively in the last 10 seconds, relative to the depth in the book. Strong one-way flow eats through the waiting orders.
Recent memory · 7 inputs

What happened over the last minute or so: stress tends to come in clusters.

recent_stress · Stress in last minute
Share of the last 60 seconds the book spent in a stressed state (spread above 2.5× normal or depth below 40% of normal). 0 is calm; 1 is stressed the whole minute.
max_spread_ratio_10s · Widest spread, 10 s
The highest "spread vs normal" reading in the last 10 seconds. Catches brief spikes the current reading may already have missed.
min_depth_ratio_10s · Thinnest depth, 10 s
The lowest "depth vs normal" reading in the last 10 seconds. Catches brief holes in the book.
since_stress · Time since stress
How long since the book was last stressed, scaled so 1.00 means five minutes or more. High is good: it has been calm. Low means trouble happened very recently, and stress tends to come back.
depth_change_30s · Depth change, 30 s
Depth now divided by depth 30 seconds ago. Shows slower drains that the 1 s and 5 s readings smooth over.
max_spread_ratio_60s · Widest spread, 60 s
The highest "spread vs normal" reading over the last minute.
min_depth_ratio_60s · Thinnest depth, 60 s
The lowest "depth vs normal" reading over the last minute.
Long memory · 8 inputs

The same ideas over 5 and 15 minutes, so the model knows when the last minute was unusually calm or busy.

stress_300s · Stress in last 5 min
Share of the last five minutes spent in a stressed state. A market that has been stressed recently is more likely to be stressed again.
stress_900s · Stress in last 15 min
Share of the last fifteen minutes spent in a stressed state. The long-memory version of the line above.
spread_ratio_300s · Spread vs 5-min normal
Spread now compared with its typical size over the last five minutes, a slower and steadier baseline than the one-minute one.
spread_ratio_900s · Spread vs 15-min normal
Spread now compared with its typical size over the last fifteen minutes.
depth_ratio_300s · Depth vs 5-min normal
Depth now compared with its typical level over the last five minutes.
depth_ratio_900s · Depth vs 15-min normal
Depth now compared with its typical level over the last fifteen minutes.
baseline_vs_300s · Calm vs 5-min normal
The one-minute "normal" spread divided by the five-minute one. Below 1.00 means the last minute was unusually calm, so even a return to an ordinary spread will look like a jump against the short baseline.
vol_ratio_300s · Volatility vs 5-min normal
Price jumpiness over the last 10 seconds compared with the last five minutes.
Book shape · 3 inputs

Where the waiting orders sit across all 10 levels, not just how many there are.

near_share · Depth near the best price
Share of all visible orders that sit in the three best price levels on each side. Low means the liquidity is parked far from the current price, so a trade moves the price a lot before it finds it.
span_ratio · Book width vs normal
Distance from the lowest to the highest of the 10 visible price levels, compared with the last minute. A wider book means the same number of orders is spread thinner across prices.
depth_dist_ratio · Depth distance vs normal
Average distance of the waiting orders from the mid price, weighted by size, compared with the last minute. Rising means liquidity is backing away.
Activity · 3 inputs

How restless the book and the trading are.

depth_volatility_10s · Depth jumpiness, 10 s
How much total depth has been jumping from second to second over the last 10 seconds. Large values mean orders are flickering in and out.
spread_vol_10s · Spread jumpiness, 10 s
How much "spread vs normal" has been jumping over the last 10 seconds.
abs_flow_30s · Trading intensity, 30 s
Average size of aggressive trading (buys and sells, ignoring direction) over the last 30 seconds, relative to the book. Busy markets use up liquidity faster.

How the model was built

It learned from real market data: five full trading days of NASDAQ order books from LOBSTER (Apple, Amazon, Google, Intel and Microsoft, 21 June 2012), replayed one second at a time, plus 28 simulated sessions given a quarter of the weight. The model is LightGBM, a fast “gradient-boosted trees” method that combines thousands of small yes/no rules; here it is kept deliberately small (7 leaves per tree, 2,000 trees) so it generalises instead of memorising. Its raw scores are then calibrated, so that a reading of 0.30 really does mean about a 30% chance. The live dashboard computes the inputs with exactly the same code used in training.

How good is it?

To test it honestly, each stock was scored by a version of the model that never saw that stock. The score used is ROC-AUC: if you pick one moment just before a real crunch and one calm moment at random, it is the chance the model rated the crunch moment as riskier. 0.5 is a coin flip and 1.0 is perfect.

Tested onROC-AUCAverage precision
Real stocks it never saw (average)0.890.61
Simple rule: only today's spread and depth0.700.36
Simulated sessions it never saw0.770.55

Average precision measures how often a raised warning is right, weighted across all thresholds; higher is better, and it depends on how rare crunches are. Logistic regression, random forests, XGBoost, larger LightGBM models and ensembles were all tried and scored lower. One honest caveat: part of the gain comes from the 5 and 15 minute memory. After an unusually calm minute, even a return to normal spreads counts as a crunch under the definition above, and the model learns to expect it.

Without the trained model file, the backend falls back to adaptive_stress: a simple comparison of the current book with its own recent history. It reports calibrating for the first few seconds.

Large order detection

Separately, SENTINEL scans the visible book for one price level that is far bigger than the rest (pattern large_level). It could be a big fund parking an order, or a spoofer showing size it will cancel. Each flag reports the side, price, estimated size, how many times the median level it is, its share of that side, and a confidence from 0 to 1.

Read signals as evidence, not instructions. A good habit: when a signal moves, find the change in orders, depth or flow that moved it.

8. Scenarios

A scenario changes the conditions of the day. The three multipliers scale the normal quoted spread, the fair value's volatility and the depth of the venue's waiting orders.

ScenarioSpreadVol.DepthWhat happensWhat to watch
Normal session
normal
1.0×1.0×1.0×An ordinary day with every non-adversarial bot.The baseline. The stress score should sit at safe almost all the time; use it to learn what calm looks like.
Market open
market_open
2.5×1.4×1.35×Orders pile up before the open, one auction price clears them, then a wide, fast open.The first minutes: no trades during pre-open, a jump at the auction, then spreads narrowing as the bots settle in.
Liquidity shock
liquidity_shock
1.0×1.0×1.0×A normal book, then about a minute in, most waiting orders on one side are pulled and an aggressive order sweeps what is left. Liquidity returns over the next 20 seconds or so.The stress score jumping to critical, depth collapsing, the spread blowing out, then the recovery. The clearest demo of what the warning is for.
Institutional execution
institutional_execution
1.25×1.2×1.15×Twice as many institutional parent orders working through the day.Persistent one-way flow in the order-flow panel and the institutions' P&L in the agents table.
Volatility spike
volatility_spike
3.0×2.8×0.75×A jumpier fair value, wider quotes, and two news shocks (one up, one down) that move fair value and hit the book at the same time.Two sharp price moves and how fast the book refills after each.
Spoofing stress
spoofing_stress
1.75×1.5×0.9×Spoofer bots switched on.The large-order detector flagging levels that then vanish, and the cancellation count climbing.
Close / auction
close_auction
1.6×1.0×1.8×A deeper book and more institutional activity towards a closing auction.The busier close phase, the square-off at the end and the closing auction filling remaining positions.

9. Session reports

Stopping a run, or letting it reach the close, freezes its final state into a report. Read it on screen, download the PDF to keep or share, or download the JSON for your own analysis (it holds every recorded second, order, trade and event). The PDF has nine parts:

Cover
Scenario, preset, seed and settings, a one-line verdict ("a calm session", "liquidity came under real strain") and six headline tiles.
1 · Price
Candles for the whole run, the opening price as a dashed line, and triangles where the stress detector raised a warning.
2 · Liquidity
Spread and depth over time with their medians, so a shock is easy to spot.
3 · Summary
What happened, in six plain sentences.
4 · Participants
Each bot type's trades, final position and profit or loss, with bars to compare at a glance.
5 · Detectors
Every change of stress level with its score, plus a summary of the large orders flagged.
6 · Market quality
Average and widest spread, trades per second, cancels per trade, volatility, price impact and slippage, each explained.
7 · Record
Order-flow counts and how much data the report rests on.
8 · Reference
A glossary and the method and limits.
Open the latest report

10. Things to try

  1. See a crunch coming. Run Liquidity shock with the Balanced preset. Watch the stress panel for the first minute: which inputs turn orange first, and how high does the score go before depth actually collapses?
  2. Same day, different luck. Run Normal twice with seeds 1 and 2, then twice with seed 1. Seed 1 gives an identical run both times; seed 2 differs. Compare the reports.
  3. Who wins when it gets rough. Run Volatility spike, open the Agents tab, and compare market makers, HFTs and momentum traders with a Normal run.
  4. Catch a spoofer. Run Spoofing stress and watch Large order detection. Do flagged levels get traded, or cancelled before anyone reaches them?
  5. Information is an edge. Run Normal with informed access on, then off. Look at the informed traders' P&L and the mispricing reading in Order flow.

11. Questions and fixes

The dashboard is empty or says it is waiting.

The page needs the backend running and a session started. Start one from the start page. If you run locally, check the backend is on port 8000 (or whatever NEXT_PUBLIC_API_URL points to).

The stress panel says calibrating.

That is the fallback detector, used when the trained model file is missing. It needs about ten seconds of history before it can compare the book with its own normal.

Why is there a warning when the price looks calm?

The warning is about liquidity, not price. The price can sit still while the waiting orders thin out. Also, after an unusually quiet minute, even a return to normal spreads can count as a jump; the model knows this and raises caution early.

Why do almost all bots lose money?

Trading costs money: every time a bot crosses the spread it pays it, plus a small fee. The ones that wait for others to trade with them (market makers, HFTs) or that know something (informed traders) tend to come out ahead. That is how real markets work too.

Can I trust the profit numbers?

Only as a comparison between bots in this simulation. It is one synthetic run; nothing here says a strategy would make money in a real market.

Docker says the port is in use.

Another app holds port 3000 or 8000. Stop it, or run the backend with --port 8765 and start the frontend with NEXT_PUBLIC_API_URL=http://127.0.0.1:8765 and NEXT_PUBLIC_WS_URL=ws://127.0.0.1:8765.

12. Glossary

Aggressor
The side of a trade that crossed the spread to trade immediately. It pays the spread; the waiting side earns it.
Ask (offer)
A waiting sell order, or the lowest price someone is currently willing to sell at.
Basis point (bp)
One hundredth of a percent: 0.01%. A 1 bp spread on a $100 stock is 1 cent.
Bid
A waiting buy order, or the highest price someone is currently willing to pay.
Candle (OHLC)
A summary of prices over an interval: open, high, low, close.
Depth
Total shares waiting in the order book, here across the 10 best price levels on each side.
Fill
A trade: a buyer and a seller matched.
Fundamental value
The hidden fair price the simulation is built around. The public learns it 30 seconds late.
Imbalance
(buy depth − sell depth) / (buy depth + sell depth). −1 is all sellers, +1 all buyers.
Inventory
The shares a trader currently holds. Market makers try to keep it near zero.
Latency
How long an order takes to reach the exchange. 1 μs (a millionth of a second) for co-located HFTs, milliseconds for retail.
Liquidity
How easily you can trade without moving the price: lots of waiting orders and a narrow spread.
Liquidity shock
Here: the spread reaching 2.5 times its normal size, or depth falling to 40% of normal.
Market maker
A trader that keeps orders on both sides of the book and earns the spread.
Mid price
Halfway between the best bid and the best ask.
P&L
Profit and loss. Realized is locked in by closing trades; unrealized is the value of open positions at the current price.
Price-time priority
Matching rule: better prices trade first; at the same price, earlier orders trade first.
Seed
The number that fixes the simulation's randomness. The same seed and settings give the same run.
Slippage
How far your fill price ended up from the price when you sent the order.
Spread
Best ask minus best bid: the cost of trading immediately.
Tick
The smallest price step allowed, $0.01 here.
VWAP
Volume-weighted average price: the average trade price weighted by size.

13. API

For developers: the dashboard talks to the backend through this REST API and one WebSocket. Interactive API docs are served at /docs on the backend.

GET/api/healthIs the service up.
GET/api/sandbox/presetsBot populations you can choose from.
GET/api/sandbox/scenariosScenario definitions and their multipliers.
POST/api/sandbox/createStart a run (preset, scenario, seed, latency, informed access, speed).
PUT/api/sandbox/speedChange the playback speed of the running session.
POST/api/simulation/stopStop the run and freeze its report.
GET/api/simulation/exportDownload the full session record as JSON.
GET/api/simulation/reportThe frozen session report (JSON).
GET/api/simulation/report.pdfThe same report as a PDF.
WS/wsLive feed: one market_update message per simulated second.

14. Safety and limitations

  • Everything here is simulated: prices, trades and profits are synthetic.
  • Warnings are research signals, not investment advice.
  • The model was trained on five days of 2012 data for five large US stocks; other markets and periods may behave differently.
  • Results depend on the scenario, seed, bot mix, latency and run length. Repeat runs before drawing conclusions.