One Trading API
REST APIWebSocket API
REST APIWebSocket API
  1. Trading
  • Introduction
  • Authenticate
  • Subscribe
  • Ping / Pong
  • Trading
    • Introduction
    • Dead Man Switch (Auto Cancellation)
    • Create Order
    • Cancel All Orders
    • Cancel Order by Client ID
    • Cancel Order by Order ID
    • Margin Update
    • Settlement
    • Funding Payment
    • Order Booked
    • Order Rejected
    • Order Closed
    • Trade Executed
    • Order Fully Filled
    • Balance Adjustment
  • Orderbook
    • Introduction
    • Orderbook Snapshot
    • Orderbook Update
  • Price Ticks
    • Introduction
    • Price Tick
  • Book Ticker
    • Introduction
    • Book Tick
  1. Trading

Balance Adjustment

You must be authenticated and subscribed to the TRADING channel in order to send trading messages.
The BALANCE_ADJUSTMENT message is sent in the event of:
Deposit
Withdrawal
Funding Rate Payment

Deposit#

{
  "channel_name": "TRADING",
  "type": "BALANCE_ADJUSTMENT",
  "event": "ACCOUNT",
  "status": "DEPOSITED",
  "instrument_code": "EUR",
  "time": 1743162435279363800,
  "amount": "1000",
  "new_balance": "93000.9853496",
  "assigned_margin": "0"
}

Withdrawal#

{
  "channel_name": "TRADING",
  "type": "BALANCE_ADJUSTMENT",
  "event": "ACCOUNT",
  "status": "WITHDRAWN",
  "instrument_code": "EUR",
  "time": 1743162442497232100,
  "amount": "-2000",
  "new_balance": "91000.9853496",
  "assigned_margin": "0"
}

Funding Rate Payment#

{
    "channel_name": "TRADING",
    "type": "FUNDING_PAYMENT",
    "event": "ACCOUNT",
    "status": "WITHDRAWN",
    "instrument_code": "BTC_EUR_P",
    "direction": "LONG",
    "open_volume": "1.02",
    "open_position": "90200.50",
    "pending_buy_size": "0",
    "pending_sell_size": "0",
    "funding_rate": "0.0002",
    "funding_payment": "1.84",
    "cash_balance": "98378.71",
    "maintenance_margin": "1000",
    "margin_used": "6621.295",
    "account_ratio": 14.85
}
Previous
Order Fully Filled
Next
Introduction
Built with