polyAether
Textbook · Chapter 9
Chapter 9

How the machine actually runs

~7 min read

By now you know the idea: the crowd overpays for weather surprises, and a good forecast can spot when a price is out of line. This chapter is about the boring, important part — the actual machine that does this, hour after hour, without a human babysitting it.

Think of everything in the last eight chapters as a recipe. This chapter is the kitchen: the equipment, the timers, the fire extinguisher on the wall. A recipe that only works when a chef is standing over it isn't much use. We want something that cooks the same dish correctly at 3 a.m. as it does at noon — and that never sets the building on fire.

01 — The always-on loop

The heart of the system is a loop: a short list of steps the machine repeats forever. A loop is just "do these things, then start over." Every 5 minutes, the machine wakes up and runs four steps.

Step 1
Discover
Scan the exchange for open weather markets — "Will it hit 90°F in Chicago tomorrow?" and thousands like it.
Step 2
Forecast
For each market, ask our own weather model what it actually thinks the odds are.
Step 3
Read the book
Pull the live order book — the list of prices people are offering right now.
Step 4
Decide
Compare our number to the price. If there's a real edge, size a bet and place it. If not, do nothing.

Two terms there deserve a plain definition. A market is a single yes/no question you can bet on. An order book is the running list of every price people are currently willing to buy or sell at — like the bid and ask board at a stock exchange, or the stack of offers at a busy fish market. Reading the book tells us what the crowd is charging at this exact second.

The forecast in Step 2 isn't one weather model's guess. It's an ensemble — many independent forecasts run together and averaged, the way you'd trust the average of 122 thermometers more than any single one. Ours combines roughly 122 members from three major forecasting systems (GFS, ICON, and ECMWF), reading temperatures at about 80 curated weather stations we've hand-picked for reliability.

Key idea

The whole business is one small loop repeated every 5 minutes: discover markets, forecast the weather, read the price, decide. There's no magic — just a disciplined cycle that never gets tired, distracted, or greedy.

02 — Fake money first (paper trading)

Here's the part most people skip, and it's the most important. Right now, the machine places no real bets. It runs the full loop — real markets, real prices, real forecasts — and makes real decisions. But the money is fake. This is called paper trading: you write your trades down on paper (or, these days, in a database) as if they were real, then check later whether they would have won.

Why bother deciding correctly with pretend money? Because an edge — a genuine, repeatable advantage over the crowd — is easy to imagine and hard to prove. Anyone can look at last week and invent a story about why they'd have won. Paper trading forces the machine to commit to a decision before the outcome is known, then keeps an honest scorecard. If the edge is real, it shows up in the paper record. If it was a fantasy, paper trading catches it before a single real dollar is at risk.

We've already used this discipline on the trickiest piece — how a market settles (Chapter 7). Getting the payout wrong is a silent way to lose, so we replayed our settlement logic against 220 real market-days of history to confirm it matches how the exchange actually paid out. It did.

Honest status

polyAether is strictly in paper mode. There is no live track record yet — no proven profits, no real trades. Everything you read here is the validation phase, on purpose, before any money moves.

03 — The dashboard

A machine making silent decisions in the dark is not something you should trust. So the loop writes down everything it does, and a dashboard — a live web page of charts and numbers — shows it to a human in plain view. A dashboard is just a window into the machine: which markets it looked at, what its forecast said, what the crowd was charging, what it decided, and how the paper account is doing.

The point isn't decoration. It's accountability. If the machine starts behaving oddly — chasing bad markets, or disagreeing with reality — a person can see it on the dashboard and pull the plug. You can't supervise what you can't see.

04 — Speed (and why it matters)

Prices move. A price that was mispriced when the loop started reading it can be fair by the time the loop finishes thinking. So the machine has to be quick. Here are the real numbers, and what each one means.

~23 ms
to read one order book
~0.2 µs
to make one decision
5 min
between full scans

Let's put those units in human terms. A millisecond (ms) is one-thousandth of a second — a blink is about 100 of them, so reading a book at ~23 ms is roughly a fifth of a blink. A microsecond (µs) is one-millionth of a second, a thousand times smaller still. The decision itself — comparing our forecast to the price and sizing the bet — takes about 0.2 µs. In the time it takes you to say the word "go," the machine could make millions of those decisions.

The slow part is the network — the ~23 ms spent fetching prices over the internet, which is physics we can't cheat. The thinking is essentially free by comparison. That balance is deliberate: the machine spends almost all its time listening to the world, and almost none of it making up its mind.

Key idea

Reading is slow, thinking is instant. Fetching one price takes about 23 milliseconds; deciding what to do with it takes about 0.2 microseconds — over a hundred thousand times faster. The machine is bottlenecked by the world, not by itself.

05 — Servers and safety

Because the loop must run around the clock, it doesn't live on anyone's laptop. It lives on a server — a computer in a data center that stays on, plugged in, and connected, so the 5-minute cycle keeps ticking whether or not a human is awake.

An always-on machine that can spend money needs guardrails, and this is where every earlier chapter's caution gets wired in. The safety system (Chapter 8) is built into the decide step itself, not bolted on afterward:

None of these makes the machine smarter. They make it survivable — able to be wrong, repeatedly, without ending the game. That's the whole trick of running unattended: assume you'll be wrong sometimes, and make sure being wrong is never fatal.

Key idea

Safety isn't a feature you add at the end — it's part of every decision. Sizing limits, exposure caps, a correlation cap, and a kill switch are what let a machine trade on its own without any single bad call sinking it.

06 — Putting it together

So here is the whole machine in one breath. On a server that never sleeps, a loop wakes every 5 minutes. It discovers the open weather markets, forecasts each one with a 122-member ensemble across ~80 stations, reads each live order book in about 23 milliseconds, and decides in a fraction of a microsecond whether the crowd's price is out of line — placing a suitably sized bet only when it is. Every step is logged to a dashboard a human can watch, and every bet passes through hard safety caps and a kill switch. And right now, the money is fake, on purpose, until the paper record proves the edge is real.

That last sentence is the honest core of the project. The engineering is done and fast; the case for real money is still being made, one paper trade at a time. In the final chapter, we'll be equally honest about what could still go wrong.