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.