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

Name
Type
Required
Description

api_key

string

Yes

Your API key


Event Types

This WebSocket stream provides the following event types:

Event Type
Sub Type
Description

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 built

  • processing - Order is being processed

  • open - Order is active on the order book

  • closed - Order is fully filled

  • failed - Order failed

  • cancelled - Order was cancelled


Connection Example


Last updated