Skip to main content

Cancel Options

Interface description

  • Function Description: Cancel options orders according to the incoming client_order_id. It is recommended to use the v2 order query interface for option order inquiries: Order Detail V2

  • Request URL: /openapi/account/orders/option/cancel?account_id={account_id}

  • Request method: POST

  • Frequency limit: The calling frequency of each AppId is limited to 1 time per second.

Parameters

ParameterTypeRequiredDescriptionExample value
account_idStringRequiredAccount ID2847483
client_order_idStringRequiredCancel options orders according to the incoming client_order_id.0KGOHL4PR2SLC0DKIND4TI0002

Response

ParameterTypeRequiredDescriptionExample value
client_order_idStringRequiredclient_order_id to cancel0KGOHL4PR2SLC0DKIND4TI0002
order_idStringRequiredorder_id to cancelCDI8BOMDU5KO70LEFNLBVV9RA8

Request Example

from webullsdktrade.api import API
from webullsdkcore.client import ApiClient
from webullsdkcore.common.region import Region

api_client = ApiClient(your_app_key, your_app_secret, Region.HK.value)
api = API(api_client)
response = api.order.cancel_option(account_id, client_order_id)
if response.status_code == 200:
order_res = response.json()

响应示例

Response Example

Exception Example