Error Codes & Status Reference
This page compiles common status codes, function types, and event codes in the Fubon Neo API (Future 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 |
| Middle office received order | 4 | Please use GetOrderResult to query status |
| Backend connection timeout | 9 | Please use GetOrderResult to query status later or contact your broker |
| Order successful | 10 | Order successful |
| Cancellation successful | 30 | Cancellation successful |
| Fully filled | 50 | Fully filled |
| Price modification failed | 19 | Price modification failed |
| Quantity modification failed | 29 | Quantity modification failed |
| Cancellation failed | 39 | Cancellation failed |
| Failed | 90 | Failed |
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 |
| 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 |