| name | ccxt-account |
| description | Query authenticated read-only account state through CCXT including balances, orders, trades, and positions. Do not place or cancel orders. |
Use this skill for private read-only queries.
Rules:
- Never call
create_order, cancel_order, or set_leverage.
- This skill only covers:
fetch_balance, fetch_open_orders, fetch_order, fetch_orders, fetch_my_trades, fetch_positions.
- Account management actions (
account_add_api, account_ls, account_remove, account_set_default) belong to ccxt-admin only.
- Use
exchange field directly.
- Return JSON output first, then concise summary.
- When credentials are missing, use
ccxt-admin.account_add_api exchange=<X> payload={alias:<A>,apiKey:<K>,secret:<S>} runtimeContext={password:<MASTER_PASSWORD>} onboarding.
- Do not suggest environment-variable credential setup.
Prompting for API Keys
When the action fails with NO_API_ACCOUNT:
- Look up onboarding links and requirements from
../references/exchange-onboarding.md.
- Ask user to open the exchange API management page and create API key/secret.
- For account reads, recommend read-only/account-query permissions only.
- Guide user to add credentials via
ccxt-admin.account_add_api first.
- Remind user that
account_add_api writes credentials into the local encrypted account store for later account reads.
If user already has credentials:
- do not suggest onboarding again
- retry the requested account command directly
When response code is ACCOUNT_LOCKED:
- ask for master password only
- do not ask for API key/secret again
- retry the same account command with
runtimeContext.password
AUTH_ERROR handling
When request fails with AUTH_ERROR:
- Ask user to verify existing key/secret values and read permission scope.
- If credentials are invalid, guide user to rotate/recreate key and re-run
account_add_api.
- If credentials are already valid, retry the requested action.