babao package

Submodules

babao.arg module

Argv parsing

babao.arg.parseArgv(args)[source]

Parse argv ´args´

babao.babao module

Module that contains the command line app.

Why does this file exist, and why not put this in __main__?

You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice:

  • When you run python -mbabao python will execute __main__.py as a script. That means there won’t be any babao.__main__ in sys.modules.
  • When you import __main__ it will get executed again (as a module) because there’s no babao.__main__ in sys.modules.

Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration

babao.babao.main(args=None)[source]

Babao entry point

babao.commands module

Commands launched by parseArgv

babao.commands.backtest(args)[source]

Just a naive backtester

It will call the trained strategies on each test data point

babao.commands.dryRun(unused_args)[source]

Real-time bot simulation

babao.commands.fetch(unused_args)[source]

Fetch raw trade data since the beginning of times

babao.commands.train(args)[source]

Train the various (awesome) algorithms

babao.commands.wetRun(unused_args)[source]

Dummy

babao.config module

Here we’ll handle the config file and the various file/dir paths

babao.config.readConfigFile(cmd_name='dry-run')[source]

Read config file and initialize global config variables

babao.graph module

Module contents