Account streams
Real-time WebSocket stream for account-related updates including balances, orders, and points.
Connection
wss://api.deltadefi.io/accounts/stream?api_key=<your_api_key>Query Parameters
api_key
string
Yes
Your API key
Event Types
This WebSocket stream provides the following event types:
Account
balance
Account balance updates when deposits, withdrawals, or trades occur
Account
order_info
Real-time order status updates (new orders, fills, cancellations)
Account
dlta_points
Points/rewards updates when you earn DLTA points
Event Formats
Real-time order updates. Sent whenever an order status changes (created, partially filled, fully filled, cancelled).
{
"type": "Account",
"sub_type": "order_info",
"order": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"account_id": "550e8400-e29b-41d4-a716-446655440001",
"status": "open",
"symbol": "ADAUSDM",
"base_qty": "100.00",
"quote_qty": "93.00",
"side": "buy",
"price": "0.93",
"type": "limit",
"locked_base_qty": "100.00",
"locked_quote_qty": "93.00",
"executed_base_qty": "0",
"executed_quote_qty": "0",
"ob_open_order_base_qty": "100.00",
"commission_unit": "lovelace",
"commission": "0",
"commission_rate_bp": 10,
"executed_price": "0",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"order_execution_records": []
}
}Order Status Values:
building- Order is being builtprocessing- Order is being processedopen- Order is active on the order bookclosed- Order is fully filledfailed- Order failedcancelled- Order was cancelled
Points updates when you earn DLTA rewards from trading activity.
Fields:
delta
string
Points earned in this update
new_total
string
New total points balance
season_points
string
Points earned this season
source_type
string
Source of points: trade, referral, bonus
source_ref
string
Reference ID (e.g., order ID for trades)
league
string
Current league tier: bronze, silver, gold, platinum, diamond
Account balance updates when deposits, withdrawals, or trades occur.
Fields:
asset
string
Asset symbol (e.g., ada, usdm)
asset_unit
string
On-chain asset unit (empty for ADA)
free
number
Available balance for trading
locked
number
Balance locked in open orders
Connection Example
Related
Last updated