Skip to main content

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 NameStatus Code (Value)Description
Pre-order0Pre-order
System sent order to backend4Please use GetOrderResult to query status
Backend transmitting8Please use GetOrderResult to query status
Connection timeout9Please use GetOrderResult to query status later or contact your broker
Order successful10Order successful
Unfilled order canceled successfully30Unfilled order canceled successfully
Partially filled, remainder canceled40Partially filled, remainder canceled
Fully filled50Fully filled
Failed90Failed
Order history query indicator14, 24, 3414 - Price modification ACK, 24 - Quantity modification ACK, 34 - Cancellation ACK
Price modification successful15Historical order query
Quantity modification successful20Historical order query
Price modification failed19Active report
Quantity modification failed29Active report
Cancellation failed39Active report

Function Type

Indicates the operation type of the report or query result.

Function NameCode (Value)Description
New order0New order
New order execution10New order execution
Modify price15Modify price
Modify quantity20Modify quantity
Cancel order30Cancel order
Fully filled50for order history query
Failed90Failed

Event Code

When subscribing to event notifications via on_event, the system will return the following codes.

Return CodeMeaning
100Connection established successfully
200Login successful
201Login warning (e.g., password not changed for 90 days)
300Disconnected
301Connection pong not received
302User logged out and disconnected
304API Key changed (Revoked), forced logout (Added in version 2.2.7)
500Error