Skip to main content

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 NameStatus Code (Value)Description
Pre-order0Pre-order
Middle office received order4Please use GetOrderResult to query status
Backend connection timeout9Please use GetOrderResult to query status later or contact your broker
Order successful10Order successful
Cancellation successful30Cancellation successful
Fully filled50Fully filled
Price modification failed19Price modification failed
Quantity modification failed29Quantity modification failed
Cancellation failed39Cancellation failed
Failed90Failed

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
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