frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: FLOX – C++ framework for building trading systems

https://github.com/eeiaao/flox
19•eeiaao•1d ago
Finished my trading infrastructure project over the weekend - it’s called FLOX. Built in pure C++ (uses C++20 features), it’s a modular framework for building HFT systems, trading infra, market data feeds, or even something like a TradingView clone.

Everything is open source: https://github.com/eeiaao/flox Docs: https://eeiaao.github.io/flox/

There are tests and benchmarks to keep it stable. Might add JS engine support later for scripting strategies.

Open to feedback and contributions.

Comments

idispatch•1d ago
Related video for those who are interested: “When Nanoseconds Matter: Ultrafast Trading Systems in C++ - David Gross - CppCon 2024” https://youtu.be/sX2nF1fW7kI?si=komqKuZ0-eOH2v4V

This is basics for those who start creating anything HFT.

Your project is a nice start. It has a lot of things waiting to be added and improved. I’d also add it looks like a 1-2 week project (excluding benchmarks) in my company for people who just started doing trading systems, and it reminds me of the project that is given to people that have finished C++ training and need something to exercise on.

While it is a good start, I’d add you may find a lot of interesting ideas in QuantLib (https://www.quantlib.org/).

Please also be careful with double for price and quantity especially in HFT and especially with asset types like BTC. The precision issues may lead to some confusion and eventual losses here and there. I noticed that you use fuzzy floating point comparisons, even in tests. That may not be suitable for important use cases.

Please also add some examples for specific trading strategies. Let’s say if you have back testing and some simple historic data in JSON a good example could be a comparison of two trading strategies and the difference compared to most optimal trading strategy possible.

eeiaao•14h ago
Appreciate your interest.

Yea, there is lot to be added, that's by design. I'm not aiming for one-pass toy, this is foundational infra, not a weekend simulator.

FP numbers wrapper are planned. Sharing strategies is not a priority, maybe I will add some just for demo. And for sure I'm not sharing backtesting engine.

Goal to build infra - not give away alpha.

idispatch•8h ago
On that angle - I like the project structure, overall, CMake use and documentation. It was helpful to understand, high level, before diving into code.

I also recall the discussion here related to fast associative containers, like unordered map/set. This is the implementation - https://github.com/martinus/unordered_dense

Combined with HFT CppCon talk that emphasizes the impact of node-based STL containers you may benefit from using some optimized hash maps on top of vectors, if you aim at top-performance in runtime. Also, abseil has some flat sets/maps implementation. All of this could be a nice addition if you experiment with performance (I figured that from std::pmr use in your project).

eeiaao•1h ago
100% agreed, stl containers should be replaced. The problem here is that I'd like to keep the core dependency-free... However, functionality first, squeeze maximum later. I'll definitely give a try for non-stl containers and if measurements beat - make the usage of container implementation controllable by compilation options, keeping things configurable as much as possible.

Thank you for your ideas and advice! Great and valuable feedback

Show HN: GenFoo, a suite of AI chat skins

https://www.genfoo.com/
1•matias_ciruelos•2m ago•0 comments

English Wine Cask Units

https://en.wikipedia.org/wiki/English_wine_cask_units
1•AceyMan•2m ago•0 comments

Nuclear-Powered Aircraft

https://en.wikipedia.org/wiki/Nuclear-powered_aircraft
1•nstj•3m ago•0 comments

Stack2Flat

https://Stack2Flat.com
2•kalokagathia•7m ago•0 comments

'Inflammaging' Drives Cancer–and Points to New Treatments

https://www.wsj.com/health/inflammation-cancer-rates-treatment-542513e7
1•voisin•9m ago•0 comments

Ask HN: Would you hire a dev who offers 1 day of work up front, no commitment?

1•codebytrial•10m ago•1 comments

Success can feel so close but so infinitely far away (2023)

https://blurry.substack.com/p/how-success-can-feel-so-close-but
1•thoughtpeddler•12m ago•0 comments

Diabolus Ex Machina

https://amandaguinzburg.substack.com/p/diabolus-ex-machina
2•bryanrasmussen•14m ago•0 comments

I have slightly longer timelines than some of my guests

https://www.dwarkesh.com/p/timelines-june-2025
1•aberoham•15m ago•0 comments

Ask HN: Since AI, do you feel less attached to your code? (as a craft)

1•benguild•15m ago•0 comments

The past, present and future of virtual environments in Python [video]

https://www.youtube.com/watch?v=CV8KRvWKYDw
1•vismit2000•15m ago•0 comments

"AI will replace all the jobs " Is Just Fluff

https://sparktoro.com/blog/ai-will-replace-all-the-jobs-is-just-tech-execs-doing-marketing/
1•arlattimore•15m ago•0 comments

Alasdair MacIntyre, Philosopher Who Saw a 'New Dark Ages,' Dies at 96

https://www.nytimes.com/2025/06/02/books/alasdair-macintyre-dead.html
1•paulpauper•16m ago•0 comments

Ask HN: Do indie bio labs and projects exist in modern genetic engineering?

1•speakfreely•16m ago•0 comments

My days collecting Mexican art, part I

https://marginalrevolution.com/marginalrevolution/2025/06/my-days-collecting-mexican-art-part-i.html
1•paulpauper•17m ago•0 comments

Physicality: The New Age of UI

https://www.lux.camera/physicality-the-new-age-of-ui/
2•tambourine_man•31m ago•0 comments

Yes or No Wheel

https://quickdecide.xieyonglin.com/wheels/yesorno/
1•ishowcode•31m ago•0 comments

Good Startup Communication

https://substack.gauravvohra.com/p/good-startup-communication
1•gauravvohra•40m ago•0 comments

Show HN: Radiant – Analyze a business's online presence

https://www.getradiant.me/analyzer
3•adi4213•44m ago•0 comments

Love Bomb: AI Is Coming for Our Relationships

https://centerforhumanetechnology.substack.com/p/intimacy-in-the-age-of-ai
2•mitchbob•45m ago•0 comments

Red Language Reference Manual

https://www.iment.com/maida/computer/redref/index.htm
1•todsacerdoti•48m ago•0 comments

Running FreeDOS inside a Pokémon Emerald save file

https://www.youtube.com/watch?v=nEwmYOZ-xME
2•boymilk•48m ago•0 comments

GenAI Startups for Hedge Funds

https://magis.substack.com/p/genai-for-hedge-funds-startups
1•izyda•1h ago•0 comments

Meta's AI Slop Will Make Ads Creepier and Worse

https://www.bloomberg.com/opinion/articles/2025-06-03/mark-zuckerberg-s-ai-slop-is-coming-to-ads
3•petethomas•1h ago•0 comments

Insilico Announces Nature Publication for Rentosertib Designed with AI Approach

https://www.nature.com/articles/s41591-025-03743-2
1•tiberiusg•1h ago•1 comments

Show HN: I turned my infrastructure into a tab

https://swiftor.io
1•furaar•1h ago•0 comments

ApiFlux – A Visual Playground to Build and Debug API Workflows

1•Shubham_APIFLUX•1h ago•1 comments

I created a curated list of AI agents for consumers and developers

https://www.agentrank.tech
2•hughmcinnis•1h ago•1 comments

Don't know if your business idea will have traction? stop waiting and find out

1•dopeylime•1h ago•0 comments

Big Tech's AI Endgame Is Coming into Focus (an everything app)

https://www.theatlantic.com/technology/archive/2025/06/everything-app-big-tech-ai-endgame/683024/
5•petethomas•1h ago•1 comments