Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no place in to added API key and secret

See original GitHub issue

Hello, I started with powershell pip install bitmex-market-maker

then marketmaker setup file is created, but I see no where for an API Key or secret to be placed.

my 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” % 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

I am Windows 7 Phython 3.6.5

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

grantbelfordcommented, May 1, 2019

ah. API key & secret can be edited under

ryanfoxcommented, Apr 10, 2018

Go up a directory, edit the there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

where to store api key in Django - Stack Overflow
One way is to have a file that's imported in the main file and put into .gitignore so it's not in...
Read more >
User Guide - Django REST Framework API Key - GitHub Pages
The HasAPIKey permission class protects a view behind API key authorization. You can set the permission globally: # REST_FRAMEWORK ...
Read more >
Hide API keys in Python scripts using python-dotenv, .env, and ...
Sometimes you want to make your code public, but don't want to share an API key, email address, or password with the world....
Read more >
Secure Your API Keys - Medium
One of the easiest ways to handle this is by creating a file. ... sure your private key/secret data is not publicly...
Read more >
Settings - Django documentation
Here's a list of settings available in Django core and their default ... The CACHES setting must configure a default cache; any number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found