Skip to main content
POST
Send orders heartbeat
一种安全机制:发送带 timeout(单位为秒)的心跳。如果在 timeout 秒内未收到下一次心跳,你的所有未成交订单将被取消。 在任何会挂单的客户端中使用此端点 — 如果进程崩溃或失去连接,心跳可确保过期订单被撤下,而不是留在订单簿上。

请求

POST /user/ordersHeartbeat
integer
必填
超时后取消,单位为秒。必须大于 5。

响应

响应由订单服务转发:

错误

授权

Authorization
string
header
必填

Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.

请求体

application/json
timeout
integer
必填

Cancel-after timeout, in seconds.

必填范围: x >= 6

响应

Heartbeat acknowledged. The response shape is forwarded from the orders service.