billpwchan / futu_algo

Futu Algorithmic Trading Solution (Python) 基於富途OpenAPI所開發量化交易程序
Apache License 2.0
377 stars 130 forks source link

Support for MacOS or Linux #30

Closed HCharlie closed 2 years ago

HCharlie commented 2 years ago

Hi there, is it possible for the project to run on Mac OS or Linux system? Or any plan for this?

billpwchan commented 2 years ago

Thanks for the message!

I think the code itself should be okay for running on Linux, but since I'm relying on Futu OpenD on Windows, there may be some minor changes needed for this to work fully on other OS.

One example can be the auto-invocation of OpenD on Windows, in which if you're running this on another OS, you have to change/remove this part of code so that it will not try to call an executable program from a directory that only exists in Windows.

billpwchan commented 2 years ago

Updated all path-related code to Pathlib with better support for Mac OS and Linux system. Thanks!