def slippage_report(data): start_date, end_date= get_report_dates() report_config = email_or_print_or_file(slippage_report_config) report_config.modify_kwargs( start_date=start_date, end_date=end_date ) run_report(report_config, data=data)
def roll_report(data): instrument_code = get_valid_instrument_code_from_user( data, allow_all=True, all_code=ALL_ROLL_INSTRUMENTS ) report_config = email_or_print_or_file(roll_report_config) report_config.modify_kwargs(instrument_code=instrument_code) run_report(report_config, data=data)
def slippage_report(data): start_date, end_date, calendar_days = get_report_dates(data) report_config = email_or_print_or_file(slippage_report_config) report_config.modify_kwargs(calendar_days_back=calendar_days, start_date=start_date, end_date=end_date) run_report(report_config, data=data)
def pandl_report(data): start_date, end_date, calendar_days = get_report_dates(data) report_config = email_or_print(daily_pandl_report_config) report_config.modify_kwargs(calendar_days_back=calendar_days, start_date=start_date, end_date=end_date) run_report(report_config, data=data)
def account_curve_report(data: dataBlob): run_full_report = true_if_answer_is_yes('Run normal full report? (alternative is customise dates)') if run_full_report: start_date = arg_not_supplied end_date = arg_not_supplied else: start_date, end_date = get_report_dates() report_config = email_or_print_or_file(account_curve_report_config) report_config.modify_kwargs( start_date=start_date, end_date=end_date ) run_report(report_config, data = data)
def strategy_report(data): strategy_name = get_valid_strategy_name_from_user( data=data, allow_all=True, all_code=ALL_STRATEGIES ) if strategy_name != ALL_STRATEGIES: timestamp = interactively_choose_timestamp( strategy_name=strategy_name, data=data ) else: timestamp = arg_not_supplied report_config = email_or_print_or_file(strategy_report_config) report_config.modify_kwargs(strategy_name=strategy_name, timestamp=timestamp) run_report(report_config, data=data)
def remove_markets_report(data): report_config = email_or_print_or_file(remove_markets_report_config) run_report(report_config, data=data)
def duplicate_market_report(data): report_config = email_or_print_or_file(duplicate_market_report_config) run_report(report_config, data=data)
def min_capital_report(data): report_config = email_or_print_or_file(min_capital_report_config) run_report(report_config, data=data)
def instrument_risk_report(data): report_config = email_or_print_or_file(instrument_risk_report_config) run_report(report_config, data=data)
def liquidity_report(data): report_config = email_or_print_or_file(liquidity_report_config) run_report(report_config, data=data)
def reconcile_report(data): report_config = email_or_print(reconcile_report_config) run_report(report_config, data=data)
def risk_report(data): report_config = email_or_print_or_file(risk_report_config) run_report(report_config, data=data)
def status_report(data): report_config = email_or_print_or_file(status_report_config) run_report(report_config, data=data)
def email_trades_report(self): run_report(self.config, data=self.data)
def run_generic_report(self): ## Will be renamed run_report(self.config, data=self.data)
def cost_report(data): report_config = email_or_print_or_file(costs_report_config) run_report(report_config, data=data)