https://b-api.lbkrs.com/clearing/marketsAuthorization
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
Specifies the action to perform.
Allowed values: 1 Add, 2 Delete, 3 Modify
1- Add
2- Delete
3- Modify
Required for modify (3) and delete (2); use the id of a row returned by POST /v1/datasets/clearing_markets. Omit it when adding (1).
Must be a market that already exists in the POST /v1/datasets/clearing_markets list; when adding, pick a market whose row has otc_flag 99 (disabled).
Call GET /v1/datasets/refs/clearing_markets to retrieve the current data dictionary, and use the returned entry's key as this field's value.
Settlement currency of the market.
USD- USD
HKD- HKD
SGD- SGD
CNY- CNY
AUD- AUD
JPY- JPY
GBP- GBP
EUR- EUR
CNH- CNH
Whether this is an overnight market.
Allowed values: 0 Non-overnight, 1 Overnight
0- No
1- Yes
Values come from the clearing_custodians dynamic enumeration.
Call GET /v1/datasets/refs/clearing_custodians to retrieve the current data dictionary, and use the returned entry's key as this field's value.
Values come from the custodian_sub_positions dynamic enumeration.
Call GET /v1/datasets/refs/custodian_sub_positions to retrieve the current data dictionary, and use the returned entry's key as this field's value.Pass key=<custodian_id> to filter sub-positions by custodian.
Number of days the balance is carried back (T+N).
0- 0
1- 1
2- 2
3- 3
Number of days equity is carried back (T+N).
0- 0
1- 1
2- 2
3- 3
Whether this is the base (main) market for clearing.
Allowed values: 0 No, 1 Yes
0- No
1- Yes
OTC day-end processing mode for the market.
Allowed values: 0 Normal day-end process, 1 Simplified day-end process for OTC, 2 Non-day-end process, 99 Disabled
0- Normal Day-End Tasks
1- Simplified Day-End Tasks For OTC
2- Non-Day-End Process
99- Disabled
Whether the market depends on the public stock information library.
Allowed values: 0 Does not depend on the public stock information library, 1 Depends on the public stock information library
0- Independent On Public Stock Information
1- Dependent On Public Stock Information
Day-end flow ID. Required when otc_flag is 0 (normal day-end process); take id from a row of POST /v1/datasets/clearing_busin_flows. Omit it otherwise.
IANA time zone name of the market, such as Asia/Tokyo, Asia/Hong_Kong, or America/New_York. Required by the backend for add (1) and modify (3); without it the call returns 800001 (InvalidField=Time Zone Name). POST /v1/datasets/clearing_markets does not currently return this field.
Whether manual orders are allowed for the market: 0 = no, 1 = yes.
01
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureHTTP 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