no place in settings.py to added API key and secret
See original GitHub issueHello,
I started with powershell pip install bitmex-market-maker
then marketmaker setup
settings.py file is created, but I see no where for an API Key or secret to be placed.
my settings.py file reads `from future import absolute_import
import importlib import os import sys
from market_maker.utils.dotdict import dotdict import market_maker._settings_base as baseSettings
def import_path(fullpath): “”" Import a file with full path specification. Allows one to import from anywhere, something import does not do. “”" path, filename = os.path.split(fullpath) filename, ext = os.path.splitext(filename) sys.path.insert(0, path) module = importlib.import_module(filename, path) importlib.reload(module) # Might be out of date del sys.path[0] return module
userSettings = import_path(os.path.join(‘.’, ‘settings’)) symbolSettings = None symbol = sys.argv[1] if len(sys.argv) > 1 else None if symbol: print(“Importing symbol settings for %s…” % symbol) try: symbolSettings = import_path(os.path.join(‘…’, ‘settings-%s’ % symbol)) except Exception as e: print(“Unable to find settings-%s.py.” % symbol)
“# Assemble settings.” settings = {} settings.update(vars(baseSettings)) settings.update(vars(userSettings)) if symbolSettings: settings.update(vars(symbolSettings))
“# Main export” settings = dotdict(settings)
`
I also see a file called _settings_base.py
I am Windows 7 Phython 3.6.5
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top GitHub Comments
ah. API key & secret can be edited under settings_base.py
Go up a directory, edit the
settings.py
there.