多腿期权下单
该接口用于提交多腿期权组合订单(如垂直价差、跨式、宽跨式、领口等)。各腿作为一个策略订单一起提交。
SDK Links
Request
| HTTP Method | POST |
| HTTP URL | /v1/trade/order/multileg |
Parameters
Content-Type: application/json; charset=utf-8
| Name | Type | Required | Description |
|---|---|---|---|
| side | string | YES | 买卖方向 可选值: BuySell |
| order_type | string | YES | 订单类型 |
| submitted_price | string | NO | 下单价格,例如:1.5LO 等限价类型订单必填 |
| submitted_quantity | string | YES | 下单数量(组合数量),例如:1 |
| strategy | string | YES | 多腿策略 可选值: CoveredCall - 股票担保CoveredPut - 股票担保VerticalCallSpread - 垂直策略VerticalPutSpread - 垂直策略Collar - 领式策略Straddle - 跨式策略Strangle - 宽跨式策略 |
| legs | object[] | YES | 组合订单的各腿 |
| ∟ symbol | string | YES | 期权 symbol,使用 ticker.region 格式,例如:QQQ260731C764000.US |
| ∟ ratio_quantity | string | YES | 该腿比例数量,例如:1 |
| remark | string | NO | 备注(最多 255 字符) |
| client_request_id | string | NO | 客户端请求 ID,用于幂等(最多 64 字符) |
Request Example
Response
Response Headers
- Content-Type: application/json
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"order_id": "683615454870679600"
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 提交成功,订单已委托 | None |
| 400 | 提交被拒绝,请求参数有误 | None |