https://b-api.lbkrs.com/v1/risk_monitoring/short_sell_stock_force_closeAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Permission
The Broker ACCESS_TOKEN must be granted the permission above, or the call will be rejected.
Request body application/json
Securities account ID (aaid) of the short-sell position, taken from the position row. Pass the internal numeric ID, not the securities account number account_no (such as H00000000) or the customer ID member_id.
Security counter ID of the short-sell position, e.g. ST/HK/700, taken from the position row.
Order type, from data dictionary option_force_close_order_type, e.g. MO (market order, the frontend default) or LO (limit order).
Order price. Required unless order_type is MO; must be ≥ 0.
Buy-back quantity to submit (shares); must be ≥ 0.
Trading session, from data dictionary rth; only applies when order_type is LO. The frontend default is 1.
Responses
HTTP 200OKcodemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields