Live data from Hacker News

Ultra-Low-Latency Trading System

submicro.krishnabajpai.me

41–50 of 69 posts

Re: Ultra-Low-Latency Trading System

#41

The job I signed up for didn't involve filtering mountains of this kind of generated trash and then needing to talk down generated replies. Kind of want to go work in an oilfield, maybe offshore.

Congrats on the vacation vibes! Hope you enjoy some well-earned time offshore or wherever it takes you.

Re: Ultra-Low-Latency Trading System

#42

Earlier quoted context omitted.

> What it does not do > No live exchange connectivity > No order routing, risk checks, or compliance layers > Not intended for real trading or commercial use I think you need to frame the website better to position this project. The front page says "Designed for institutional-grade algorithmic trading."

That’s fair feedback — you’re right that the front-page wording overreaches given the current scope. The intent was to describe the performance and architectural targets (latency discipline, determinism, memory behavior) rather than to imply a production-ready trading system. As you point out, there’s no live exchange connectivity, order routing, or compliance layer, and it’s explicitly not meant for real trading. I’…

Better yet, instead of positioning it as an institutional-style research. You should frame it as an information hub for bovine castration techniques.

Re: Ultra-Low-Latency Trading System

#43

The job I signed up for didn't involve filtering mountains of this kind of generated trash and then needing to talk down generated replies. Kind of want to go work in an oilfield, maybe offshore.

Congrats on the vacation vibes! Hope you enjoy some well-earned time offshore or wherever it takes you.

lmao is this parody/performance art?

Re: Ultra-Low-Latency Trading System

#44
post #34

I can't believe some people starred this

The main goal is experimenting and sharing what I’ve learned. Seems like people are enjoying it, which is nice to see.

It's literally impossible to see what it is you've learned because it's clouded in in a 20ft wall of shit

Re: Ultra-Low-Latency Trading System

#45
post #44

Earlier quoted context omitted.

The main goal is experimenting and sharing what I’ve learned. Seems like people are enjoying it, which is nice to see.

It's literally impossible to see what it is you've learned because it's clouded in in a 20ft wall of shit

I hear you. I realize the repository and docs are dense and can be overwhelming. I’m actively working on cleaning up the presentation, improving examples, and making the intent and learning points easier to see. Thanks for your feedback.

Re: Ultra-Low-Latency Trading System

#46

Earlier quoted context omitted.

Congrats on the vacation vibes! Hope you enjoy some well-earned time offshore or wherever it takes you.

lmao is this parody/performance art?

Not a parody, just me trying to keep the thread constructive while sharing the project. Enjoying the discussion, even when it gets a bit wild.

Re: Ultra-Low-Latency Trading System

#47

Earlier quoted context omitted.

Congrats on the vacation vibes! Hope you enjoy some well-earned time offshore or wherever it takes you.

lmao is this parody/performance art?

I sympathize with your pain. I Want To Get Off Mr Bones' Wild Ride...

Re: Ultra-Low-Latency Trading System

#48
Some comments from skimming through the code:

- spin loop engine, could properly reset work available before calling the work function, and avoid yielding if new work was added in-between. I don't see how you avoid reentrancy issues as-is.

- lockfree queue, the buffer should store storage for Ts, not Ts. As it is, looks not only UB, but broken for any non-trivial type.

- metrics, the system seems weakly consistent, that's not ideal. You could use seqlocks or similar techniques.

- websocket, lacking error handling, or handling for slow or unreliable consumers. That could make your whole application unreliable as you buffer indefinitely.

- order books; first, using double for price everywhere, problematic for many applications, and causing unnecessary overhead on the decoding path. Then the data structure doesn't handle very sparse and deep books nor significant drift during the day. Richness of the data is also fairly low but what you need is strategy-dependent. Having to sort on query is also quite inefficient when you could just structure your levels in order to begin with, typically with a circular buffer kind of structure (as the same prices will frequently oscillate between bid and ask sides, you just need to track where bid/ask start/end).

- strategy, the system doesn't seem particularly suited for multi-level tick-aware microstructure strategies. I get more of a MFT vibe from this.

- simulation, you're using a probabilistic model for fill rate with market impact and the like. In HFT I think precise matching engine simulation is more common, but I guess this is again more of a MFT tangent. Could be nice to layer the two.

- risk checks, some of those seem unnecessary on the hot path, since you can just lower the position or pnl limits to order size limits.

Re: Ultra-Low-Latency Trading System

#49

Some comments from skimming through the code: - spin loop engine, could properly reset work available before calling the work function, and avoid yielding if new work was added in-between. I don't see how you avoid reentrancy issues as-is. - lockfree queue, the buffer should store storage for Ts, not Ts. As it is, looks not only UB, but broken for any non-trivial type. - metrics, the system seems weakly consistent, t…

Thankyou so much all this feedback. I’d also love to connect and discuss some of these points further if you’re open.

Re: Ultra-Low-Latency Trading System

#50
post #5

Those numbers seem to be TSC sampled in software from the moment it receives a full frame to the moment it starts sending a packet. The traditional way to measure performance in HFT is hardware timestamps on the wire, start of frame in to start of frame out. With those measurements the performance is probably closer to 2us, which is usually the realistic limit of a non-trivial software trading system.

Not really, often you can pre compute your model and just do some kind of interpolation on price change and get it done sub 1us wire-to-wire.

Just waiting for a MTU-sized frame to come in through the network at 10Gbps is 1.2us.

Reacting to incomplete frames in software is possible, but realistically at this point just use FPGAs already.

Post reply on HN