rr_trading ========== .. py:module:: rr_trading Attributes ---------- .. autoapisummary:: rr_trading.app rr_trading.FORMAT Classes ------- .. autoapisummary:: rr_trading.AppState Functions --------- .. autoapisummary:: rr_trading.rr_trading rr_trading.print_config rr_trading.setup rr_trading.paper_trade rr_trading.live_trade rr_trading.push_backtest Module Contents --------------- .. py:data:: app .. py:class:: AppState .. py:attribute:: file_log_level :value: 'INFO' .. py:attribute:: console_log_level :value: 'INFO' .. py:data:: FORMAT :value: '%(message)s' .. py:function:: rr_trading(ctx, log_level_console = typer.Option('INFO', '--log-level-console', help='Logging level for console (e.g., DEBUG, INFO, WARNING, ERROR, CRITICAL, NOTSET)'), log_level_file = typer.Option('NOTSET', '--log-level-file', help='Logging level for file log (e.g., DEBUG, INFO, WARNING, ERROR, CRITICAL, NOTSET)')) Initialize logging before any command runs. .. py:function:: print_config() Print the current user configuration. .. py:function:: setup() Interactive setup wizard for the user configuration. .. py:function:: paper_trade(config, predict_time_str = '', predict_time_end_str = '', account_uuid = '') Run the model on the Alpaca paper trading account. Explicit command for paper and live trading for total seperation .. py:function:: live_trade(config, confirmation = False) Run the model on the Alpaca live trading account. Explicit command for paper and live trading for total seperation .. py:function:: push_backtest(config, backtest_dir, account_uuid = '')