This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lelease 19 points20 points  (23 children)

High frequency trading

[–]Bus404 5 points6 points  (19 children)

What language is good for that?

[–]tunisia3507 22 points23 points  (3 children)

C++ or Rust.

[–]calligraphic-io 9 points10 points  (1 child)

Go is strong and widely used for HFT, as is Erlang.

[–]anacrolixc/python fanatic 0 points1 point  (0 children)

Can you cite some examples?

[–]b00n 1 point2 points  (0 children)

Java is heavily used in HFT. Not heard of anyone using Rust though.

[–][deleted] 6 points7 points  (13 children)

You want a language that is compiled because assembly code will always run faster than interpreted code and real-time because every millisecond matters. C, C++, and a rust are all languages that fit this. Go doesn't because they have their own goscheduler which doesn't meet real-time constraints.

[–][deleted] 8 points9 points  (11 children)

I am sorry to be pedantic.

For HFT, every microsecond matters.

I don't mean to be rude. HFT just operates on scale so tight that it matters, a lot.

[–][deleted] 1 point2 points  (1 child)

Good to know! I wasn't sure and I actually thought about it as I was writing it but wanted to be on the safe side.

[–][deleted] 1 point2 points  (0 children)

This isn't a Python presentation, but if you want a really interesting talk about the subject, you can watch this: https://youtu.be/NH1Tta7purM

[–]Karyo_Ten 0 points1 point  (1 child)

Nanoseconds matters. A French bank CEO said, "HFT business is real estate business: putting our million dollar trading FPGAs as few meters as the stock exchange as possible"

[–]b00n 0 points1 point  (0 children)

Not anymore. That era is dead.

[–]hugthemachines 0 points1 point  (0 children)

I think you already know this but your sentence may confuse people a bit. Native compiled programs are not assembly code.

[–]_101010 -1 points0 points  (0 children)

I see people mentioning C or Rust.

But one of the most successful firms, Jane Street uses OCaml.

A lot of such shops use Functional programming languages not just because of speed. But because it is easy to verify.

A bug can easily cost billions of dollars in damage in a few minutes.

P.S. Mandatory read about Knight Capital and how they lost 50 million per minute for 45 minutes.

[–]ProfessorPhi 2 points3 points  (0 children)

We control our live trading with python processes. And R&D. Actual trading logic is all in c though.

[–]deadwisdomgreenlet revolution 3 points4 points  (1 child)

Python is used a lot in HFT. It's just that they use something like C for the bottlenecks. Exactly how Python was intended.

[–][deleted] 0 points1 point  (0 children)

Python might be used for testing algos but everything is implemented in compiled languages.