Publish

This section provides an overview of how publish requests are managed and operated.

All WebSocket requests and responses contain an array with two elements. The first element is the header object, and the second element is the payload, following the explicit-header design outlined here. Errors follow the generic response outlined here.

Publish requests allow you to make synchronous requests similar to HTTP requests.


Publish Requests

[
  {
    "msg_type": "cancel_order", // Example
    "id": 1002,
    "version": 1
  },
  <body-of-request JSON object>
]

Publish Responses

[
  {
    "msg_type": "cancel_order_response", // Example
    "id": 1002,
    "version": 1
  },
  <body-of-response JSON object>
]