mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-12 01:38:07 +00:00
Enhance CLI command mode for ritmex-bot (#23)
- Introduced a new command mode for `ritmex-bot`, allowing agent-friendly structured trading operations without entering the Ink interactive menu. - Updated `package.json` to include versioning and set the project as public with a new CLI entry point. - Enhanced documentation in both English and Chinese to provide comprehensive usage instructions for the new command mode. - Added a new executable script for `ritmex-bot` to facilitate command execution. - Improved error handling and command parsing for better user experience and clarity in command execution.
This commit is contained in:
+6
-1
@@ -101,5 +101,10 @@ export function printCliHelp(): void {
|
||||
` Aliases: liquidity, liquidity-maker for the liquidity maker engine.\n` +
|
||||
` --exchange, -e Choose exchange. Overrides EXCHANGE/TRADE_EXCHANGE environment variables.\n` +
|
||||
` --silent, -q Reduce console output. When used with --strategy, runs in silent daemon mode.\n` +
|
||||
` --help, -h Show this help message.\n`);
|
||||
` --help, -h Show this help message.\n\n` +
|
||||
`Command mode:\n` +
|
||||
` ritmex-bot doctor\n` +
|
||||
` ritmex-bot exchange list\n` +
|
||||
` ritmex-bot market ticker --exchange <id> --symbol <symbol>\n` +
|
||||
` ritmex-bot order create --side buy --type limit --quantity 0.01 --price 100000 --dry-run\n`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user