ricequant / rqalpha-mod-tushare

Make Tushare compatible with RQAlpha
Apache License 2.0
185 stars 33 forks source link

Suggest to loosen the dependency on rqalpha #7

Open Agnes-U opened 1 year ago

Agnes-U commented 1 year ago

Hi, your project rqalpha-mod-tushare(commit id: 60809a77515a2594dba07a0e5d6d99fa093d8dd4) requires "rqalpha==2.0.0" in its dependency. After analyzing the source code, we found that the following versions of rqalpha can also be suitable, i.e., rqalpha 0.3.12, 0.3.13, 0.3.14, 0.3.15, 0.3.16, 2.0.0b0, since all functions that you directly (2 APIs: rqalpha.interface.AbstractMod.init, rqalpha.data.base_data_source.BaseDataSource.init) or indirectly (propagate to 7 rqalpha's internal APIs and 6 outsider APIs) used from the package have not been changed in these versions, thus not affecting your usage.

Therefore, we believe that it is quite safe to loose your dependency on rqalpha from "rqalpha==2.0.0" to "rqalpha>=0.3.12,<=2.0.0". This will improve the applicability of rqalpha-mod-tushare and reduce the possibility of any further dependency conflict with other projects.

May I pull a request to further loosen the dependency on rqalpha?

By the way, could you please tell us whether such an automatic tool for dependency analysis may be potentially helpful for maintaining dependencies easier during your development?