You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking through the code for the environment and I notice that it is holding onto a lot of information that the exchange would be holding onto, such as:
balance
account_history
price (at the time of trade), etc.
It might be good to make an Exchange abstract class. This class will hold all information that has to do with your account, and in addition can be set to have a paper mode or a live trading mode. We can make a DummyExchange class to handle the cases where the algorithm is either training, testing, or in paper mode, then for live trading it would just be a matter of switching the mode to live. I think it would also make the exchanges more pluggable. So the abstract class would look something similar to this:
When live trading the class would just need to be injected with the credentials so that live trading could take place. Let me know if this is at all helpful!
The text was updated successfully, but these errors were encountered:
I'm looking through the code for the environment and I notice that it is holding onto a lot of information that the exchange would be holding onto, such as:
It might be good to make an Exchange abstract class. This class will hold all information that has to do with your account, and in addition can be set to have a paper mode or a live trading mode. We can make a DummyExchange class to handle the cases where the algorithm is either training, testing, or in paper mode, then for live trading it would just be a matter of switching the mode to live. I think it would also make the exchanges more pluggable. So the abstract class would look something similar to this:
When live trading the class would just need to be injected with the credentials so that live trading could take place. Let me know if this is at all helpful!
The text was updated successfully, but these errors were encountered: