Fees and Credits Events
To enable third-party systems to promptly obtain Fee and Credit results, Broker OpenAPI provides an asynchronous event push mechanism for Fee and Credit operations.
When the status of a Fee or Credit changes, the system delivers event notifications to subscribed clients, providing the corresponding intermediate or final execution results.
Fee Deduction Events
Fee Deduction Event Notification
- CANCELED
- REJECTED
- FAILED
- COMPLETED
{
"id": "event_c4b2c210-ce32-41d4-a9a1-cfad4fdf191c",
"event_type": "FUNDING",
"position": "CJO1fxACGAAgADAB",
"timestamp": "2025-03-29T07:02:33.200962333Z",
"payload": {
"account": "93IUJ28O9VO2KBGHDHR4H9",
"contra_account": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"client_request_id": "LJIS16BACHQG9LPP44L9IQHGAB",
"fee_id": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"amount": "100",
"currency": "USD",
"type": "SERVICE_FEE",
"status": "CANCELED",
"reason": "xxxxxx",
"update_time": "2025-11-21T06:27:43.312Z",
"biz_type": "FEE_DEDUCTION"
}
}
{
"id": "event_c4b2c210-ce32-41d4-a9a1-cfad4fdf191c",
"event_type": "FUNDING",
"position": "CJO1fxACGAAgADAB",
"timestamp": "2025-03-29T07:02:33.200962333Z",
"payload": {
"account": "93IUJ28O9VO2KBGHDHR4H9",
"contra_account": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"client_request_id": "LJIS16BACHQG9LPP44L9IQHGAB",
"instant_funding_id": "89JGKD4LKIVI5UU6L3KHNU10IA",
"amount": "100",
"currency": "USD",
"type": "SERVICE_FEE",
"status": "REJECTED",
"reason": "xxxxxx",
"update_time": "2025-11-21T06:27:43.312Z",
"biz_type": "FEE_DEDUCTION"
}
}
{
"id": "event_c4b2c210-ce32-41d4-a9a1-cfad4fdf191c",
"event_type": "FUNDING",
"position": "CJO1fxACGAAgADAB",
"timestamp": "2025-03-29T07:02:33.200962333Z",
"payload": {
"account": "93IUJ28O9VO2KBGHDHR4H9",
"contra_account": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"client_request_id": "LJIS16BACHQG9LPP44L9IQHGAB",
"instant_funding_id": "89JGKD4LKIVI5UU6L3KHNU10IA",
"amount": "100",
"currency": "USD",
"type": "SERVICE_FEE",
"status": "FAILED",
"reason": "xxxxxx",
"update_time": "2025-11-21T06:27:43.312Z",
"biz_type": "FEE_DEDUCTION"
}
}
{
"id": "event_c4b2c210-ce32-41d4-a9a1-cfad4fdf191c",
"event_type": "FUNDING",
"position": "CJO1fxACGAAgADAB",
"timestamp": "2025-03-29T07:02:33.200962333Z",
"payload": {
"account": "93IUJ28O9VO2KBGHDHR4H9",
"contra_account": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"client_request_id": "LJIS16BACHQG9LPP44L9IQHGAB",
"instant_funding_id": "89JGKD4LKIVI5UU6L3KHNU10IA",
"amount": "100",
"currency": "USD",
"type": "SERVICE_FEE",
"status": "COMPLETED",
"update_time": "2025-11-21T06:27:43.312Z",
"biz_type": "FEE_DEDUCTION"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
| id | string | Unique event identifier |
| event_type | string | Event type, fixed as FUNDING |
| position | string | Cursor for event replay; re-pushes subsequent events within the current business type. |
| timestamp | string | Event timestamp in ISO 8601 format |
| payload | object | Event payload data |
Payload Fields
| Field | Type | Description |
|---|---|---|
| account | string | Account ID |
| contra_account | string | Firm account ID |
| client_request_id | string | Client Request ID, unique for each request. |
| fee_id | string | Request id generated by the system. |
| amount | string | Amount. |
| currency | string | Currency, See the currency field in the Query Fee deduction Detail API response. |
| type | string | Type, See the type field in the Query Fee deduction Detail API response. |
| status | string | Request status, See the status field in the Query Fee deduction Detail API response. |
| reason | string | Reason. If the terminal state is not “COMPLETED”, return the reason. |
| update_time | string | UTC time, format: YYYY-MM-dd'T'HH:mm:ss.SSSZ. |
| biz_type | string | Business type, fixed as FEE_DEDUCTION |
Credit Events
Credit Event Notification
- CANCELED
- REJECTED
- FAILED
- COMPLETED
{
"id": "event_c4b2c210-ce32-41d4-a9a1-cfad4fdf191c",
"event_type": "FUNDING",
"position": "CJO1fxACGAAgADAB",
"timestamp": "2025-03-29T07:02:33.200962333Z",
"payload": {
"account": "93IUJ28O9VO2KBGHDHR4H9",
"contra_account": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"client_request_id": "LJIS16BACHQG9LPP44L9IQHGAB",
"credit_id": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"amount": "100",
"currency": "USD",
"type": "GIFTING",
"status": "CANCELED",
"reason": "xxxxxx",
"update_time": "2025-11-21T06:27:43.312Z",
"biz_type": "CREDIT"
}
}
{
"id": "event_c4b2c210-ce32-41d4-a9a1-cfad4fdf191c",
"event_type": "FUNDING",
"position": "CJO1fxACGAAgADAB",
"timestamp": "2025-03-29T07:02:33.200962333Z",
"payload": {
"account": "93IUJ28O9VO2KBGHDHR4H9",
"contra_account": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"client_request_id": "LJIS16BACHQG9LPP44L9IQHGAB",
"credit_id": "89JGKD4LKIVI5UU6L3KHNU10IA",
"amount": "100",
"currency": "USD",
"type": "GIFTING",
"status": "REJECTED",
"reason": "xxxxxx",
"update_time": "2025-11-21T06:27:43.312Z",
"biz_type": "CREDIT"
}
}
{
"id": "event_c4b2c210-ce32-41d4-a9a1-cfad4fdf191c",
"event_type": "FUNDING",
"position": "CJO1fxACGAAgADAB",
"timestamp": "2025-03-29T07:02:33.200962333Z",
"payload": {
"account": "93IUJ28O9VO2KBGHDHR4H9",
"contra_account": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"client_request_id": "LJIS16BACHQG9LPP44L9IQHGAB",
"credit_id": "89JGKD4LKIVI5UU6L3KHNU10IA",
"amount": "100",
"currency": "USD",
"type": "GIFTING",
"status": "FAILED",
"reason": "xxxxxx",
"update_time": "2025-11-21T06:27:43.312Z",
"biz_type": "CREDIT"
}
}
{
"id": "event_c4b2c210-ce32-41d4-a9a1-cfad4fdf191c",
"event_type": "FUNDING",
"position": "CJO1fxACGAAgADAB",
"timestamp": "2025-03-29T07:02:33.200962333Z",
"payload": {
"account": "93IUJ28O9VO2KBGHDHR4H9",
"contra_account": "41IO9QG4M5O65B0EA4LSJ4UJ99",
"client_request_id": "LJIS16BACHQG9LPP44L9IQHGAB",
"credit_id": "89JGKD4LKIVI5UU6L3KHNU10IA",
"amount": "100",
"currency": "USD",
"type": "GIFTING",
"status": "COMPLETED",
"update_time": "2025-11-21T06:27:43.312Z",
"biz_type": "CREDIT"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
| id | string | Unique event identifier |
| event_type | string | Event type, fixed as FUNDING |
| position | string | Cursor for event replay; re-pushes subsequent events within the current business type. |
| timestamp | string | Event timestamp in ISO 8601 format |
| payload | object | Event payload data |
Payload Fields
| Field | Type | Description |
|---|---|---|
| account | string | Account ID |
| contra_account | string | Firm account ID |
| client_request_id | string | Client Request ID, unique for each request. |
| credit_id | string | Request id generated by the system. |
| amount | string | Amount. |
| currency | string | Currency, See the currency field in the Get Credit Detail API response. |
| type | string | Type, See the type field in the Get Credit Detail API response. |
| status | string | Request status, See the status field in the Get Credit Detail API response. |
| reason | string | Reason. If the terminal state is not “COMPLETED”, return the reason. |
| update_time | string | UTC time, format: YYYY-MM-dd'T'HH:mm:ss.SSSZ. |
| biz_type | string | Business type, fixed as CREDIT |