Skip to main content

Error and Status Code Reference

This page summarizes the status, function, and event codes commonly used by the Fubon Neo API for futures trading, so developers can quickly look them up when troubleshooting or evaluating a status.

Order status

The current status of an order can be retrieved through GetOrderResult or received through order reports. The language-specific query methods are Python get_order_results, Node.js getOrderResults, and C# GetOrderResult.

StatusValueDescription
Pre-order0Pre-order
Order received by the middle office4Intermediate status; use GetOrderResult to retrieve the latest status.
Processing reported by the exchange8Exchange-reported intermediate status, often observed for orders not priced at the limit-up or limit-down price; this status is not shown by get_result or get_result_detail.
Back-office connection timeout9Query the status with GetOrderResult later, or contact your broker.
Order or modification succeeded10A new order succeeded; successful price or quantity modifications also return 10, so inspect the returned order fields to identify the modification.
Cancellation successful30Cancellation successful
Partially filled; remainder cancelled40Partially filled; the unfilled remainder was cancelled.
Fully filled50Fully filled
Price modification failed19Price modification failed
Quantity modification failed29Quantity modification failed
Cancellation failed39Cancellation failed
Failed90Failed
Futures and securities status-code differences
  • Futures orders do not use the securities success statuses 15 and 20 for price and quantity modifications, and do not use the ACK statuses 14, 24, and 34.
  • A successful futures price or quantity modification returns status 10. Inspect the price and quantity fields in that 10 result to distinguish the modification.
  • Status 8 is an exchange-reported intermediate status, often observed for orders not priced at the limit-up or limit-down price. It is not included in get_result or get_result_detail results.

Function type

Indicates the operation associated with the report or query result. Values 15 and 20 in this section are function types, not successful futures order statuses.

FunctionValueDescription
New order0New order
New-order execution10New-order execution
Price modification15Price modification
Quantity modification20Quantity modification
Cancellation30Cancellation
Failed90Failed

Event codes

The following codes are returned when subscribing to event notifications through on_event.

Returned codeMeaning
100Connection established successfully
200Login successful
201Login warning (for example, the password has not been changed for 90 days)
300Disconnected
301No connection pong response received
302The user logged out and disconnected
304API Key changed (revoked); forced logout (added in version 2.2.7)
500Error