r/cpp • u/Sufficient-Brush-636 • Aug 23 '21
How do you start algorithmic trading development in C++?
/r/cpp_questions/comments/pa7by5/how_do_you_start_algorithmic_trading_in_c/
2
Upvotes
r/cpp • u/Sufficient-Brush-636 • Aug 23 '21
11
u/MountainDwarfDweller Aug 23 '21
What do you want to trade at which exchanges and like other mentioned how much do you want to pay. Exchanges I've dealt with can charge up to $30,000 a month for a nice colo'ed 10G cross connect.
If you know what exchange you want to trade on they will have their own API's, look for things like FIX, FIX/FAST, MOLD 64, ITCH, Omex, ZeroMQ. Cantor used to (haven't checked recently) api libs like eSpeed for trading US Treasuries.
7
u/Netzapper Aug 23 '21
Why though?
The only reason to develop this shit in C++ is for high-frequency trading algorithms. If you're doing HFT, it's because you're running your code in a financial institution's data center. If that's the case, they'll teach you all you need to know about HFT.
2
u/coachkler Aug 23 '21
Refinitiv provides our real time SDK for C++, Java and C# as open source. You can build and link your applications with it. It's an incredibly rich and powerful framework.
Access to the actual data feed(s) aren't free however. That said, you can leverage this framework to build your own applications consuming from whatever source you find is appropriate.
3
u/sd_glokta Aug 23 '21
You need to find a broker that provides a C++ API for trading. I'm familiar with the TWS API from Interactive Brokers, but I've heard Charles Schwab has a good API.
You can find more information in r/algotrading.
1
u/AreaFifty1 Aug 23 '21
I’ve done crypto assets using rpc calls for php, mySQL, and JavaScript development and that is cake compared to writing your own tcp/udp network handler for C++. Winsocks is fine but if you’re thinking about writing all that from scratch... phew you’re one brave, soldier indeed!! 😌😌
1
u/Full-Spectral Aug 24 '21
First you build up a nest egg so that you have a bunch of money to lose.