Subscription Request
Subscribe method. Must be
subscribeArray of topics to subscribe to. Must include
balanceExample: ["balance"]Ticket created using the endpoint POST https://api.ripio.com/trade/ticket
Stream Response
Message identifier
Topic name (always
balance)Server timestamp in milliseconds
Balance details object
Subscription Example
Stream Response Example
Balance Updates Triggered By
Balance changes are triggered by the following actions:- Order Creation: Available balance decreases (amount locked for buy orders)
- Order Cancellation: Locked balance returns to available
- Trade Execution: Balance changes reflect the traded amounts
- Deposits: Available balance increases
- Withdrawals: Available balance decreases
- Fees: Available balance reduced by trading fees
Key Concepts
Available Amount
The amount you can freely use for:- Creating new orders
- Withdrawing to external addresses
- Other transactions
Locked Amount
The amount currently locked in:- Active buy orders (fiat locked)
- Active sell orders (crypto locked)
- Pending withdrawals
Total Balance
Total balance = Available amount + Locked amountCalculation Examples
Usage Notes
- Authentication Required: Requires valid ticket from WebSocket authentication
- Real-time Updates: Receive immediate notification when balance changes
- Conversions Included: All major currency conversions provided
- Locked Amounts: Shows what’s tied up in open orders
- Multiple Currencies: View all balances in one update
Update Triggers
| Action | Effect |
|---|---|
| Create buy order | Lock fiat in available |
| Create sell order | Lock crypto in available |
| Cancel order | Return locked to available |
| Order execution | Transfer between currencies |
| Deposit | Increase available |
| Withdrawal | Decrease available |
| Fee collection | Decrease available |
Use Cases
- Portfolio Tracking: Monitor your balance in real-time
- Available Funds: Check what’s available for trading
- Lock Status: See what’s tied up in orders
- Multi-currency View: See balances across all currencies
- Automated Trading: React to balance changes programmatically
- Risk Management: Monitor exposure across currencies
- Accounting: Track all balance changes for records