Dexilon API Documentation
  • 👋Getting Started
  • General Info
    • ⚙️General API information
      • Base URLs
      • HTTP Return Codes
      • Enum Definition
    • 💻Clients
      • Dexilon Chain Client
    • 🚦Limits
      • REST API Rate limits
      • WS Stream Rate Limits
    • 🔐Security
      • Registration Flow
      • Authentication Flow
      • Sending Dexilon Transactions
      • Private API Calls
        • Access Token
        • Refresh Access Token
      • Timing security
    • ⚠️Error Codes
      • REST API Error Codes
      • WS Stream Error Codes
    • 🔍Audits
      • Bridge Audit
      • Smart-Contract Audit
  • Restful API
    • 📊Market Data Endpoints
      • Test Connectivity
      • Check Server Time
      • Exchange Information
      • Order Book
      • Recent Trades List
      • Kline/Candlestick Data
      • Symbol Data
      • Funding Rate History
      • Open Interest
      • Taker Buy/Sell Volume
      • Index Price History
      • Fee Tiers Structure
      • Fee Tiers Discount
      • Symbol Rules
      • Leverage Rules
    • ⚒️Account and Trades Endpoints
      • 🔒Account Information
      • 🔒Get User Address
      • 🔒Positions Information
      • 🔒Assets Information
      • 🔒Change Initial Leverage
      • 🔒Change Margin Type
      • 🔒Modify Isolated Position Margin
      • 🔒Create Withdrawal
      • 🔒Create market order
      • 🔒Create limit order
      • 🔒Cancel Order
      • 🔒Cancel All Orders
      • 🔒Query Order
      • 🔒Get Open Orders
      • 🔒Get Order History
      • 🔒Get Trade History
      • 🔒Get Transaction History
    • 🏆Rewards Endpoints
      • Current Reward Round
      • Reward Distribution
      • Rewards Settings
      • Current Tournament
      • Tournament Members
      • 🔒User's Reward Distributions
      • 🔒User's Reward Round Profit
      • 🔒User's Tournament Rating
    • 💸Liquidation Auctions Endpoints
      • Open Lots
      • Lot History
      • 🔒Place Bid
  • WebSocket Streams
    • 📈Market Data WS Streams
      • Working with Public Streams
      • Mark Price Stream
      • Mark Price Stream For All Markets
      • Kline/Candlestick Stream
      • Ticker Stream
      • Ticker Stream For All Markets
      • Partial Book Depth Stream
      • Book Ticker Stream
      • Trade Stream
      • Aggregate Trade Stream
      • Liquidation Trade Stream
      • Liquidation Auction Stream
    • 👥User Data WS Stream
      • 🔒Working with Private Streams
      • 🔒Order Update Stream
      • 🔒Account Update Stream
      • 🔒L2 Account Update Stream
Powered by GitBook
On this page
  • Deposit
  • Transfer
  • Withdrawal
  1. WebSocket Streams
  2. User Data WS Stream

L2 Account Update Stream

Pushes update events about deposits, transfers and withdrawals to/from Spot Account.

Features:

  • Stream Name: l2Update

  • Update Speed: Real-time

Deposit

Push when funds was deposited to Spot Account from Eth Account

Response:

{
    "eventType" : "l2SpotDeposit",
    "eventTime" : 1670240315627,
    "transactionUuid" : "605caef9-5dd4-48bb-9893-dbf2918fd6eb",
    "balance" : 99528.16,
    "amount" : 141.3,
    "asset" : "usdt",
    "txHash" : "DEGPRB5PGRLGRL0049SKLD4042K",
    "blockIdx" : 1032505
}

Transfer

Push when funds was transfer to/from Spot Account from/to Future Account. Sign of 'amount' field shows the direction of transfer. If amount of positive then is was transfer to Spot Account from Future Account otherwise vice versa

Response:

{
    "eventType" : "l2SpotTransfer",
    "eventTime" : 1670240315627,
    "transactionUuid" : "105caef9-5dd4-48bb-9893-dbf2918fd6eb",
    "balance" : 300.1,
    "amount" : 100.50,
    "asset" : "usdt",
    "txHash" : "DEGPRB5PGRLGRL0049SKLD4042K",
    "blockIdx" : 1032505
}

Withdrawal

Push when funds are withdrawn from the Spot Account to the Eth Account. There are 4 events that will be sent in the following sequence

Responses:

{
    "eventType" : "l2SpotWithdrawSetInBatch",
    "eventTime" : 1670240315627,
    "transactionUuid" : "605caef9-5dd4-48bb-9893-dbf2918fd6eb",
    "balance" : 200.161345,
    "amount" : 13.0,
    "asset" : "usdt",
    "txHash" : "28D430F29E4490BB840EB30986AD96F96433AE9502809740E339DEA92907F77C",
    "blockIdx" : 1032505
}
{
    "eventType" : "l2SpotWithdrawSignBatch",
    "eventTime" : 1670240315431,
    "transactionUuid" : "605caef9-5dd4-48bb-9893-dbf2918fd6eb"
}
{
    "eventType" : "l2SpotWithdrawBatchReadyToBridge",
    "eventTime" : 1670240315911,
    "transactionUuid" : "605caef9-5dd4-48bb-9893-dbf2918fd6eb"
}
{
    "eventType" : "l2SpotWithdrawFinalize",
    "eventTime" : 167024031803,
    "transactionUuid" : "605caef9-5dd4-48bb-9893-dbf2918fd6eb"
}
PreviousAccount Update Stream

Last updated 2 years ago

👥
🔒