binance_health_check
Verify Binance API connectivity, clock drift, and key permissions to diagnose signature, drift, and authorization errors. Also reports trading kill-switch status.
Instructions
Verify connectivity, clock drift, and API-key permissions against Binance.
Calls GET /api/v3/ping and GET /api/v3/time (public), then — when
credentials are configured — GET /sapi/v1/account/apiRestrictions (signed)
to report what the key is allowed to do. Also states whether the trading
kill-switch (BINANCE_ALLOW_TRADING) is on.
When to Use:
As the first call after configuring the server, to confirm the key signs correctly.
To debug -1021 (clock drift), -1022 (signature), or -2015 (permissions / IP) errors.
When NOT to Use:
To read balances (use the spot/wallet account tools).
Returns:
A markdown block with connectivity, server time vs local drift, the key's
permission flags (withdrawals should be OFF, IP restriction ON), and the
kill-switch state — or an Error ... string describing the failure.
Error Handling: -2015 means the key's IP allowlist excludes this machine or the key lacks Reading; -1022 means the secret / key type is wrong; on the spot testnet the /sapi call is skipped because the testnet has no wallet endpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |