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

Dead Man Switch (Auto Cancellation)

You must be authenticated and subscribed to the TRADING channel in order to send trading messages.
This feature provides an automated risk management mechanism that will automatically cancel all of a open orders if the system detects a period of inactivity.

Activate Auto Cancellation#

Auto cancellation request#

{
  "type": "CANCEL_ALL_AFTER",
  "timeout": 30000
}

Auto cancellation response#

{
    "channel_name": "TRADING",
    "type": "AUTO_CANCELLATION_TIMER_SET",
    "timeout": 30000,
    "time": 1710927208222806419
}

Deactivate Auto Cancellation#

Deactivate auto cancellation request#

{
  "type": "CANCEL_ALL_AFTER",
  "timeout": 0
}

Deactivate auto cancellation response#

{
  "channel_name": "TRADING",
  "type": "AUTO_CANCELLATION_TIMER_DEACTIVATED"
}
Previous
Introduction
Next
Create Order
Built with