tensortrade-org / tensortrade

An open source reinforcement learning framework for training, evaluating, and deploying robust trading agents.
https://discord.gg/ZZ7BGWh
Apache License 2.0
4.52k stars 1.02k forks source link

Circular Imports #458

Closed grizzlybearg closed 10 months ago

grizzlybearg commented 1 year ago

I've been trying to use TensorTrade but there are issues importing modules due to circular imports. Has anyone tried to fix this?

ImportError: cannot import name 'TradingPair' from partially initialized module 'tensortrade.oms.instruments' (most likely due to a circular import) (.../oms/instruments/init.py)

I've tried making some changes but it always ends up breaking something elsewhere.