MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / octobot_parser

Function octobot_parser

octobot/cli.py:682–769  ·  view source on GitHub ↗
(parser, default_config_file=None)

Source from the content-addressed store, hash-verified

680
681
682def octobot_parser(parser, default_config_file=None):
683 parser.add_argument('-v', '--version', help='Show OctoBot current version.',
684 action='store_true')
685 parser.add_argument('-s', '--simulate', help='Force OctoBot to start with the trader simulator only.',
686 action='store_true')
687 parser.add_argument('-u', '--update', help='Update OctoBot to latest version.',
688 action='store_true')
689 parser.add_argument('-rts', '--reset-trading-history', help='Force the traders to reset their history. They will '
690 'now take the next portfolio as a reference for '
691 'profitability and trading simulators will use a '
692 'fresh new portfolio.',
693 action='store_true')
694 parser.add_argument('-b', '--backtesting', help='Start OctoBot in backesting mode using the backtesting '
695 'config stored in config.json.',
696 action='store_true')
697 parser.add_argument('-bf', '--backtesting-files', type=str, nargs='+',
698 help='Backtesting files to use (should be provided with -b or --backtesting).',
699 required=False)
700 parser.add_argument('-wdr', '--whole-data-range',
701 help='On multiple files backtesting: run on the whole available data instead of the '
702 'common part only (default behavior).',
703 action='store_true')
704 parser.add_argument('-ebt', '--enable-backtesting-timeout',
705 help='When enabled, the watcher is limiting backtesting time to 30min.'
706 'When disabled, the backtesting run will not be interrupted during execution',
707 action='store_true')
708 parser.add_argument('-r', '--risk', type=float, help='Force a specific risk configuration (between 0 and 1).')
709 parser.add_argument(
710 '--user-folder',
711 type=str,
712 default=None,
713 help='User data root (config, profiles, reference tentacles). Relative to the current working directory.',
714 )
715 parser.add_argument(
716 '--log-folder',
717 type=str,
718 default=None,
719 help='Log files directory. When set, overrides the LOGS_FOLDER environment variable and default "logs".',
720 )
721 parser.add_argument('-nw', '--no_web', help="Don't start OctoBot web interface.",
722 action='store_true')
723 parser.add_argument('-nl', '--no_logs', help="Disable OctoBot logs in backtesting.",
724 action='store_true')
725 parser.add_argument('-nt', '--no-telegram', help='Start OctoBot without telegram interface, even if telegram '
726 'credentials are in config. With this parameter, your Octobot '
727 'won`t reply to any telegram command but is still able to listen '
728 'to telegram feed and send telegram notifications',
729 action='store_true')
730 parser.add_argument('--encrypter', help="Start the exchange api keys encrypter. This tool is useful to manually add"
731 " exchanges configuration in your config.json without using any interface "
732 "(ie the web interface that handle encryption automatically).",
733 action='store_true')
734 parser.add_argument(
735 "--dump-state",
736 type=str,
737 default=None,
738 help="Absolute path of the JSON file where OctoBot periodically writes ProcessBotState (liveness, "
739 "next to the user config directory). Omitted in normal use; spawned DSL children pass this explicitly.",

Callers 1

mainFunction · 0.85

Calls 2

_register_node_argumentsFunction · 0.85
start_octobotFunction · 0.85

Tested by

no test coverage detected