Error Codes & Status Reference
This page compiles common status codes, function types, and event codes in the Fubon Neo API (Stock Trading), allowing developers to quickly retrieve them when encountering issues or determining states.
Order Status (Status)
The current status of an order, which can be queried via GetOrderResult or obtained from active reports.
| Status Name | Status Code (Value) | Description |
|---|---|---|
| Pre-order | 0 | Pre-order |
| System sent order to backend | 4 | Please use GetOrderResult to query status |
| Backend transmitting | 8 | Please use GetOrderResult to query status |
| Connection timeout | 9 | Please use GetOrderResult to query status later or contact your broker |
| Order successful | 10 | Order successful |
| Unfilled order canceled successfully | 30 | Unfilled order canceled successfully |
| Partially filled, remainder canceled | 40 | Partially filled, remainder canceled |
| Fully filled | 50 | Fully filled |
| Failed | 90 | Failed |
| Order history query indicator | 14, 24, 34 | 14 - Price modification ACK, 24 - Quantity modification ACK, 34 - Cancellation ACK |
| Price modification successful | 15 | Historical order query |
| Quantity modification successful | 20 | Historical order query |
| Price modification failed | 19 | Active report |
| Quantity modification failed | 29 | Active report |
| Cancellation failed | 39 | Active report |
Function Type
Indicates the operation type of the report or query result.
| Function Name | Code (Value) | Description |
|---|---|---|
| New order | 0 | New order |
| New order execution | 10 | New order execution |
| Modify price | 15 | Modify price |
| Modify quantity | 20 | Modify quantity |
| Cancel order | 30 | Cancel order |
| Fully filled | 50 | for order history query |
| Failed | 90 | Failed |
Event Code
When subscribing to event notifications via on_event, the system will return the following codes.
| Return Code | Meaning |
|---|---|
100 | Connection established successfully |
200 | Login successful |
201 | Login warning (e.g., password not changed for 90 days) |
300 | Disconnected |
301 | Connection pong not received |
302 | User logged out and disconnected |
304 | API Key changed (Revoked), forced logout (Added in version 2.2.7) |
500 | Error |