Description
Allow a client to send a request with a timeout (in seconds), which will start a timer. Once this
timer expires, all open orders for this client are canceled. Open orders are defined as any orders
resting on the order book and any smart orders that are not triggered.
Clients will need to keep resetting this timer by sending requests before the expiry to keep the
orders live on the order book. A timeout value of -1 will disable the timer completely so any
active orders will be treated as normal unless a new request with a non zero timer is activated.
Once a timer has reached its expiration time and all orders have been canceled, this feature is
deactivated unless a client sends a new request.
Rest API Endpoints
POST /orders/killSwitch
Body param (required): timeout in seconds (minimum is 10 seconds, maximum is 600
seconds, -1 for disabling)
json { "timeout": "60"}
Response params: Json object composed of startTime and cancelationTime
Input and Output Params
Request Param Data Type Required Notes
GET /orders/killSwitchStatus
Query param: none
Response params: Json object composed of startTime and cancelationTime