Ejemplo n.º 1
0
def run():
    parser = argparse.ArgumentParser(description='sample BitMEX market maker')
    parser.add_argument('command', nargs='?', help='Instrument symbol on BitMEX or "setup" for first-time config')
    args = parser.parse_args()

    if args.command is not None and args.command.strip().lower() == 'setup':
        copy_files()

    else:
        # import market_maker here rather than at the top because it depends on settings.py existing
        try:
            from market_maker import market_maker
            market_maker.run()
        except ImportError:
            print('Can\'t find settings.py. Run "marketmaker setup" to create project.')
Ejemplo n.º 2
0
def run():
    parser = argparse.ArgumentParser(description='sample BitMEX market maker')
    parser.add_argument('command', nargs='?', help='Instrument symbol on BitMEX or "setup" for first-time config')
    args = parser.parse_args()

    if args.command is not None and args.command.strip().lower() == 'setup':
        copy_files()

    else:
        # import market_maker here rather than at the top because it depends on settings.py existing
        try:
            from market_maker import market_maker
            market_maker.run()
        except ImportError:
            print('Can\'t find settings.py. Run "marketmaker setup" to create project.')
Ejemplo n.º 3
0
#!/usr/bin/env python

from market_maker import market_maker
market_maker.run()