billpwchan / futu_algo

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

Dynamic Instantiation may use same instances to save spaces #27

Closed billpwchan closed 2 years ago

billpwchan commented 3 years ago

Instead of creating an instance for each stock code, re-use strategies instance for stocks that are configured to use the same strategy.

billpwchan commented 2 years ago

Updated code in main_backend.py