using Anubis.Server; // "anubis db export " and "anubis db import " (SPEC 5.4) run with the engine stopped; anything else starts the server. if (args.Length >= 1 && args[0] == "db") { return await DatabaseCommand.RunAsync(args[1..]).ConfigureAwait(false); } // "anubis data report|binance|csv": the data quality report and the research imports (Phase 2). if (args.Length >= 1 && args[0] == "data") { return await DataCommand.RunAsync(args[1..]).ConfigureAwait(false); } // "anubis backtest base": the honest backtests of the base strategies, written to docs/backtests (Phase 5). if (args.Length >= 1 && args[0] == "backtest") { return await BacktestCommand.RunAsync(args[1..]).ConfigureAwait(false); } // "anubis soak": the report of the endurance run in real time, read from the bot's records while it works (Phase 6). if (args.Length >= 1 && args[0] == "soak") { return await SoakCommand.RunAsync(args[1..]).ConfigureAwait(false); } // "anubis diagnostics": the data collected for the analysis of a long run, as one report to paste (issue #95). if (args.Length >= 1 && args[0] == "diagnostics") { return await DiagnosticsCommand.RunAsync(args[1..]).ConfigureAwait(false); } var app = ServerApp.Build(args); await app.RunAsync().ConfigureAwait(false); return 0;