aster-api-account-v1
Installation
SKILL.md
Aster API Account (v1)
Base: https://fapi.asterdex.com. All endpoints signed.
Balance and account
- GET /fapi/v2/balance (Weight: 5). No params beyond auth. Returns: see reference.
- GET /fapi/v4/account (Weight: 5). Returns: see reference.
Positions
- GET /fapi/v2/positionRisk (Weight: 5). Params: symbol (optional). Returns per-symbol/positionSide; one-way = BOTH, hedge = LONG/SHORT. Fields: see reference.
Leverage and margin type
- POST /fapi/v1/leverage (Weight: 1): symbol, leverage (1–125). Returns leverage, maxNotionalValue, symbol.
- POST /fapi/v1/marginType (Weight: 1): symbol, marginType (ISOLATED | CROSSED). Fails if open orders or position exist when changing (see error codes).