获取组合可交易信息
POST/api/v1.0/accounts/{acc_id}/combo_trading_info查询组合期权订单的可用购买力以及保证金预览信息。日本券商不支持。
什么时候用
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
acc_id | string | 是 | 业务账户 ID。 |
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
multi_leg_info | multi_leg_info | 是 | 多腿组合信息。 |
price | string | 是 | 订单价格。 |
qty | string | 是 | 订单数量。 |
side | trd_side | 是 | 订单方向。 |
order_id | string | 否 | 订单 ID,修改订单时传入。 |
请求示例
bash
curl -X POST 'https://webapi.futunn.com/api/v1.0/accounts/{acc_id}/combo_trading_info' \
-H 'Authorization: Bearer <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
"multi_leg_info": {
"leg_infos": [
{
"leg_code": "US.AAPL230120C00150000",
"leg_side": "BUY",
"leg_ratio_qty": "1"
},
{
"leg_code": "US.AAPL230120C00160000",
"leg_side": "SELL",
"leg_ratio_qty": "1"
}
]
},
"price": "2.50",
"qty": "1",
"side": "BUY"
}' | jq响应参数
| 字段 | 类型 | 说明 |
|---|---|---|
option_buying_power | string | 期权可用购买力。 |
buying_power_decrease | string | 本次操作导致的购买力减少量。 |
margin_previews | list[margin_preview] | 保证金预览列表。 |
响应示例
json
{
"s": "ok",
"d": {
"option_buying_power": "50000.00",
"buying_power_decrease": "250.00",
"margin_previews": [
{
"name": "Initial Margin",
"inc_value": "250.00"
}
]
}
}