About binance-account
A read-only Binance account tracking skill built on `python-binance`, for account monitoring, reporting, and risk checks. It provides queries for balances, activity, and cash flows, along with portfolio snapshot and perpetual-futures risk scenarios.
Key features
- 01Query spot and futures balances
- 02Review orders, trades, and positions
- 03Aggregate deposits, withdrawals, and funding
- 04Create an account snapshot
- 05Monitor futures margin and unrealized losses
Use cases
- 01Prepare daily or weekly account reports
- 02Check spot and futures account status
- 03Summarize account cash flows
- 04Monitor perpetual-futures risk
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ starchild-ai-agent/ official-skills --skill binance-accountAfter installing, type/binance-accountin Claude Code to confirm it loaded.
Bundled filesscripts/account_scenarios.pyscripts/bn_account.py
Details
From the project READMEBinance Account (Read-Only)
Read-only Binance account tracker built on the widely used python-binance library.
Use it for account tracking, daily/weekly reports, risk alerts, and cashflow attribution.
How to Get a Binance API Key (Read-Only)
- Sign in at binance.com, top-right avatar → API Management
- Create API → System generated
- Complete 2FA verification (email + Authenticator / SMS)
- Name the key → submit
- Copy
API Key+Secret Keyimmediately (Secret is shown only once) - Edit restrictions:
- ✅ Enable only
Enable Reading - ❌ Disable trading, withdrawal, and all write permissions
- Leave the IP whitelist empty (binding an IP causes cloud calls to be rejected)
- ✅ Enable only
- Set the values into this skill's environment variables
Reference: Binance official tutorial
Prerequisites
1) API key permissions
In Binance API Management, create a read-only key. Enable only:
- ✅ Enable Reading
- ❌ Disable trading and withdrawal
2) Environment variables
BINANCE_RO_API_KEY=...
BINANCE_RO_SECRET=...
3) Geo restriction (required)
Binance frequently returns 451 Restricted Location from server environments.
This skill defaults to the SC internal HK proxy:
HK_PROXY = "http://hk:[email protected]:8080"
Do not set a global HTTP_PROXY — it would break routing for other services.
Scripts
Base query script
python3 skills/binance-account/scripts/bn_account.py <action> [options]
Scenario script
python3 skills/binance-account/scripts/account_scenarios.py <scenario> [options]
Actions
summary: one-shot summaryspot_balance/futures_balance/futures_positionsspot_orders/futures_orders/spot_trades/futures_tradesdeposits/withdrawals/funding_income/account_snapshot
Scenarios
portfolio_snapshot: full account snapshotperp_risk: futures risk monitoring (margin ratio + unrealized loss)cashflow: deposits + withdrawals + funding income aggregationtrading_activity: recent trades by symbol
Common usage
python3 skills/binance-account/scripts/bn_account.py summary
python3 skills/binance-account/scripts/account_scenarios.py portfolio_snapshot
python3 skills/binance-account/scripts/account_scenarios.py perp_risk --loss-threshold 5000
python3 skills/binance-account/scripts/account_scenarios.py cashflow
python3 skills/binance-account/scripts/account_scenarios.py trading_activity --symbol BTCUSDT
Notes
- IP whitelist is best left empty for cloud usage.
- Use time-windowed pagination for high-frequency trade pulls.