Amend algo order
Amend unfilled algo orders (Support Stop order and Trigger order only, not including Move_order_stop order, Iceberg order, TWAP order, Trailing Stop order).
Authentication
Base64-encoded HMAC-SHA256 signature of the prehash string.
ISO 8601 UTC timestamp, e.g. 2020-12-08T09:08:57.715Z.
Request
Algo ID Either algoId or algoClOrdId is required. If both are passed, algoId will be used.
Client-supplied Algo ID Either algoId or algoClOrdId is required. If both are passed, algoId will be used.
Whether the order needs to be automatically canceled when the order amendment fails Valid options: false or true, the default is false.
Client Request ID as assigned by the client for order amendment A combination of case-sensitive alphanumerics, all numbers, or all letters of up to 32 characters. The response will include the corresponding reqId to help you identify the request if you provide it in the request.
Take-profit trigger price. Either the take-profit trigger price or order price is 0, it means that the take-profit is deleted
Take-profit order price If the price is -1, take-profit will be executed at the market price.
Stop-loss trigger price. Either the stop-loss trigger price or order price is 0, it means that the stop-loss is deleted
Stop-loss order price If the price is -1, stop-loss will be executed at the market price.
Take-profit trigger price type last: last price index: index price mark: mark price
Stop-loss trigger price type last: last price index: index price mark: mark price
New order price after amendment If the price is -1, the order will be executed at the market price.
Response
Result code. 0 means success; any other value is an error code.

