DeltaDeFi
  • About
    • 👋Introduction
    • 📖Learn
      • Architecture
        • Account
        • App Vault
        • Hydra
        • Intent and Process
        • Order Book
      • Trade
        • Order Types
      • Whitepaper
  • Start Trading
    • ⚡Getting Started
      • Create Account
      • Deposit
      • Place Order
      • Cancel Order
      • Withdrawal
      • API Key / Dashboard
    • ⚙️Developers
      • Introduction
        • Base Url
        • Auth
        • Assets
      • Getting started
        • Deposit funds
        • Place a new order
        • Cancel an order
        • Withdraw funds
      • API Documentation
        • Account
          • Create new api key
          • Build deposit transaction
          • Submit deposit transaction
          • Deposit records
          • Withdrawal records
          • Order records
          • Build withdrawal transaction
          • Submit withdrawal transaction
          • Balances
        • App
          • Get mock USDX (testnet only)
          • Submit USDX transaction (testnet only)
        • Market
          • Market Price
          • Market Depth
          • Aggregated trades
        • Order
          • Build order transaction
          • Submit order Transaction
          • Build cancel Order Transaction
          • Submit cancel order transaction
      • Websocket Endpoints
        • Account streams
        • Market price streams
        • Market depth streams
      • SDK
        • Typescript
        • Python
  • FAQ
    • General
    • Product
    • Cardano
    • Disclaimer
Powered by GitBook
On this page
  1. Start Trading
  2. Developers
  3. Websocket Endpoints

Account streams

/accounts/ws/stream?api_key=<your_api_key>

This websocket will feed notifications for

  • account balances updates

  • orders updates

Query params

Name
Value

api_key

<your_api_key>

Stream Response

// exmaple response for ADA balance changes
{
  type: "account",
  sub_type: "balance",
  balance: [
    {
        "asset": "usdx",
        "asset_unit": "5066154a102ee037390c5236f78db23239b49c5748d3d349f3ccf04b55534458",
        "free": 1153.006812,
        "locked": 0
    },
    {
        "asset": "ada",
        "asset_unit": "",
        "free": 1383.52097,
        "locked": 0
    }
  ]
}

// exmaple response for order changes
{
  type: "account",
  sub_type: "order_info",
  order: {
    "order_id": "fdcd1b64-504f-4504-8000-61b3306f345b",
    "status": "partially_filled",
    "symbol": "ADAUSDX",
    "type": "Limit",
    "slippage": 0,
    "side": "buy",
    "price": 0.82,
    "orig_qty": 100,
    "fee_unit": "0",
    "fee_charged": "0",
    "executed_qty": 50,
    "executed_price": 0.82
    "create_time": 1742528780,
    "update_time": 1742528789
  }
}

PreviousWebsocket EndpointsNextMarket price streams

Last updated 2 months ago

⚙️