The platform team spends its days on gateways, market data and order routing. This year it tried the other side of the job: research a trading strategy, get it approved and trade it on the firm’s own infrastructure.
It started as a side project. Nobody on the team had done this before, so there was no announcement and no promise of results. Alongside their main work, team members fixed bugs in the platform components the strategy relied on. Once the idea took shape, the team showed it to the traders, took their comments and reworked a few things.
Why a platform team needed a strategy
The main reason was technical. A trader was already trading Chinese equities through the platform, and the team had built a new exchange gateway for him. His strategy was simple on the execution side, the part that sends orders and handles fills, and it barely loaded the gateway. The team wanted something more demanding running through it.
A test environment couldn’t provide that. On many exchanges it has little in common with production, and a gateway that passes every test can still break once real orders hit it. Live trading is the only test that counts.
Real money added a second goal. Every strategy comes down to risk and profit. The minimum was to lose nothing. The real question was how closely the research would match the market.
Constraints first
The research flow was standard: describe the strategy, load about two years of history, see what it would have made.
Technology wasn’t the problem. The law was. China gives foreign firms far less room than local ones. The access route available to BHFT comes with tight limits. The rule that cost the team the most time was short selling. To short a stock you first have to borrow it, and the CSRC has been tightening securities lending since 2023. For stocks, BHFT can only buy shares and sell them later. On top of that, stocks trade on T+1.
Table 1. The rules the strategy had to live with
|
Rule |
What it means for the strategy |
|---|---|
|
Short selling of stocks |
Not available to us. Any idea that needs a short stock position is out. |
|
T+1 |
Shares bought today can be sold tomorrow at the earliest. |
The first session with Claude started broad: the team described the setup the strategy would trade through and asked for the strategies most likely to work. Claude produced 14 in a day. It didn’t search the web or read papers for this. Most likely, the Chinese market was already in its training data. Then it ran all 14 through the full list of constraints and kept four to six the firm could actually trade.
One of them needed short stock positions. Under BHFT’s rules that made it very hard or impossible to run, so it was dropped.
Later, when the team gave Claude the name of the firm’s license, it went online, found documents and listed what BHFT was allowed to trade. The broker had already ruled out some of those items. Public documents describe the regime in general; what the firm itself could do was set by the broker and confirmed by compliance.
Data: easy to find, hard to trust
Most of the data was already in BHFT’s internal data lake. A second source was market data the firm had recorded itself while a trader was already active in China.
Finding the data was easy. Trusting it took longer than anything else in the project. Claude cross-checked the sources against each other to pick the cleaner one, and purchased data turned out to have gaps too, depending on the vendor. The team used everything available, a year and a half to two years across a very large number of stocks. Even trimmed, it came to several hundred gigabytes. The data engineering team, which owns market data quality, closed the gaps and now runs regular checks that reload or re-buy anything missing.
Without domain knowledge, an agent’s mistakes are hard to spot. Data errors, though, tend to be loud. A return of several hundred percent is hard to miss, and every number like that sent the team back to the data.
Sometimes the data was fine and the method was too complicated. Claude was computing a reference value from formulas, and the team asked whether a simpler source existed. It did. The exchange publishes the same value on its website. Claude reconciled its numbers with the exchange’s, and they matched to the basis point.
Two simulators
Traders usually test in two passes: a fast, rough one to kill bad ideas, then a slow, precise one. BHFT’s platform backtester is the second kind. It is slow because it is accurate, and a parameter sweep on it would take years.
So Claude wrote a fast, rougher simulator. The team asked about it only at a high level; the answer was vectorization. What mattered was that its results agreed with the platform backtester’s. The sweep ran 84 parameter combinations and about 6,300 simulated trades.
Idea 1 was killed by costs. It traded a real pricing gap, but the gap disappeared once commissions and daily charges were counted.
Then the simulator showed a Sharpe ratio of 8.7. Nobody on the team could judge that from experience, so they asked Claude. Its answer: 2 is good, 3 is excellent, 8 means you’ve discovered something extraordinary. This strategy is about as basic as they come, so the number was fiction. The industry has been here before. Across 888 algorithms built on Quantopian, backtest Sharpe ratios told you almost nothing about out-of-sample results.
Figure 2. The sanity check that took one question. A Sharpe of 8.7 from a basic strategy meant the simulation was wrong.
Every simulator is wrong. The questions are by how much and in which direction, and in trading the answer is almost always too optimistic. This one was calibrated twice: first against the platform backtester, then against the first live trades over the same period. Real orders came in noticeably worse than simulated ones, and one parameter the simulator had recommended failed a live test. Both findings went back into the model. The team now trusts it, for this strategy on this market.
Figure 3. Calibrating the fast simulator: first against the platform backtester, then against live fills.
When the agent was confidently wrong
The biggest mistake came after launch. Asked to compare its predictions with the first production trades, Claude found what it called a very simple improvement: sell the same day instead of the next. Buy in the morning, sell in the evening, double the profit. It got to work and even produced results.
Then the team checked them. A position bought today can’t be sold today: T+1 applies here too. Claude knew that during the research and forgot it after launch. Once reminded, it concluded the strategy was already optimal.
The rule was easy to find. Research and production live in separate repositories, and the production one links to the research one, where every constraint is written down. The team’s best guess is that the rule dropped out of the agent’s context in a new session. Chroma’s 2025 study of 18 models found that performance gets less reliable as the input grows, even on simple tasks, and OpenAI researchers argue that training and evaluation reward a confident guess over an admission of uncertainty.
The lesson the team took away: when the agent is wrong, it is wrong with total conviction.
Through the committee
Once the first results were in, the team showed the strategy to one of BHFT’s trader-orchestrators, who each lead a group of traders. His verdict: interesting, and close to something the trading side had planned anyway. When the work was done, he came back as a validator and suggested several extra checks, which they went through together.
Next came the New Business Committee. Every new strategy at BHFT goes through it, whoever proposes it, and its job is to challenge ideas. Finance, risk, compliance and trading sit at the table. This time the platform team sat there as the strategy’s owner. Nobody objected: the technical and legal setup for the market already existed, the legal constraints were built in from day one, the team asked for the smallest allocation available, and trading had already seen the strategy.
Even so, two months passed between confirming the idea in research and the first trade. Half went on more research and re-checks. The other half went on the process itself. No technical team had launched a strategy before, so whom to talk to and how committees run had to be worked out from scratch.
Figure 4. A developer’s idea takes the same path as a trader’s.
Running it
The companion service
BHFT’s platform is written in Rust: fast, memory-efficient and hard to learn. Platform engineers write the platform. The robots and trading algorithms are usually written by the algo developers. Most traders aren’t programmers, and very few want to write Rust.
About two years ago the platform team split the two. The platform keeps the plumbing: market data, order entry, pre-trade risk checks, and tracking of balances, margin utilization, open orders and positions. Trading logic runs outside it as a separate service, in any language, with ML models, any database, whatever the strategy needs. It can run from any machine that security rules allow. The trader owns the strategy code, and the platform checks every order against risk limits before it goes out. This is the companion service, and the platform team’s own strategy runs as one.
Figure 5. The platform handles market data, order entry and pre-trade risk checks. The strategy runs next to it as a companion service owned by the trader.
Monitoring
Everything that trades in production is supported by PRE, BHFT’s Platform Reliability Engineers, and they are demanding. Before launch they hand the strategy owner a questionnaire: which parameters to watch, what counts as an emergency, what to do in one, how to reach the owner. The platform team filled it in like everyone else.
In practice the team ran first-line support itself. Chinese markets open well before dawn for the team, and for the first days someone was up for every open. Alerting is plain engineering: the strategy writes logs, key numbers become metrics, metrics go on dashboards.
Risk watches the money in real time. Compliance watches regulatory risk, the kind that costs a license. Both can step in. Neither has had a question about this strategy so far.
Live trades
The team reviewed every trade itself. That was the point of the exercise: the setup was new and could have flaws, and so could the strategy.
The first trade went fine. The second came in well short of what the strategy expected. The cause was a bug in the strategy logic. It was fixed, and the trades that followed behaved.
Live trading also exposed a harder limit: latency on market data and order entry. It didn’t matter for the first trader’s simpler strategy, but it mattered for the platform team’s, which was leaving money on the table. The team is moving to a faster setup.
The score so far is roughly zero: no loss and no profit, against the modest profit the research predicted. The team counts it a win. Live trading found the limits of the setup and started the work on a faster one, which was the main goal. Matching research to real money is still in progress.
What the agent didn’t replace
The platform team did the trader’s and the quant’s job, with the agent. People were irreplaceable in validation. It took a person to notice that the agent had forgotten T+1 after launch. The trader-orchestrator added checks from his own experience. Subtler problems need someone with trading experience who looks at a result and says: that doesn’t happen, or not on this market. That is what the committee is for.
Can any developer at BHFT do this? This was the first case, so nobody knows yet how the next proposal will be received. The path is the same for everyone, and the committee exists to hear new ideas. Some won’t survive it.
With and without the agent
There is no control group: the team had never done this without an agent, so the right-hand column is its own estimate. The biggest difference is in ideas. As one colleague put it, they have become practically free. Without an agent, the starting point would have been papers and books.
Table 2. The same project with and without the agent
|
With Claude |
Without an agent |
|
|---|---|---|
|
Idea catalog |
14 ideas in a day, filtered against the rules |
Papers and books first, then ideas |
|
Code |
Mostly written by the agent, in parallel with the team’s main work |
Written by hand, competing with the main work |
|
Parameter sweep |
84 combinations on a fast simulator |
Years on the platform backtester |
|
Whole cycle |
About 3 months, approvals included |
At least a year |
Conclusion
A team of developers with no trading background took a strategy from a list of legal constraints to live orders. At BHFT the idea went the same way a trader’s idea would: research, a trader’s review, the committee, reliability onboarding and live trading at minimum size.
The agent made code and ideas cheap, and that moved the work elsewhere: into giving the agent complete information and checking what came back. Implausible numbers got questioned, data got reconciled against the exchange, and the simulator got checked against live fills.
People were still needed wherever experience mattered: to catch what the agent forgot, to add a trader’s checks, and to sit on the committee. And the strategy did what it was built for. It exposed the latency limits of the current connection, and the team is moving to a faster one.
Sources
1. HSBC. China A Shares: product fact sheet. https://www.hsbc.com.hk/content/dam/hsbc/hk/docs/investments/stocks/china-a-shares/product-fact-sheet.pdf
2. Wiecki, T., Campbell, A., Lent, J., Stauth, J. All that Glitters Is Not Gold: Comparing Backtest and Out-of-Sample Performance on a Large Cohort of Trading Algorithms. SSRN, 2016. https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2745220
3. Hong, K., Troynikov, A., Huber, J. Context Rot: How Increasing Input Tokens Impacts LLM Performance. Chroma, July 2025. https://trychroma.com/research/context-rot
4. OpenAI. Why language models hallucinate. September 2025. https://openai.com/index/why-language-models-hallucinate/
5. China Securities Regulatory Commission. Notice on securities lending. https://www.csrc.gov.cn/csrc/c100028/c7493852/content.shtml