Titan icon indicating copy to clipboard operation
Titan copied to clipboard

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

Open frndxyz opened this issue 7 years ago • 2 comments

Needed Doc for test this bot.

frndxyz avatar Feb 16 '18 07:02 frndxyz

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.

ghost avatar Feb 19 '18 23:02 ghost

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 ;)

exdx avatar Mar 21 '18 00:03 exdx