Account β Overview π§¶
This section groups all commands related to account identity, connectivity, and basic status.
Files in this section¶
- Info β oneβshot account snapshot (balance, equity, margin info via summary + extras).
- Profiles β how profiles work (
profiles.json
), switching, defaults, and tips. - Show β detailed account info dump (raw fields, troubleshooting, and JSON mode).
When to use which?¶
Task | Use |
---|---|
Quick health check before trading | Info |
Manage / switch connection targets (demo/live) | Profiles |
Deep inspection (IDs, server clock, leverage, etc.) | Show |
Quickstarts β‘¶
# Account snapshot (text)
dotnet run -- info -p demo
# Detailed view (JSON)
dotnet run -- show -p demo -o json
# Switch default profile (PowerShell shortcast)
. .\ps\shortcasts.ps1
use-pf demo
info # expands to: mt5 info -p demo --timeout-ms 90000
Notes π¶
- All commands honor
--timeout-ms
and use a single connect β call β disconnect flow. - JSON outputs are intended for scripting/CI; text is friendly for terminals.
- If a command reports not connected, verify your profile credentials and network access first.