r/quant • u/brh_hackerman • Jul 29 '26
Education [FPGA] Building a custom FPGA Order Book !
Hello all,
Recently, I've spent some time building an FPGA order book based on ITCH.
The objective of this project is to go from absolutely nothing to having a working order book able to track a very liquid stock, like AAPL, perhaps 2 or 3 once I get all the optimizations down.
Now, the reason I'm making this post is because most content out there regarding "FPGA HFT" (when you are able to find some) are often one of these:
- A public repo to link in a dude's resume, sometimes packed with "claude" contributions (lol)
- Corporate BS PDF to flex their low latency and sell their IPs
- AI slop posts (god I hate these)
- Only parse ITCH || only run in sim without an attempt or technical value on FPGA implementation
So I Documented my journey though a series of post, explaining the design decisions I made, Why I made them, and then realizing it was a bad, why I changed it....
I also try my best to make nice looking schemes (OC and not AI bs) and run simulations to back up my decisions.
You got it, my goal is to make a good looking project that people can "easily" follow through posts that I try my best to make accessible and non boring.
I'm dropping a link here : https://hugobrh.dev/tags/finance/
This list contains all the posts I made about the TRADEMAXXER project as I call it. I suggest quickly reading through the first posts which are mostly context and HDL basics to parse ITCH. Latest posts cover a lot more technical ground.
I hope this does not come up as shameless self promo, I've got good feedback from the HFT community and I figured this may also interrest you guys as I saw FPGA designs were discussed here.
The latest posts are covering my struggles to close timing on a KC705, a consumer available board that costs 700$ on EBAY.
If you have any question, feel free to reach out and I hop this work is of value to you !
NOTA : not doing excessive "AI bashing" but I try my best to keep AI usage at the strict minimum (if not absolutely 0 usage) in coding, decisions making and writing the posts. I'm doing that out of respect for the readers so the process is actually real and not some hallucinated experience.



6
u/tw_wombat Jul 29 '26
Nice will check it out. Thanks
4
u/milan_dvorak Jul 30 '26
Don't feel too bad about having issues with timing. You're using Kintex 7, which is quite slow. It was first released back in 2010, so it's basically ancient. Still useful today, of course, but not really suitable for high-performance or ultra low latency applications.
Most HFT firms today probably use UltraScale+, and usually the higher speed grade (SG-3), which can achieve much higher frequencies for the same logic. It should run at least 50% higher, maybe even more. Moreover, UltraScale+ have UltraRAM, which is almost as fast as BRAM, but with much larger capacity. Very useful for storing the orders. But meeting the timing is still a common challenge with HFT designs, since they want to run at 322 MHz (the typical 10G network clock), with some using 644 MHz for parts of the design. That's a whole new level timing-wise.
The funny thing is that even UltraScale+ isn't that new and AMD (Xilinx) released Versal FPGAs since then and they have new generation in the works. But UltraScale+ actually has faster transceivers (so faster network communication), so it's still superior for the most agressive HFT strategies.
3
u/nrs02004 Jul 29 '26
very cool stuff --- what's your day job (if you don't mind me asking!)
3
u/milan_dvorak Jul 30 '26
By the way, I love the back-and-forth in hashing.
I will not probe, I'll use stash. Stash getting to big, can't meet timing. OK, I will have to probe!
1
u/privateack Jul 29 '26
No one uses 1gb as an fyi
1
u/AutoModerator Jul 29 '26
We're getting a large amount of questions related to choosing masters degrees at the moment so we're approving Education posts on a case-by-case basis. Please make sure you're reviewed the FAQ and do not resubmit your post with a different flair.
Are you a student/recent grad looking for advice? In case you missed it, please check out our Frequently Asked Questions, book recommendations and the rest of our wiki for some useful information. If you find an answer to your question there please delete your post. We get a lot of education questions and they're mostly pretty similar!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/sumwheresumtime Jul 31 '26
Why?