Closed femtotrader closed 8 years ago
That is how the full engine actually works. My approach is minimize editing of files while I explain the code and slowly expand. I don't want users that just want to try it out to edit any other files.
btw, this is from the full engine
def init(config):
oanda = oandapy.API(environment=config['OANDA_ENVIRONMENT'], access_token=config['OANDA_ACCESS_TOKEN'])
strategy_data = read_strategy(config['STRATEGY_FILE'])
return oanda, strategy_data
Hello,
it's not very safe to have
OANDA_ACCESS_TOKEN
andOANDA_ACCOUNT_ID
in script (because you can accidentally push to GitHub these very private data)You might have
config.py
file andconfig.default.py
fileAdd
config.py
to.gitignore
config.default.py
could be simplyUser will have to copy
config.default.py
toconfig.py
and editconfig.py
your scripts will contains
Kind regards