50
submitted 1 year ago* (last edited 1 year ago) by TheDude@sh.itjust.works to c/python@sh.itjust.works

With r/python out for the next 48 hours, here’s a post to promote continuing discussion a language we all love. Python.

you are viewing a single comment's thread
view the rest of the comments
[-] SleepyHarry@sh.itjust.works 1 points 1 year ago

While I love Python, it's not the easiest language to do high freq low latency work on as I imagine algotrading would demand.

How have you worked around this, if at all?

I can't find a way to word this that doesn't sound really aggressive, the question is in good faith!

[-] Bluetreefrog@lemmy.world 4 points 1 year ago

Liberal use of libraries written in c (e.g. pandas, pytorch, numpy), some use of cython (not in the current version, but I have done so), and relying on time frames and strategies which have some tolerance for latency. If you trade five minutes after the start of a 1 day candle on the basis of where you expect it to be at close, it's not such a big problem.

It's a losing game to try and out-pace the big end of town.

this post was submitted on 12 Jun 2023
50 points (100.0% liked)

Python

1913 readers
3 users here now

A community for talking about the Python programming language.

founded 1 year ago
MODERATORS