Logging & Output Formats đ¶
Logging levels đ¶
The CLI provides two extended logging modes in addition to the default (info
):
-
--verbose
â enables debug-level logging. âšī¸ Useful for tracing account IDs, symbol visibility, ticket numbers. -
--trace
â enables very detailed logs (wire/stream-level). â ī¸ Warning: very noisy, mostly for troubleshooting connectivity or gRPC issues.
By default only important info
/ warn
/ error
messages are printed.
Output formats đ¤¶
Many commands support an -o, --output
option:
text
(default) â human-readable, concise output.json
â structured JSON, suitable for parsing by scripts and external systems.
Examples:
# Positions in JSON
đ dotnet run -- positions -p demo -o json
# Dry-run in JSON
đ¤ dotnet run -- buy -p demo -s EURUSD -v 0.10 --sl 1.0700 --tp 1.0800 --dry-run -o json
Dry-run mode đ¶
--dry-run
shows what would be executed without sending anything to the server.
This is especially useful for testing and debugging scripts.
# Preview a reverse order without sending
đ dotnet run -- reverse -p demo -s EURUSD --mode net --sl 1.0700 --tp 1.0850 --dry-run