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
    • Move Order
    • Balance Adjustment
  • Orderbook
    • Introduction
    • Orderbook Snapshot
    • Orderbook Update
  • Price Ticks
    • Introduction
    • Price Tick
  • Book Ticker
    • Introduction
    • Book Tick
  1. Trading

Settlement

You must be authenticated and subscribed to the TRADING channel in order to receive SETTLEMENT messages.
The SETTLEMENT message is sent via the trading channel every minute for any account with an open futures position. This message provides a real-time update of the account’s settlement details, reflecting the profit and margin changes associated with the position.
{
    "type": "SETTLEMENT",
    "channel_name": "TRADING",
    "instrument_code": "BTC_EUR_P",
    "time": 1737993490000000000,
    "direction": "LONG",
    "open_position": "1030",
    "open_volume": "0.01",
    "pending_buy_size": "0",
    "pending_sell_size": "0",
    "profit": "1.13",
    "total_profit": "1250",
    "account_ratio": "2.57",
    "maintenance_margin": "595",
    "quote_currency_balance": "5000",
    "margin_used": "101",
    "mark_price": "103000"
}
TradingSettlement

Previous
Margin Update
Next
Funding Payment
Built with