put
https://api.connex.trade/api/v1/algo/order
Rate Limit: 3 requests per 10 seconds
Place a new algo order, this api is asynchronous. Returning success only means that the request is successful. The final result needs to be confirmed through websocket subscription and order query.
Request
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| algoOrderId | String | N | Algo order ID |
| clientOrderId | String | N | Customer defined order ID ,only support letters(a-z) and numbers(0-9) |
| orderQty | String | N | Order quantity(Mandatory, unless spot market buy ) note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin |
TP/SL
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| conditionalTriggerPrice | String | N | Conditional Order Trigger Price |
| conditionalTriggerType | String | N | Conditional Order Trigger Price Type: LAST_PRICE, MARK_PRICE |
| conditionalPrice | String | N | Limit Price After Triggering Conditional Order ; 0 Indicates Market Price. |
| tpTriggerPrice | String | N | Take-profit trigger price. |
| tpTriggerType | String | N | Take-profit trigger price type: LAST_PRICE, MARK_PRICE The default is LAST_PRICE |
| tpPrice | String | N | Take-profit order price; If the price is 0, take-profit will be executed at the market price. |
| slTriggerPrice | String | N | Stop-loss trigger price |
| slTriggerType | String | N | Stop-loss trigger price type: LAST_PRICE, MARK_PRICE The default is LAST_PRICE |
| slPrice | String | N | Stop-loss order price; If the price is 0, stop-loss will be executed at the market price. |
Response
| Field name | Type | Remarks |
|---|---|---|
| algoOrderId | String | Algo order ID |
| clientOrderId | String | Customer defined order ID |
