Jobs writing C++ code for high frequency trading firms (HFTs) and hedge funds can pay very well indeed. Headhunters put compensation (salary and bonus) for such roles at $600k+ a few years ago. But simply knowing C++ is not enough. The language is always comparatively fast, but for low latency trading applications you need to know how to make it really fast.
Get Morning Coffee ☕ in your inbox. Sign up here.
Paul Bilokon, a former director at Deutsche Bank, visiting professor at Imperial College London, and chief scientific advisor at Thalesians Marine Ltd, says that if you want an integral role as a C++ developer in an HFT team, familiarity low latency C++ is usually mandatory. Although some firms use programmable FPGAs to achieve ultra low latency, Bilokon says this can be complicated because they require specialized hardware knowledge and languages like Lucid, VHDL and Verilog. “Unless the company is prepared to invest in FPGAs in the long term (both in terms of research and development and ongoing support) it is probably a wise decision to get the most mileage (low latency) out of C++,” he tells us.
However, information on low latency C++ can be hard to come by. A paper* released last year by Bilokon and one of his PhD students looks at 12 techniques for reducing latency in C++ code, as follows:
Source: C++ design patterns for low-latency applications including high-frequency trading
The effectiveness of these techniques is shown in the chart above. While cache warming and contextpr can bring 90% efficiency improvements. Using signed comparisons only leads to a 12.5% increase.
If you’re interested in the topic, Bilokon also suggests watching the 2019 conference video by Carl Cook and Nimrod Sapir at QSpark, a provider of low-latency trading platforms, shown here:
*C++ design patterns for low-latency applications including high-frequency trading. Github: GitHub – 0burak/imperial_hft. Bilokon’s academic papers
Have a confidential story, tip, or comment you’d like to share? Contact: +44 7537 182250 (SMS, Whatsapp or voicemail). Telegram: @SarahButcher. Click here to fill in our anonymous form, or email editortips@efinancialcareers.com. Signal also available.
Bear with us if you leave a comment at the bottom of this article: all our comments are moderated by human beings. Sometimes these humans might be asleep, or away from their desks, so it may take a while for your comment to appear. Eventually it will – unless it’s offensive or libelous (in which case it won’t.)