Battle Test: A Runaway Bot vs. the Risk Engine
On Saturday afternoon, a trading bot malfunctioned and briefly became most of the market in HYPE and ZEC on Lighter. HYPE printed $60.96 and $56.31 within half a minute of each other while the rest of the world traded it near $58. It was a real battle test of the risk engine, at size, on mainnet.
TL;DR: Everything worked as expected. Prices recovered within a minute, there were no liquidations across the market, and the losses were limited to the account that caused them. Full breakdown below. All numbers come directly from exchange data and were verified using two separate methods.
The Bot
The account was funded with $500k (deposited two hours before its first trade on July 15) and spent ten quiet days as a small taker bot: 12,028 fills, median fill ~$54, $3.5M total volume, always the taker (zero maker fills), zero fees paid.
Then, at 4:14 PM on Saturday, its sizing logic broke.
Five Minutes of HYPE
In five minutes the bot round-tripped $27.0M of HYPE, 74.2% of the entire market's volume. It flipped its position from +13.1k to −51.9k to +100.2k to −74.2k HYPE, buying its own slippage on every flip. The price briefly moved between $56.31 and $60.96 before returning to normal within a minute after the activity stopped. Over the same period, HYPE on Hyperliquid stayed between $57.83 and $58.13.
The bot then moved to ZEC and repeated the same pattern with larger size, trading $220.8M in taker volume, or 86.7% of the market, from 4:29 to 7:39 PM. ZEC briefly jumped from $478 to $521 on Lighter, while trading between $479.9 and $486.0 on Hyperliquid. After that, it traded smaller sizes across a few other markets until 12:30 AM Sunday, when it stopped trading.
Risk System Response
No liquidations: During both bursts, there were no liquidation or ADL fills for the bot or any other trader. On an exchange that marks positions using the last traded price, moves like these could have liquidated other users. Lighter instead marks positions using a manipulation resistant fair price based on the median of the order book impact price, the index price with a capped EMA premium, and CEX mark prices, so short lived price spikes like these do not affect anyone's margin.
No runaway losses: When the bot's account value fell below its initial margin requirement, the risk engine stopped letting it grow its position: 801 market orders were rejected (order status "canceled-margin-not-allowed") against 1,002 filled on July 25 alone. Margin checks run in the same verifiable circuits as order matching and liquidations. They are enforced on every transaction, with no discretion involved, so a malfunctioning bot can only burn its own collateral.
Where the Money Went
The bot lost ~$226k on HYPE and ~$218k on ZEC in the bursts alone. By the time it went flat, $482k of its $500k was gone, leaving $18k, all of it the operator's own funds. Lighter charges standard accounts zero fees, so the exchange took nothing.
On the other side, LLP (Lighter liquidity pool), earned about $143k across the two bursts, and 40 independent accounts, none affiliated with the bot or the protocol, each made more than $1k by providing resting limit orders that were filled in strict price time priority. The largest winner earned about $38k across HYPE and ZEC. Frontend data also showed traders using the new Chase Limit order type at roughly twice the normal rate during the event. One trader used it through both bursts and finished among the top five winners with about $13.7k .
Why This Matters
Writing a trading bot has never been easier. Neither has losing six figures in minutes to one line of bad sizing logic. The market structure did its job here: prices self-healed in a minute, nobody got liquidated, and the losses stayed on the account that caused them.
If you're building a bot, build on rails designed for it: Lighter's official Python and Go SDKs (with runnable examples), the API docs, and lighter-agent-kit for AI-agent trading. All of it is open source and runs on an exchange with an independent audits. The audit reports, including Nethermind's, are available in Lighter's docs. Start small, keep your order sizes in check, and remember: the margin engine is your last line of defense, not your first.
Be careful with your trading software. Stay safe out there.
Methodology: Fills, orders, and hourly account snapshots from Lighter's databases; PnL computed two independent ways (trade flows + window-end marks vs. protocol oracle marks + funding), agreeing within 0.05% (HYPE) and 0.7% (ZEC); prices cross-checked against Hyperliquid's public API; Chase Limit usage from frontend telemetry matched to exchange fills; funding trail verified on-chain (Ethereum).
75·AShort
m
meme7/26meme
The Revolutionary Guards said on Sunday they had forced six vessels to stop in the Strait of Hormuz after issuing what they described as firm warnings, saying they had established "full control" over the strategic waterway.
The Guards' navy said vessels that violated its instructions were ordered to anchor after ignoring initial warnings.
90·A+Long
n
news7/26news
The worst type of FUD comes in the worst of situations. In the six years Akash has been liquid, I can't count the number of times this happened. Same story, different actors.
Reality is we’re in a crypto bear market. US is at war. There is global trade crisis. Markets are down. Crypto has a worse sentiment. Liquidity is terrible.
Markets will recover, when that happens those who stay will be rewarded.
The most important thing is to keep your heads down and keep building. We’re seeing amazing growth with products built on Akash like AkashML that’s starting to demand more from the protocol. It’s very critical we have more such apps that will drive demand for compute on Akash.
Open source will win. Open weights will win. I gave my life for this mission. I'm hell bent on making sure Akash wins unless I am dead or incapacitated.
65·B+Long
n
news7/26news
The worst type of FUD comes in the worst of situations. In the six years Akash has been liquid, I can't count the number of times this happened. Same story, different actors.
Reality is we’re in a crypto bear market. US is at war. There is global trade crisis. Markets are down. Crypto has a worse sentiment. Liquidity is terrible.
Markets will recover, when that happens those who stay will be rewarded.
The most important thing is to keep your heads down and keep building. We’re seeing amazing growth with products built on Akash like AkashML that’s starting to demand more from the protocol. It’s very critical we have more such apps that will drive demand for compute on Akash.
Open source will win. Open weights will win. I gave my life for this mission. I'm hell bent on making sure Akash wins unless I am dead or decapitated.
65·B+Long
R
Reuters7/23news
Bipartisan Group of Six U.S. Lawmakers Propose Requiring AI Security Audits for Most Powerful Models - Lawmaker Statement
5·CNeutral
n
news7/23news
Brent Crude Futures Rise More Than $2 to $96.09/bbl, Holding at Six-Week High
90·A+Long
n
news7/23news
Oil prices rise to six-week high as US-Iran tensions escalate
90·A+Long
n
news7/22news
Oil prices rose to a near six-week high on Wednesday, with Brent crude surpassing $95 a barrel, on mounting concerns about disruptions to Middle Eastern supply routes because of escalating hostilities between the U.S. and Iran and threats to shipping by the Iran-backed Houthi militia in Yemen.
90·A+Long
m
meme7/22meme
*EXPLOSIONS HEARD IN SIRIK IN SOUTHERN IRAN: FARS
*RUBIO: IRAN'S IN A LOT OF TROUBLE
*BRENT OIL RISES ABOVE $95 A BARREL FOR FIRST TIME IN SIX WEEKS
90·A+Long
n
news7/22news
*EXPLOSIONS HEARD IN SIRIK IN SOUTHERN IRAN: FARS
*RUBIO: IRAN'S IN A LOT OF TROUBLE
*BRENT OIL RISES ABOVE $95 A BARREL FOR FIRST TIME IN SIX WEEKS
90·A+Long
n
news7/22news
*BRENT OIL RISES ABOVE $95 A BARREL FOR FIRST TIME IN SIX WEEKS
90·A+Long
n
news7/22news
COINTELEGRAPH: Bitcoin ETFs extend inflow streak to six days with $203M added
75·ALong
n
news7/22news
Brent Crude Futures U.S. Crude Futures Up Over $1, Hover Near Six-Week High