Unsubscribe from an internal agent
Optional query.keepTrade=false closes open trades before unsubscribing (mirrors GraphQL UnsubscribeFromAgentInput).
Authorizations
User JWT access token issued by POST /api/auth/verify or POST /api/auth/social/verify. Routes that accept both auth modes declare api-key and bearer-jwt security schemes.
Headers
HMAC-SHA256 signature: HMAC-SHA256(secretKey, timestamp + METHOD + path + body). Optional -- when omitted, HMAC verification is skipped.
Request timestamp in epoch milliseconds. Required when x-signature is provided. Rejected if drift exceeds 5 minutes.
Path Parameters
Query Parameters
When false, close all open trades on this agent trading bots for the current user before unsubscribing. Defaults to true (keep open trades).