Submit IPO Subscription
This endpoint allows you to submit an IPO (Initial Public Offering) subscription request, supporting both cash and margin subscriptions for multiple client accounts.
HTTP Request
bash
POST /trade/v1/ipo/subscriptionsRequest Body
| Name | Type | Required | Description |
|---|---|---|---|
market | ENUM | Yes | Market code. See supported values in the market enum definition. |
symbol | STRING | Yes | Stock symbol of the IPO |
margin_ratio | DECIMAL | Yes | Margin financing ratio. Within the same institutional account and the same IPO subscription, only the first request in batched submissions takes effect. Options: 0.9 (90%) / 0 (0%) |
details | ARRAY<detail> | Yes | List of subscription details, one entry per client account. Maximum 500 entries per request |
detail object fields:
| Name | Type | Required | Description |
|---|---|---|---|
client_id | STRING | Yes | Sub-user ID defined by the institutional client, must be unique. Within the same institutional account and the same IPO subscription, each client ID can have at most one subscription record. Alphanumeric, up to 20 characters |
id_type | INT | Yes | ID type: 1=HKID, 2=Mainland ID, 3=Passport, 4=LEI, 5=Certificate of Incorporation, 6=BR Number, 7=Other Official Registration, 8=BCAD |
issue_country | STRING | Yes | Issuing country/region code (e.g. CHN, HKG, TWN, OTH). Reference: UN M49 |
id_number | STRING | Yes | ID number. - If id_type is 4, must be 20 uppercase letters or digits.- If id_type is 8, must match xxxxxx.##########: xxxxxx is 6 uppercase letters or digits, separated by a dot ., ########## is a positive integer up to 10 digits.- For other id_type values, no format restriction currently.Within the same IPO subscription, ID numbers must not be duplicated; duplicates will be rejected. |
name_en | STRING | Conditional | English name, must be UPPERCASE. Required unless id_type=8 (BCAD) |
name_local | STRING | Conditional | Non-English name. Required unless id_type=8 (BCAD) |
subscribe_type | ENUM | Yes | Subscription type. See subscribe_type |
qty | DECIMAL | Yes | Subscription quantity, must match the available quantity tiers |
cURL Example
bash
curl --location --request POST '{$base_url}/trade/v1/ipo/subscriptions' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-Signature: YOUR_GENERATED_SIGNATURE' \
--header 'X-API-Timestamp: 1746774142003' \
--header 'Content-Type: application/json' \
--data-raw '{
"market": "hkex",
"symbol": "09999",
"margin_ratio": 0.9,
"details": [
{
"client_id": "CLIENT001",
"id_type": 1,
"issue_country": "HKG",
"id_number": "A1234567",
"name_en": "CHAN TAI MAN",
"name_local": "陳大文",
"subscribe_type": "cash",
"qty": 1000
},
{
"client_id": "CLIENT002",
"id_type": 2,
"issue_country": "CHN",
"id_number": "110101199001011234",
"name_en": "ZHANG SAN",
"name_local": "张三",
"subscribe_type": "margin",
"qty": 2000
}
]
}'Successful Response Format
| Name | Type | Description |
|---|---|---|
code | INT | Response code, 0 indicates success |
message | STRING | Response message |
Sample Success Response
json
{
"code": 0,
"message": "success"
}Sample Error Response
json
{
"code": 500,
"message": "Internal Service Error",
"details": ""
}
