Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

where to put config and exchange setting for simulation and live trading #28

Open
frndxyz opened this issue Feb 16, 2018 · 2 comments
Open

Comments

@frndxyz
Copy link

frndxyz commented Feb 16, 2018

Needed Doc for test this bot.

@ghost
Copy link

ghost commented Feb 19, 2018

Messing around the code it looks like you configure the exchange when creating a market instance in the strategy. In the BaseStrategy class init method there is these two lines which is probably what you are looking for:
if self.is_simulated: self.market = market_simulator.MarketSimulator(exchange, base_currency, quote_currency, simulated_quote_balance, self) else: self.market = market.Market(exchange, base_currency, quote_currency, self)
If you check the market.py you can see it get the exchange login from the "login-real.txt" file, you could probably change the market constructor to receive the api keys as parameter to use different exchanges or even accounts in different strategies.

@exdx
Copy link
Owner

exdx commented Mar 21, 2018

Hey guys - absolutely docs would be crucial. We have put together some basic docs in the wiki but more advanced documentation will come in the future ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants