Close position
Authentication
Base64-encoded HMAC-SHA256 signature of the prehash string.
ISO 8601 UTC timestamp, e.g. 2020-12-08T09:08:57.715Z.
Request
Margin mode cross isolated
Position side This parameter can be omitted in net mode, and the default value is net. You can only fill with net. This parameter must be filled in under the long/short mode. Fill in long for close-long and short for close-short.
Margin currency, required in the case of closing cross MARGIN position for Futures mode.
Whether any pending orders for closing out needs to be automatically canceled when close position via a market order. false or true, the default is false.
Client-supplied ID A combination of case-sensitive alphanumerics, all numbers, or all letters of up to 32 characters.
Order tag A combination of case-sensitive alphanumerics, all numbers, or all letters of up to 16 characters.
Response
Result code. 0 means success; any other value is an error code.

