Quantitative Portfolioby Jay Teo

Two systematic strategies I designed, built, deployed and ran with my own capital — one a cross-venue arbitrage on binary prediction markets, one a market-neutral cross-sectional momentum book on crypto perpetuals. Every curve below is realised trading, not a backtest. All performance is shown in percent.

Cross-Venue Arbitrage

Bitcoin 5-minute Up/Down binary contracts, traded simultaneously on two venues, referred to here as Exchange 1 and Exchange 2.

PAUSED — EXCHANGE 2 UPDATING THEIR PREDICTION MARKET, NO LIQUIDITY AT THE MOMENT REAL CAPITAL · BOTH VENUES FULLY AUTOMATED PYTHON · DUAL WEBSOCKET
Cumulative Profit & Loss
—
—Total return

Return on the strategy's own wallet balance, measured from the day its live risk gate began recording every real round. One point per settled round. Because every contract settles within five minutes, realised and mark-to-market profit are the same number here — there is no open position to mark.

What it traded

Every five minutes, both exchanges opened the same bet: will Bitcoin be higher or lower in five minutes' time? Each contract pays exactly $1 if right and $0 if wrong.

The two venues each set their own price to beat — the Bitcoin level the round is measured against. Exchange 1 reads a major third-party price oracle; Exchange 2 used its own, separate oracle. Those two numbers were never identical. The distance between them is the anchor gap, and it is the entire basis of the trade.

How the edge works

The strategy bought UP at whichever venue's price-to-beat was lower and DOWN at whichever was higher — deliberately straddling the two starting lines, not hedging one against the other.

Bitcoin settles below both anchors→the DOWN leg pays $1 ·settles above both→the UP leg pays $1 ·settles between them→both legs pay $1

So there are three outcomes per round, not two. Pay less than $1.00 combined for the pair and one winning leg already returns the stake; the middle zone pays twice. That is why this is structurally a Dutch book — the same idea as backing every runner across different bookmakers at prices that sum to under even money. It is not a correlation trade: there is no spread being bet on to revert, and the payoff is fixed in advance at $1 or $0 a side rather than being whatever the spread happens to give back.

I deliberately did not call this latency arbitrage. Nothing about the edge or its residual risk depends on being faster than anyone. The risk is a basis risk between two oracles, not a speed race, and naming it "latency arb" would misdescribe both.

The one way it loses — and how the risk was sized

Assuming both legs actually fill, there is exactly one losing configuration: the two venues' settlement readings disagree by more than the anchor gap. A smaller disagreement does nothing at all — both readings still land on the correct side of their own anchor.

This makes the anchor gap a measurable margin of safety, not a hedge. A hedge is an offsetting position; the gap is not a position, it is how far apart the two starting lines happen to be. Wider gap, more room for the oracles to disagree before a win flips to a loss. Measured across 210 real historical rounds:

Anchor gapObserved double-loss rateAction taken
under $60~15%entry price cap tightened
$60 – $65~9%tightened
$65 – $70~2%near-full size
$70 and above~0% (n=50)full size

Those buckets became a live pre-trade gate: the maximum price the system would pay for the pair was a function of that round's own measured gap. The breakeven prices behind the gate were recomputed once real exchange fees were known, which corrected two earlier caps that had been set using an estimated double-win rate rather than a measured one.

Risk management

1 · The noise breaker — and the honest negative result behind it

The cross-venue disagreement was tracked as a rolling ratio against its own baseline. When it ran hot, the system stopped opening new rounds and resumed when it cooled.

I tested whether elevated noise actually predicted the double-loss it was built to prevent. Fisher's exact test across five window lengths, Bonferroni-corrected over all ten tests, with any cell under n=5 reported as untestable rather than given a precise-looking rate. It did not. Odds ratios wandered between 0.97 and 2.44 and nothing survived correction.

What was strongly significant was something I had not been looking for: elevated noise predicted orphaning — one leg filling and the other failing to pair. Odds ratios 2.84 – 15.74, four of five windows surviving Bonferroni, orphan rates of 22–56% in noisy periods against 3–9% in calm ones. The mechanism is liquidity, not oracle disagreement: when the venues diverge, Exchange 1's book thins and the second leg cannot be filled inside the price cap at all.

So the gate was kept, and its stated purpose was rewritten to match the evidence. It protects against unhedged exposure, not against both legs losing. I record that distinction because the original thesis was wrong and the data said so.

2 · Execution and unhedged exposure

3 · Separation of the engine from the trading switch

The data feed and logging started on boot; arming real orders was always a separate, manual action. That meant the system could be left recording and researching at zero risk, and "stop trading" never meant "stop observing" — so the risk gate kept calibrating through every pause.

Why it is paused

Exchange 2 is updating its prediction market, and there is no liquidity on that side at the moment. The trade needs both venues quoting at once — a book with one leg available is not a book. Rather than leave capital sitting in a market that cannot be traded, I paused the strategy and withdrew it.

Whether it comes back depends on what the updated venue looks like. The edge was structural to the old design — two independent oracles setting two different anchors — so if the new one prices off a single shared feed, the gap this strategy lives on will not exist and I will leave it off. That is a judgement to make on the rebuilt market, not in advance.

