Safety (mandatory)
This skill is designed to be a safe way to query balances.
- READ-ONLY keys only: In Binance, create an API key with Read-only / Enable Reading permissions.
- Do not enable trading, margin, futures, transfers, or withdrawals.
- (Recommended) Restrict the API key by IP allowlist.
- Never print or send
BINANCE_API_SECRET.
Credentials
Set these environment variables (recommended: ~/.openclaw/.env on the gateway machine):
BINANCE_API_KEYBINANCE_API_SECRET
What it does
- Fetch Spot account balances via Binance signed endpoint:
GET https://api.binance.com/api/v3/account
- By default, it filters to non-zero assets.
Run
python3 {baseDir}/scripts/assets.py
python3 {baseDir}/scripts/assets.py --all
python3 {baseDir}/scripts/assets.py --min 0.0001
Scan to join WeChat group