Skip to main content

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.

StatusValueDescription
Scheduled order0Scheduled order
System is sending the order to the backend4Query the status with GetOrderResult
Sending to the backend8Query the status with GetOrderResult
Connection timeout9Query again later with GetOrderResult or contact your broker
Order accepted10Order accepted
Unfilled order cancelled30Unfilled order cancelled successfully
Partially filled; remainder cancelled40Partially filled; remainder cancelled
Fully filled50Fully filled
Failed90Failed
Order-history query marker14, 24, 3414 - price-change ACK; 24 - quantity-change ACK; 34 - cancel ACK
Price change succeeded15Order-history query
Quantity change succeeded20Order-history query
Price change failed19Active report
Quantity change failed29Active report
Cancellation failed39Active report

Function Type

Identifies the operation represented by a report or query result.

FunctionValueDescription
New order0New order
New-order execution10New-order execution
Change price15Change price
Change quantity20Change quantity
Cancel order30Cancel order
Fully filled50For order-history queries
Failed90Failed

Event Code

When you subscribe to event notifications through on_event, the system returns the following codes.

CodeMeaning
100Connection established
200Login succeeded
201Login warning (for example, password has not been changed for 90 days)
300Disconnected
301No connection pong was received
302User logged out and disconnected
304API Key changed (revoked); the session was forcibly logged out (added in v2.2.7)
500Error