Error and Status Code Reference
This page summarizes commonly used status, function, and event codes in Fubon Neo API securities trading, so that developers can quickly look up results and diagnose issues.
Order Status
The current status of an order. Obtain it through GetOrderResult or an active report.
| Status | Value | Description |
|---|---|---|
| Scheduled order | 0 | Scheduled order |
| System is sending the order to the backend | 4 | Query the status with GetOrderResult |
| Sending to the backend | 8 | Query the status with GetOrderResult |
| Connection timeout | 9 | Query again later with GetOrderResult or contact your broker |
| Order accepted | 10 | Order accepted |
| Unfilled order cancelled | 30 | Unfilled order cancelled successfully |
| Partially filled; remainder cancelled | 40 | Partially filled; remainder cancelled |
| Fully filled | 50 | Fully filled |
| Failed | 90 | Failed |
| Order-history query marker | 14, 24, 34 | 14 - price-change ACK; 24 - quantity-change ACK; 34 - cancel ACK |
| Price change succeeded | 15 | Order-history query |
| Quantity change succeeded | 20 | Order-history query |
| Price change failed | 19 | Active report |
| Quantity change failed | 29 | Active report |
| Cancellation failed | 39 | Active report |
Function Type
Identifies the operation represented by a report or query result.
| Function | Value | Description |
|---|---|---|
| New order | 0 | New order |
| New-order execution | 10 | New-order execution |
| Change price | 15 | Change price |
| Change quantity | 20 | Change quantity |
| Cancel order | 30 | Cancel order |
| Fully filled | 50 | For order-history queries |
| Failed | 90 | Failed |
Event Code
When you subscribe to event notifications through on_event, the system returns the following codes.
| Code | Meaning |
|---|---|
100 | Connection established |
200 | Login succeeded |
201 | Login warning (for example, password has not been changed for 90 days) |
300 | Disconnected |
301 | No connection pong was received |
302 | User logged out and disconnected |
304 | API Key changed (revoked); the session was forcibly logged out (added in v2.2.7) |
500 | Error |