Both wallets reconciled on independent paths at close: Exchange 2 to exactly zero from deposits plus realised profit minus withdrawals, and Exchange 1's book P&L unchanged across the withdrawal — confirming the cash movement was booked as a transfer and not mistaken for a loss.

Honest limits

A measured regime break, kept on the record: the mean oracle disagreement held steady at about $62 throughout, but its standard deviation roughly doubled, from $7.84 to $12.34. The anchor gap itself did not widen. That single change in dispersion — not any loosening of the strategy's own pricing — accounts for the double-loss rate moving from 22% to 50%.

Cross Sectional Momentum Strategy

USDT-margined linear perpetuals. Market-neutral, maker-only, rebalanced once a day.

LIVE — REAL CAPITAL AUTO-UPDATED DAILY POST-ONLY · NO TAKER PATH PYTHON · PRIVATE WEBSOCKET
Cumulative Profit & Loss
—
—Marked, since 2 Nov

Click a legend entry to show or hide it. The long-only, short-only and funding lines start hidden so the headline curve reads clearly.

What it trades

Every day at 09:00 UTC+8 the system ranks the most actively traded USDT perpetuals by how strongly and how steadily each one rose over the previous 28 days, then goes long the strongest and short the weakest in equal dollar amounts.

The ranking signal is a 28-day return divided by that coin's own normal daily swing. Dividing by volatility is the point: without it the list is simply a ranking of the most volatile coins, and the book ends up betting on volatility instead of momentum.

Each day's selection is held for 3 to 7 days in overlapping slices, so the book is a blend of several entry dates rather than one. One bad entry day is diluted across the others instead of defining the month.

Why it is market-neutral

Equal dollars long and short means the book carries close to zero net exposure to crypto as an asset class. It is not a bet that the market rises. It is a bet that recent relative strength persists for a few more days — that the winners keep beating the losers, whichever way the whole market goes.

That is the property worth having: the return does not need a bull market, and is not explained by one. The chart's long-only and short-only lines are drawn separately above so the two halves can be inspected on their own.

Execution

Risk management

1 · Position sizing is a dial that never moves itself

DialWhat it doesMoves automatically?
LeverageGross exposure as a multiple of the allocation Never. This is the risk dial and only I change it.
CapitalA fixed fraction of account equity Re-derived at each rebalance. This is the size dial.

Losses therefore shrink the next day's book automatically — deleveraging into a drawdown rather than doubling down. The capital fraction is set strictly inside the margin guard's own ceiling, because sizing exactly to the brake line parks the strategy on its brake: the next tick of equity would trip the guard and stop it opening.

The strategy currently runs at half its researched size — a deliberate de-risking I applied while improving the venue-specific implementation, not the target configuration.

2 · A loss halt measured against the strategy's own peak

If cumulative profit falls a set fraction below its own high-water mark, the strategy halts and will not reopen without me clearing it by hand. The halt is persisted, so a restart cannot quietly resume a halted book.

Critically, the halt measures the strategy's own profit, not account equity. The collateral in this account includes long-term spot holdings whose price moves constantly, so an equity-based halt would shut the strategy down for a collateral move it had nothing to do with. The loss budget is anchored to the allocation at the last profit high — it steps up as capital grows and never tightens mid-drawdown.

3 · A margin guard that fails closed — and still allows de-risking

A guard that stops new risk is not a liquidation policy. An early version answered a block by targeting zero across the book, which closes everything while logging "skipped". Both behaviours are now pinned by tests.

4 · Order-state correctness, from a real overfill incident

An earlier incident on my implementation of this strategy at another venue overfilled three positions by 11×, 15× and 21×. The fixes were ported here unchanged and are the invariants I would defend in any execution system:

5 · Universe quality, enforced daily

A daily registry resolves each ticker to a proven identity and excludes anything below a $100m market cap. Identity is proven from the exchange's own published contract addresses, not by ticker: a ticker-only lookup matched "SOL" to a $127,000 impostor. The filter fails open everywhere — a missing registry, a stale one, an unproven identity or any exception all mean keep the coin, because wrongly dropping a real coin is the expensive direction.

Bitcoin itself is permanently excluded, because I trade it discretionarily in the same account and that entry level is my call, not the model's. Three separate tests pin that exclusion — it has been flipped before, and I would rather the deploy fail than let it drift.

The research behind it, and its limits

Pass criteria were written down before the backtest was run:

Pre-registered checkThresholdResult
After-cost Sharpe> 01.15 — pass
Worst calendar year> −40%−12.9% (2022) — pass
Universe breadth≥ 10 coins/day269 instruments — pass

Leverage was chosen from a day-block bootstrap over 6,000 one-year paths, not from the best-looking number. Growth-optimal (Kelly) sizing on this series is 3.7×; the strategy is configured below that on purpose, because at 5× the modelled probability of ruin is 16% and at 10× the median outcome is losing most of the account. Above Kelly is growth-destroying, not merely riskier.

The limits I state before anyone asks. This venue does not expose delisted perpetuals through any public endpoint, so this venue's backtest carries unavoidable survivorship bias — my study at the other venue, which included 750 ever-liquid coins, does not. 2021–2026 is a single macro regime. And no backtest can prove that maker orders fill on fast-moving small coins; only the live curve above speaks to that.

Reading the numbers above honestly