revolut-x-balance
Revolut X Balance
Capabilities
- Fetch all account balances (available, reserved, staked, total)
- Verify sufficient funds before placing orders
- Compute portfolio value in fiat using ticker data
Authentication & setup
All endpoints require authentication. See revolut-x-auth for setup.
API versioning
All endpoints use path-based versioning: /api/1.0/. The version is included in every request path.
Common workflows
Fetch balances
python scripts/revx_sign.py GET /api/1.0/balances
Expected output: JSON array of balance objects with currency, available, reserved, staked, total fields.
Display balances in a readable table. Key fields:
- available — funds ready for new orders
- reserved — locked by open orders
- staked — earning staking rewards
- total — available + reserved + staked
Example 1: Check portfolio balances
User says: "What's my balance on Revolut X?"
Actions:
- Run
python scripts/revx_sign.py GET /api/1.0/balances - Parse the JSON array
- Present as a formatted table: currency, available, reserved, total
Result: Table showing all currency balances.
Example 2: Verify funds before ordering
User says: "Do I have enough USD to buy $500 of BTC?"
Actions:
- Run
python scripts/revx_sign.py GET /api/1.0/balances - Find USD entry, check
available>= 500 - Report yes/no with exact available amount
Result: "You have $10,000.00 USD available — sufficient for a $500 order."
Example 3: Portfolio value in fiat
User says: "What's my total portfolio worth in USD?"
Actions:
- Run
python scripts/revx_sign.py GET /api/1.0/balances - Run
python scripts/revx_sign.py GET /api/1.0/tickers(seerevolut-x-market-data) - Multiply each crypto balance's
totalby its USDlast_price - Sum all values
Result: Total portfolio value in USD.
Error handling
Error: 401 Unauthorized
Cause: API key or signature invalid
Solution: Run revolut-x-auth setup. Verify REVX_API_KEY and REVX_PRIVATE_KEY env vars.
Error: 429 Rate limit exceeded
Cause: Too many requests
Solution: Wait for duration in Retry-After header (milliseconds), then retry.
Important notes
- Balance
availablereflects funds not locked by open orders — use this for pre-order validation - Zero-balance currencies may still appear in the response
- To compute fiat portfolio value, combine with ticker data from
revolut-x-market-data
References
- schemas.md — Full response field definitions
- Revolut X REST API docs
- Get all balances
Related skills
| Skill | Purpose |
|---|---|
revolut-x-auth |
API key setup and request signing |
revolut-x-orders |
Place orders after verifying sufficient balance |
revolut-x-configuration |
Check available currencies and pair constraints |
revolut-x-market-data |
Get ticker prices to compute fiat value of holdings |