Conditional Orders

fco-order-cancel

Cancel an active conditional order.

DELETE
/api/v3/trading/fco/order

Authorization

Bearer
AuthorizationBearer <token>

Enter the JWT token in the format Bearer <token>.

In: header

Header Parameters

Content-Typestringrequired

The content format of the request body. Mainly application/json.

User-Agentstringoptional

Information about the client sending the request.

Accept-Languagestringoptional

The desired response language. If this header is not provided, the system defaults to en.

X-Signaturestringrequired

An RSA + SHA256 signature used to verify the integrity of the request. The input consists of the SecretKey + JSON body.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

bodyobjectrequired
fcoIdstring | nullrequired

ID of the conditional order to cancel.

codestring | nulloptional

The OTP verification code or PIN used to authenticate the transaction.

deviceIdstringoptional

Identifier of the device sending the request. Typically the device's MAC address or IMEI.

userAgentstring | nulloptional

Information about the browser or application sending the request.

Response Headers

X-RATELIMIT-LIMITstringoptional

The request limit within the period.

X-RATELIMIT-REMAININGstringoptional

The number of requests remaining in the current period.

X-RATELIMIT-RESETstringoptional

The time at which the request limit resets.

Response Body

application/json

application/json

curl -X DELETE "https://api.ssi.com.vn/api/v3/trading/fco/order" \  -H "Content-Type: application/json" \  -H "X-Signature: sha256=abc123..." \  -H "Content-Type: application/json" \  -d '{    "fcoId": "string"  }'

Success

{
  "fcoId": "string"
}

Invalid request.

{
  "code": "400",
  "msg": "Invalid request"
}