BitMEX / sample-market-maker

Sample BitMEX Market Making Bot
Apache License 2.0
1.7k stars 757 forks source link

help for step 3-4 #65

Closed Vict0r97 closed 6 years ago

Vict0r97 commented 6 years ago

Hi guys, so in step 3 i edit with notepad settings_base.py and add my API key et set dry_run = true what is marketmaker [symbol meaning???], i don't undestand the symbol, and when i run bot nothing appear, i am doing the right way? i can't even test it

when i do "start marketmaker [symbol]" it cmd appears and disappears like nothing happened i need cleary how to do steps 3 and 4, it's not well explained for me.

Thanks for your help, Victor

ryanfox commented 6 years ago

You shouldn't edit _settings_base.py, instead edit settings.py.

[symbol] means substitute the instrument's symbol listed on BitMEX. For example, to use ETHXBT, run marketmaker ETHXBT. The symbol is optional, and defaults to XBTUSD. If you leave it off, it is the same as running marketmaker XBTUSD.

Vict0r97 commented 6 years ago

That's ok, but in settings.py there is nothing to write whereas the code is in settings_base. Thanks for the symbol ok ok Plus what is base_URL?? i'm not clear at all (i am using https://testnet.bitmex.com/app/trade/XBTUSD) Thanks to you, Victor

I will add this for you understanding me:

I did : start marketmaker setup Now i have a file settings.py, how i add my APIkeys on this? because theres is "API=" in settings_base ? I am blocked right here and i dont know how to do until the end (i'm not user Python that's what it is difficult for me, sorry) what i have on settings.py:

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)

....

ryanfox commented 6 years ago

You need to follow the directions to get set up: https://github.com/BitMEX/sample-market-maker/tree/dev#getting-started

Vict0r97 commented 6 years ago

the problem is i don't understand the directions

ryanfox commented 6 years ago

This library is intended for developers - a certain level of experience with Python and programming is necessary to be able to use it.

You might try some python learning resources or stackoverflow.

Closing this because it's not an issue with the library.