Webull Public FIX Interface
v2.5
Copyright
This document is the copyrighted work of Webull. Webull distributes this document pursuant to a subscription agreement containing confidentiality and license provisions and is solely for the benefit of its authorized licensees. This documentation may not be copied or transmitted, in whole or in part, in any form or by any means without the express written consent of Webull.
Content
Information in this document is subject to change without notice. In the event that you are using a version of Webull products other than the most recent version, there may be discrepancies between the content of this documentation and the operation or visual presentation of your older version of the product. Webull does not warrant that this documentation is error-free.
Trademarks
Webull is a registered trademark. All Webull company and product names are trademarks of Webull. All other company or product names mentioned herein are the trademarks or registered trademarks of their respective companies.
1. Introduction
The Webull Public FIX Interface has been developed on the universally adopted standard FIX protocol, offering clients standardized protocol access to the Webull global trading network.
This document is designed to furnish clients with the specifications needed for integrating with Webull through the FIX protocol.
Please note that this document does not include guidance on implementing the FIX engine. It is recommended that readers have a preliminary understanding of the FIX protocol before proceeding.
2. Supported FIX Version
This specification is developed based on FIX 4.2. Building on this, it also introduces some higher-version tags and values to support special types of orders. Customers can connect via the following FIX versions:
- FIX.4.2
3. Standard Message Header
| Field | Name | Req'd | Description |
|---|---|---|---|
| 8 | BeginString | Y | Valid Value: FIX.4.2 |
| 9 | BodyLength | Y | Must be the second field in message. |
| 34 | MsgSeqNum | Y | |
| 35 | MsgType | Y | Must be the third field in message. Please refer to the sections "Session Level Messages" and "Application Level Messages" for the MsgType<35> supported. |
| 43 | PossDupFlag | N | Always required for retransmitted messages, whether prompted by the sending system or as the result of a resend request. |
| 49 | SenderCompID | Y | |
| 50 | SenderSubID | N | Used for firm identification in third-party transactions. For example, if you are a broker, this field sets UUID of the broker user, when placing/modify/cancel order. |
| 52 | SendingTime | Y | Time/date combination represented in UTC (Universal Time Coordinated, also known as "GMT") in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 56 | TargetCompID | Y | |
| 115 | OnBehalfOfCompID | N | Trading partner company ID used when sending messages via a third party. |
| 122 | OrigSendingTime | N | Required for message resent as a result of a ResendRequest. |
| 128 | DeliverToCompID | N | Trading partner company ID used when sending messages via a third party. |
4. Standard Message Trailer
| Field | Name | Req'd | Description |
|---|---|---|---|
| 10 | CheckSum | Y |
5. Session Level Messages
The following session level messages are supported:
| Name | MsgType | Incoming | Outgoing |
|---|---|---|---|
| Logon | A | ✓ | ✓ |
| Heartbeat | 0 | ✓ | ✓ |
| TestRequest | 1 | ✓ | ✓ |
| ResendRequest | 2 | ✓ | ✓ |
| Reject | 3 | ✓ | ✓ |
| SequenceReset | 4 | ✓ | ✓ |
| Logout | 5 | ✓ | ✓ |
5.1 Logon
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=A | |
| 98 | EncryptMethod | Y | Valid values: 0: None |
| 108 | HeartBtInt | Y | Always set to 30s. |
| 141 | ResetSeqNumFlag | N | Always set to N. |
| 553 | Username | Y | |
| 554 | Password | Y | |
| <Standard Trailer> | Y |
* USERNAMES AND PASSWORDS ARE ALWAYS REQUIRED WHEN ACCESSING THE SYSTEM. THEY WILL BE SECURELY PROVIDED UPON ACTIVATION OF YOUR FIX SESSION.
5.2 Heartbeat
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=0 | |
| 112 | TestReqID | N | Required when the heartbeat is the result of a Test Request message. |
| <Standard Trailer> | Y |
5.3 TestRequest
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=1 | |
| 112 | TestReqID | Y | |
| <Standard Trailer> | Y |
5.4 ResendRequest
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=2 | |
| 7 | BeginSeqNo | Y | |
| 16 | EndSeqNo | Y | 0 represents infinity. |
| <Standard Trailer> | Y |
5.5 Reject
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=3 | |
| 45 | RefSeqNum | Y | MsgSeqNum <34> of rejected message |
| 371 | RefTagID | N | The tag number of the FIX field being referenced. |
| 372 | RefMsgType | N | The MsgType <35> of the FIX message being referenced. |
| 373 | SessionRejectReason | N | Code to identify reason for a session-level Reject <3> message. |
| 58 | Text | N | Where possible, message to explain reason for rejection |
| <Standard Trailer> | Y |
5.6 SequenceReset (GapFill)
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=4 | |
| 123 | GapFillFlag | Y | Always sets to Y. |
| 36 | NewSeqNo | Y | |
| <Standard Trailer> | Y |
5.7 Logout
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=5 | |
| 58 | Text | N | Message to explain reason for logout |
| <Standard Trailer> | Y |
6. Application Level Messages
| Name | MsgType | Incoming | Outgoing |
|---|---|---|---|
| NewOrderSingle | D | ✓ | - |
| OrderCancelReplaceRequest | G | ✓ | - |
| OrderCancelRequest | F | ✓ | - |
| ExecutionReport | 8 | - | ✓ |
| CancelReplaceReject | 9 | - | ✓ |
| NewOrderMultileg | AB | ✓ | - |
| MultilegOrderCancelReplaceRequest | AC | ✓ | - |
6.1 NewOrderSingle
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=D | |
| 1 | Account | Y | Trading account on Webull platform. Omnisub Mode: Specifies the VA account. The master account is not supported for order placement when Omnisub mode is enabled. Omnibus Mode: Specifies the master or sub-account. |
| 11 | ClOrdID | Y | Unique identifier of the order. Must be 64 characters or less. |
| 15 | Currency | N | Identifies currency used for price. Absence of this field is interpreted as the default for the security. |
| 38 | OrderQty | Y | Number of shares ordered. |
| 40 | OrdType | Y | Valid values: 1: Market, 2: Limit, 3: Stop, 4: StopLimit, 5: MarketOnClose (MOC), 7: LimitOrBetter, J: MarketIfTouched (MIT), LT: LimitIfTouched, B: LimitOnClose (LOC). See supported ordTypes in different markets. MarketOnOpen (MOO): tag40=1(Market) and tag59=2 (At the opening); LimitOnOpen (LOO): tag40=2(Limit) and tag59=2 (At the opening). |
| 44 | Price | N | Required if OrdType<40> is one of: Limit(2), StopLimit(4), LimitOrBetter(7), LimitIfTouched(LT), LimitOnClose(B) |
| 54 | Side | Y | Valid values: US common stock: 1: Buy, 2: Sell, 5: Sell Short. US option: 1: Buy, 2: Sell. HK/CN common stock: 1: Buy, 2: Sell. |
| 22 | IDSource | N | Identifies class of the SecurityID <48> value. Required if SecurityID <48> is specified. Valid values: 1 = CUSIP, 4 = ISIN Number |
| 48 | SecurityID | N | The value of the security identifier and its classification is defined by IDSource<22>. |
| 55 | Symbol | Y | Common Stock: ticker symbol. Option: option root, a combination of underlying symbol and corp-action indicator. For example, AAPL is an option root of a standard option and AAPL1 is an option root of an adjusted option. |
| 65 | SymbolSfx | N | Required if a stock symbol has a suffix, such as BRK.A. Only used in US market. |
| 58 | Text | N | |
| 59 | TimeInForce | Y | Valid values: 0: Day, 1: Good-Till-Cancelled, 2: At-The-Opening. For Good-Til-Cancelled(1) orders, please note that they will still expire 90 calendar days after the order placement date, including the day the order is placed. See supported timeInForces in different market. |
| 60 | TransactTime | Y | Time this order request was initiated/released by the trader or trading system. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 77 | OpenClose | N | Required if SecurityType<167> = OPT. Valid values: O: Open, C: Close |
| 99 | StopPx | N | Required if OrdType<40> is one of: Stop(3), StopLimit(4) |
| 100 | ExDestination | N | Execution destination as defined by institution when order is entered. Only applicable to U.S. stocks. Valid values: SMART: System chooses the best execution exchange smartly. |
| 152 | CashOrderQty | N | Populated with the amount in cash to be purchased or sold. Only for US stock. |
| 167 | SecurityType | Y | Valid values: CS: Common Stock, OPT: Option |
| 207 | SecurityExchange | N | Required if Tag22 or Tag48 are not present. Valid values: US: US exchanges, HK: HK exchanges, CN: CN exchanges |
| 200 | MaturityMonthYear | N | Required if SecurityType<167> = OPT. Format: YYYYMM. e.g. 202404 is April 2024. |
| 201 | PutOrCall | N | Required if SecurityType<167> = OPT. Valid values: 0: PUT, 1: CALL |
| 202 | StrikePrice | N | Required if SecurityType<167> = OPT |
| 205 | MaturityDay | N | Required if SecurityType<167> = OPT. Int field representing a particular day of a month. Valid values: 1-31. |
| 336 | TradingSessionID | N | Identifier for Trading Session. Only for US common stock. Valid values: CORE: regular trading session (9:30 a.m. - 4:00 p.m. ET, default) ALL: all trading sessions including extended hours (4:00 a.m. - 8:00 p.m. ET) NIGHT: night session (8:00 p.m. - 4:00 a.m. ET) ALL_DAY: all trading sessions including overnight hours (8:00 p.m. ET - 8:00 p.m. ET the next day) |
Group Block <Parties>
| Field | Name | Req'd | Description |
|---|---|---|---|
| 453 | NoPartyIDs | N | Required if SecurityExchange=HK |
| → 448 | PartyID | Y | ID of the Broker client submitting the order: BCAN Field. The BCAN Field format is: [CE Number].[BCAN]. The BCAN Field is included in orders sent to Webull but not echoed back in Execution. |
| → 447 | PartyIdSource | Y | Defines the naming convention used in specifying the PartyID(448). Valid values: D: Proprietary/Custom Code |
| → 452 | PartyRole | Y | Role of the specified PartyID(448). Valid values: 3: Client ID (BCAN Field) |
End Group Block
| Field | Name | Req'd | Description |
|---|---|---|---|
| 1093 | LotType | N | Lot type for HK stocks. Valid values: 1: Odd lot |
| 1102 | TriggerPrice | N | The price at which the trigger should hit. Only for US common stock or options. Required if Tag40 is J or LT |
| 1107 | TriggerPriceType | N | The type of price that the trigger is compared to. Required if Tag40 is J or LT. Valid values: 1 = BEST_OFFER, 2 = LAST_TRADE, 3 = BEST_BID |
| 9000 | Algorithm | N | Required to send ALGO order. Supported values: VWAP, TWAP, POV |
| 9023 | TargetParticipation | N | Target volume percentage. When the Tag9000 Algorithm is 'POV', then the tag9023 is required. Rules: Double (positive 1 to 99) %. For 12% |
| 9003 | StartTime | N | When the algorithm is to start executing. Format: YYYYMMDD-HH:MM:SS, UTC timestamp. Default value is session open time if not provided. |
| 9004 | EndTime | N | When the algorithm is to be done executing. Format: YYYYMMDD-HH:MM:SS, UTC timestamp. Default value is session end time if not provided. |
| <Standard Trailer> | Y |
6.2 OrderCancelReplaceRequest
* Please note that the CN market does not support order modifications.
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=G | |
| 1 | Account | Y | Trading account on Webull platform. |
| 11 | ClOrdID | Y | Unique identifier of replacement order as assigned by institution or by the intermediary with closest association with the investor. Note that this identifier will be used in ClOrdID field of the Cancel Reject message if the replacement request is rejected. Must be 64 characters or less. |
| 15 | Currency | N | Identifies currency used for price. Absence of this field is interpreted as the default for the security. |
| 41 | OrigClOrdID | Y | ClOrdID of the previous non rejected order (NOT the initial order of the day) when canceling or replacing an order. |
| 38 | OrderQty | Y | OrderQty after replaced. |
| 40 | OrdType | Y | Must match original order. Valid values: 1: Market, 2: Limit, 3: Stop, 4: StopLimit, 5: MarketOnClose (MOC), 7: LimitOrBetter, J: MarketIfTouched (MIT), LT: LimitIfTouched, B: LimitOnClose (LOC). See supported ordTypes in different markets. MarketOnOpen (MOO): tag40=1(Market) and tag59=2(At the opening); LimitOnOpen (LOO): tag40=2(Limit) and tag59=2(At the opening). |
| 44 | Price | N | Price after replaced. Required if OrdType<40> is one of: Limit(2), StopLimit(4), LimitOrBetter(7), LimitOnClose(B) |
| 54 | Side | Y | Must match original order. |
| 22 | IDSource | N | Identifies class of the SecurityID <48> value. Required if SecurityID <48> is specified. Valid values: 1 = CUSIP, 4 = ISIN Number |
| 48 | SecurityID | N | The value of the security identifier and its classification is defined by IDSource<22>. |
| 55 | Symbol | Y | Must match original order. |
| 65 | SymbolSfx | N | Must match original order. |
| 58 | Text | N | |
| 59 | TimeInForce | Y | Support the change from DAY(0) to GTC(1). In other cases, must match original order. |
| 60 | TransactTime | Y | Time this order request was initiated/released by the trader or trading system. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 77 | OpenClose | N | Required if SecurityType<167> = OPT. Valid values: O: Open, C: Close |
| 99 | StopPx | N | StopPx after replaced. Required if OrdType<40> is one of: Stop(3), StopLimit(4) |
| 152 | CashOrderQty | N | Populated with the amount in cash to be purchased or sold. Only for US stock. |
| 167 | SecurityType | Y | Must match original order. |
| 207 | SecurityExchange | N | Required if Tag22 or Tag48 are not present. Valid values: US: US exchanges, HK: HK exchanges, CN: CN exchanges. The CN market does not support order modifications. |
| 200 | MaturityMonthYear | N | Required if SecurityType<167> = OPT. Format: YYYYMM. |
| 201 | PutOrCall | N | Required if SecurityType<167> = OPT. Valid values: 0: PUT, 1: CALL |
| 202 | StrikePrice | N | Required if SecurityType<167> = OPT |
| 205 | MaturityDay | N | Required if SecurityType<167> = OPT. Int field representing a particular day of a month. Valid values: 1-31. |
| 336 | TradingSessionID | N | Must match original order. |
| 1093 | LotType | N | Lot type for HK stocks. Valid values: 1: Odd lot |
| 1102 | TriggerPrice | N | The price at which the trigger should hit. Only for US common stock or options. |
| 1107 | TriggerPriceType | N | The type of price that the trigger is compared to. Valid values: 1 = BEST_OFFER, 2 = LAST_TRADE, 3 = BEST_BID |
| 9000 | Algorithm | N | Required to send ALGO order. Supported values: VWAP, TWAP, POV |
| 9023 | TargetParticipation | N | Target volume percentage. When the Tag9000 Algorithm is 'POV', then the tag9023 is required. Rules: Double (positive 1 to 99) %. For 12% |
| 9003 | StartTime | N | When the algorithm is to start executing. Format: YYYYMMDD-HH:MM:SS, UTC timestamp. Default value is session open time if not provided. |
| 9004 | EndTime | N | When the algorithm is to be done executing. Format: YYYYMMDD-HH:MM:SS, UTC timestamp. Default value is session end time if not provided. |
| <Standard Trailer> | Y |
6.3 OrderCancelRequest
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=F | |
| 1 | Account | Y | Trading account on Webull platform. |
| 11 | ClOrdID | Y | Unique identifier of replacement order as assigned by institution or by the intermediary with closest association with the investor. Note that this identifier will be used in ClOrdID field of the Cancel Reject message if the replacement request is rejected. Must be 64 characters or less. |
| 15 | Currency | N | Identifies currency used for price. Absence of this field is interpreted as the default for the security. |
| 41 | OrigClOrdID | Y | ClOrdID of the previous non rejected order (NOT the initial order of the day) when canceling or replacing an order. |
| 38 | OrderQty | N | |
| 167 | SecurityType | Y | Must match original order. |
| 207 | SecurityExchange | N | Required if Tag22 or Tag48 are not present. Valid values: US: US exchanges, HK: HK exchanges, CN: CN exchanges |
| 22 | IDSource | N | Identifies class of the SecurityID <48> value. Required if SecurityID <48> is specified. Valid values: 1 = CUSIP, 4 = ISIN Number |
| 48 | SecurityID | N | The value of the security identifier and its classification is defined by IDSource<22>. |
| 55 | Symbol | Y | Must match original order. |
| 65 | SymbolSfx | N | |
| 54 | Side | Y | Must match original order. |
| 60 | TransactTime | Y | Time this order request was initiated/released by the trader or trading system. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| <Standard Trailer> | Y |
6.4 ExecutionReport
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=8 | |
| 1 | Account | Y | Trading account on Webull platform. |
| 6 | AvgPx | Y | |
| 11 | ClOrdID | Y | Unique identifier of the order. |
| 14 | CumQty | Y | Currently executed shares for chain of orders. |
| 15 | Currency | N | Identifies currency used for price. Absence of this field is interpreted as the default for the security. |
| 17 | ExecID | Y | Unique identifier of execution message. |
| 19 | ExecRefID | N | Required for Cancel and Correct ExecTransType <20> messages |
| 20 | ExecTransType | Y | Identifies transaction type. Valid values: 0: New, 1: Cancel, 2: Correct |
| 30 | LastMkt | N | |
| 31 | LastPx | Y | Price of this (last) fill. |
| 32 | LastShares | Y | Quantity of shares bought/sold on this (last) fill. |
| 37 | OrderID | Y | Unique for each chain of orders. |
| 38 | OrderQty | Y | |
| 39 | OrdStatus | Y | Describes the current state of a CHAIN of orders. Valid values: 0: New, 1: Partially filled, 2: Filled, 3: Done for day, 4: Canceled, 5: Replaced, 6: Pending Cancel, 7: Stopped, 8: Rejected, 9: Suspended, A: Pending New, B: Calculated, C: Expired, D: Accepted for bidding, E: Pending Replace |
| 40 | OrdType | N | |
| 41 | OrigClOrdID | N | ClOrdID <11> of the previous order (NOT the initial order of the day) as assigned by the institution, used to identify the previous order in cancel and cancel/replace requests. |
| 44 | Price | N | Required if specified on the order |
| 54 | Side | Y | |
| 55 | Symbol | Y | |
| 65 | SymbolSfx | N | |
| 58 | Text | N | |
| 59 | TimeInForce | Y | Valid values: 0: Day, 1: Good-Til-Cancelled, 2: At-The-Opening |
| 60 | TransactTime | Y | Time the transaction represented by this ExecutionReport occurred. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 99 | StopPx | N | Required if specified on the order |
| 103 | OrdRejReason | N | For optional use with ExecType <150> ='8' (Rejected). Valid values: 0: Broker option, 1: Unknown symbol, 2: Exchange closed, 3: Order exceeds limit, 4: Too late to enter, 5: Unknown Order, 6: Duplicate Order, 7: Duplicate of a verbally communicated order, 8: Stale Order, 16: Order rejected because exceeds current price band, 99: Other reject reason. |
| 150 | ExecType | N | Describes the specific ExecutionRpt <8> (i.e. Pending Cancel) while OrdStatus <39> will always identify the current order status (i.e. Partially Filled). Valid values: 0: New, 1: Partially filled, 2: Filled, 3: Done for day, 4: Canceled, 5: Replaced, 6: Pending Cancel, 7: Stopped, 8: Rejected, 9: Suspended, A: Pending New, B: Calculated, C: Expired, D: Restated, E: Pending Replace |
| 151 | LeavesQty | Y | Amount of shares open for further execution. If the OrdStatus <39> is Canceled, DoneForTheDay, Expired, Calculated, or Rejected (in which case the order is no longer active) then LeavesQty <151> could be 0, otherwise LeavesQty <151> = OrderQty <38> - CumQty <14>. |
| 167 | SecurityType | N | Valid values: CS: Common Stock, OPT: Option |
| 200 | MaturityMonthYear | N | Required if SecurityType<167> = OPT. Format: YYYYMM. |
| 201 | PutOrCall | N | Required if SecurityType<167> = OPT. Valid values: 0: PUT, 1: CALL |
| 202 | StrikePrice | N | Required if SecurityType<167> = OPT |
| 205 | MaturityDay | N | Required if SecurityType<167> = OPT. Int field representing a particular day of a month. Valid values: 1-31. |
| 207 | SecurityExchange | N | Valid values: US: US exchanges, HK: HK exchanges, CN: CN exchanges |
| <Standard Trailer> | Y |
6.5 CancelReplaceReject
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=9 | |
| 1 | Account | Y | Trading account on Webull platform. |
| 11 | ClOrdID | Y | Unique identifier of the order. |
| 37 | OrderID | Y | Unique for each chain of orders. |
| 41 | OrigClOrdID | Y | ClOrdID <11> of the previous order (NOT the initial order of the day) as assigned by the institution, used to identify the previous order in cancel and cancel/replace requests. |
| 39 | OrdStatus | Y | Describes the current state of a CHAIN of orders. |
| 58 | Text | N | |
| 434 | CxlRejResponseTo | Y | Valid values: 1: Order Cancel Request, 2: Order Cancel/Replace Request |
| 102 | CxlRejReason | N | Valid values: 0: Too late to cancel, 1: Unknown order, 2: Broker / Exchange Option, 3: Order already in Pending Cancel or Pending Replace status, 99: Other |
| <Standard Trailer> | Y |
6.6 NewOrderMultileg
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=AB | |
| 1 | Account | Y | Trading account on Webull platform. Omnisub Mode: Specifies the VA account. The master account is not supported for order placement when Omnisub mode is enabled. Omnibus Mode: Specifies the master or sub-account. |
| 11 | ClOrdID | Y | Unique identifier of the order. Must be 64 characters or less. |
| 38 | OrderQty | Y | Order quantity. For options, represents the number of contracts. |
| 40 | OrdType | Y | Valid values: 1: Market, 2: Limit, 3: Stop, 4: StopLimit. See supported ordTypes in different markets. |
| 44 | Price | N | Required if OrdType<40> is one of: Limit(2), StopLimit(4) |
| 54 | Side | Y | Side of order. Valid values: 1: Buy, 2: Sell |
| 55 | Symbol | Y | Underlying Symbol |
| 58 | Text | N | |
| 59 | TimeInForce | Y | Valid values: 0: Day, 1: Good-Till-Cancelled. For Good-Til-Cancelled(1) orders, please note that they will still expire 90 calendar days after the order placement date, including the day the order is placed. See supported timeInForces in different market. |
| 60 | TransactTime | Y | Time this order request was initiated/released by the trader or trading system. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 65 | SymbolSfx | N | |
| 77 | OpenClose | N | Valid values: O: Open, C: Close |
| 99 | StopPx | N | Required if OrdType<40> is one of: Stop(3), StopLimit(4) |
| 100 | ExDestination | N | Execution destination as defined by institution when order is entered. Only applicable to U.S. stocks. Valid values: SMART: System chooses the best execution exchange smartly. |
| 167 | SecurityType | Y | Indicates type of security. Valid value: MLEG |
| 207 | SecurityExchange | Y | Valid values: US: US exchanges |
Component Block <NoLegs>
| Field | Name | Req'd | Description |
|---|---|---|---|
| 555 | NoLegs | Y | Number of <InstrumentLeg> repeating group instances. |
| → 654 | LegRefID | Y | Unique indicator for a specific leg. |
| → 600 | LegSymbol | Y | Multileg instrument's individual security's Symbol. |
| → 601 | LegSymbolSfx | N | Multileg instrument's individual security's SymbolSfx. |
| → 608 | LegCFICode | Y | Multileg instrument's individual security's CFICode. Valid values: OC = Option — Call, OP = Option — Put, ES = Equity Common Shares |
| → 610 | LegMaturityMonthYear | N | Expiration month and year of the individual leg. Required when LegCFICode <608> is OC or OP. Format: YYYYMM. |
| → 611 | LegMaturityDate | N | Expiration date of the individual leg. Required when LegCFICode <608> is OC or OP. Format: YYYYMMDD. |
| → 612 | LegStrikePrice | N | Strike price of the individual leg. Required when LegCFICode <608> is OC or OP. |
| → 623 | LegRatioQty | Y | Ratio quantity of the individual leg relative to the other legs in the strategy. |
| → 624 | LegSide | Y | Side of the individual leg. Valid values: 1: Buy, 2: Sell, 5: Sell Short (valid only if LegCFICode <608> = ES) |
| → 564 | LegPositionEffect | N | Position effect for the individual leg. Required when LegCFICode <608> is OC or OP. Valid values: O = Open, C = Close. |
End Component Block
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Trailer> | Y |
6.7 MultilegOrderCancelReplaceRequest
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=AC | |
| 1 | Account | Y | Trading account on Webull platform. |
| 11 | ClOrdID | Y | Unique identifier of the order. Must be 64 characters or less. |
| 38 | OrderQty | Y | Order quantity. For options, represents the number of contracts. |
| 40 | OrdType | Y | Valid values: 1: Market, 2: Limit, 3: Stop, 4: StopLimit. See supported ordTypes in different markets. |
| 41 | OrigClOrdID | Y | ClOrdID of the previous non rejected order (NOT the initial order of the day) when canceling or replacing an order. |
| 44 | Price | N | Required if OrdType<40> is one of: Limit(2), StopLimit(4) |
| 54 | Side | Y | Same as original order. |
| 55 | Symbol | Y | Same as original order. |
| 58 | Text | N | |
| 59 | TimeInForce | Y | Valid values: 0: Day, 1: Good-Till-Cancelled. For Good-Til-Cancelled(1) orders, please note that they will still expire 90 calendar days after the order placement date, including the day the order is placed. Only modifying TimeInForce from 0 (Day) to 1 (GTC) is permitted on replace. |
| 60 | TransactTime | Y | Time this order request was initiated/released by the trader or trading system. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 65 | SymbolSfx | N | |
| 77 | OpenClose | N | Valid values: O: Open, C: Close |
| 99 | StopPx | N | Required if OrdType<40> is one of: Stop(3), StopLimit(4) |
| 100 | ExDestination | N | Execution destination as defined by institution when order is entered. Valid values: SMART: System chooses the best execution exchange smartly. |
| 167 | SecurityType | Y | Indicates type of security. Valid value: MLEG |
| 207 | SecurityExchange | Y | Valid values: US: US exchanges |
Component Block <NoLegs>
| Field | Name | Req'd | Description |
|---|---|---|---|
| 555 | NoLegs | Y | Number of <InstrumentLeg> repeating group instances. |
| → 654 | LegRefID | Y | Unique indicator for a specific leg. |
| → 600 | LegSymbol | Y | Multileg instrument's individual security's Symbol. |
| → 601 | LegSymbolSfx | N | Multileg instrument's individual security's SymbolSfx. |
| → 608 | LegCFICode | Y | Multileg instrument's individual security's CFICode. Valid values: OC: Option — Call, OP: Option — Put, ES: Equity Common Shares |
| → 610 | LegMaturityMonthYear | N | Expiration month and year of the individual leg. Required when LegCFICode <608> is OC or OP. Format: YYYYMM. |
| → 611 | LegMaturityDate | N | Expiration date of the individual leg. Required when LegCFICode <608> is OC or OP. Format: YYYYMMDD. |
| → 612 | LegStrikePrice | N | Strike price of the individual leg. Required when LegCFICode <608> is OC or OP. |
| → 623 | LegRatioQty | Y | Ratio quantity of the individual leg relative to the other legs in the strategy. Only integer values allowed. |
| → 624 | LegSide | Y | Side of the individual leg. Valid values: 1: Buy, 2: Sell, 5: Sell Short (valid only if LegCFICode <608> = ES) |
| → 564 | LegPositionEffect | N | Position effect for the individual leg. Required when LegCFICode <608> is OC or OP. Valid values: O = Open, C = Close. |
End Component Block
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Trailer> | Y |
6.8 MultilegOrderCancelRequest
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=F | |
| 1 | Account | Y | Trading account on Webull platform. |
| 11 | ClOrdID | Y | Unique identifier of the order. Must be 64 characters or less. |
| 38 | OrderQty | Y | Order quantity. For options, represents the number of contracts. |
| 41 | OrigClOrdID | Y | ClOrdID of the previous non rejected order (NOT the initial order of the day) when canceling or replacing an order. |
| 54 | Side | Y | Same as original order. |
| 55 | Symbol | Y | Same as original order. |
| 58 | Text | N | |
| 60 | TransactTime | Y | Time this order request was initiated/released by the trader or trading system. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 167 | SecurityType | Y | Indicates type of security. Valid value: MLEG |
| 207 | SecurityExchange | N | Valid values: US: US exchanges |
| <Standard Trailer> | Y |
6.9 MultilegExecutionReport
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=8 | |
| 1 | Account | Y | Trading account on Webull platform. |
| 6 | AvgPx | Y | Calculated average price of all fills on this order. |
| 11 | ClOrdID | Y | Unique identifier of the order. |
| 14 | CumQty | Y | Currently executed shares for chain of orders. |
| 17 | ExecID | Y | Unique identifier of execution message. |
| 19 | ExecRefID | N | Required for Cancel and Correct ExecTransType <20> messages |
| 20 | ExecTransType | Y | Identifies transaction type. Valid values: 0: New, 1: Cancel, 2: Correct |
| 30 | LastMkt | N | Market of execution for last fill |
| 31 | LastPx | Y | Price of this (last) fill. |
| 32 | LastShares | Y | Quantity of shares bought/sold on this (last) fill. |
| 37 | OrderID | Y | Unique for each chain of orders. |
| 38 | OrderQty | Y | Number of Contracts/shares |
| 39 | OrdStatus | Y | Describes the current state of a CHAIN of orders. Valid values: 0: New, 1: Partially filled, 2: Filled, 3: Done for day, 4: Canceled, 5: Replaced, 6: Pending Cancel, 7: Stopped, 8: Rejected, 9: Suspended, A: Pending New, B: Calculated, C: Expired, D: Accepted for bidding, E: Pending Replace |
| 40 | OrdType | N | |
| 41 | OrigClOrdID | N | ClOrdID <11> of the previous order (NOT the initial order of the day) as assigned by the institution, used to identify the previous order in cancel and cancel/replace requests. |
| 44 | Price | N | Required if specified on the order |
| 54 | Side | Y | |
| 55 | Symbol | Y | |
| 58 | Text | N | |
| 59 | TimeInForce | Y | Valid values: 0: Day, 1: Good-Til-Cancelled, 2: At-The-Opening |
| 60 | TransactTime | Y | Time the transaction represented by this ExecutionReport occurred. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 65 | SymbolSfx | N | |
| 77 | OpenClose | N | Valid values: O: Open, C: Close |
| 99 | StopPx | N | Required if specified on the order |
| 100 | ExDestination | N | Execution destination as defined by institution when order is entered. Valid values: SMART: System chooses the best execution exchange smartly. |
| 150 | ExecType | N | Describes the specific ExecutionRpt <8> (i.e. Pending Cancel) while OrdStatus <39> will always identify the current order status (i.e. Partially Filled). Valid values: 0: New, 1: Partially filled, 2: Filled, 3: Done for day, 4: Canceled, 5: Replaced, 6: Pending Cancel, 7: Stopped, 8: Rejected, 9: Suspended, A: Pending New, B: Calculated, C: Expired, D: Restated, E: Pending Replace |
| 151 | LeavesQty | Y | Amount of shares open for further execution. If the OrdStatus <39> is Canceled, DoneForTheDay, Expired, Calculated, or Rejected (in which case the order is no longer active) then LeavesQty <151> could be 0, otherwise LeavesQty <151> = OrderQty <38> - CumQty <14>. |
| 167 | SecurityType | N | Indicates type of security. Valid value: MLEG |
| 200 | MaturityMonthYear | N | Same as original order. |
| 201 | PutOrCall | N | Same as original order. |
| 202 | StrikePrice | N | Same as original order. |
| 205 | MaturityDay | N | Same as original order. |
| 207 | SecurityExchange | Y | Same as original order. |
| 442 | MultiLegReportingType | Y | Used to indicate what an Execution Report <8> represents (e.g. used with multi-leg securities, such as option strategies, spreads, etc.). Valid values: 2: Individual leg of a multi-leg security, 3: Multi-leg security |
| 541 | MaturityDate | N | Date of maturity. Format: YYYYMMDD |
| 654 | LegRefID | N | Unique indicator for a specific leg. |
| <Standard Trailer> | Y |
6.10 MultilegOrderCancelReplaceReject
| Field | Name | Req'd | Description |
|---|---|---|---|
| <Standard Header> | Y | MsgType<35>=9 | |
| 1 | Account | Y | Trading account on Webull platform. |
| 11 | ClOrdID | Y | Unique identifier of the order. |
| 37 | OrderID | Y | Unique for each chain of orders. |
| 39 | OrdStatus | Y | Describes the current state of a CHAIN of orders. |
| 41 | OrigClOrdID | Y | ClOrdID <11> of the previous order (NOT the initial order of the day) as assigned by the institution, used to identify the previous order in cancel and cancel/replace requests. |
| 58 | Text | N | |
| 60 | TransactTime | Y | Time this order request was initiated/released by the trader or trading system. Time/date combination represented in UTC in either YYYYMMDD-HH:MM:SS (whole seconds) or YYYYMMDD-HH:MM:SS.sss (milliseconds) format, colons, dash, and period required. |
| 102 | CxlRejReason | N | Valid values: 0: Too late to cancel, 1: Unknown order, 2: Broker / Exchange Option, 3: Order already in Pending Cancel or Pending Replace status, 99: Other |
| 434 | CxlRejResponseTo | Y | Valid values: 1: Order Cancel Request, 2: Order Cancel/Replace Request |
| <Standard Trailer> | Y |
7. Appendix
7.1 Supported Order Types in Different Markets
US Market:
| OrderType / SecurityType | CommonStock | Option(SingleLeg) | Option(MultiLeg) |
|---|---|---|---|
| Market(1) | ✓ | ✓ | ✓ |
| Limit(2) | ✓ | ✓ | ✓ |
| Stop(3) | ✓ | ✓ | ✓ |
| StopLimit(4) | ✓ | ✓ | ✓ |
| MarketOnClose(5) | ✓ | ||
| MarketIfTouched(J) | ✓ | ✓ | |
| LimitIfTouched(LT) | ✓ | ✓ | |
| LimitOnClose(B) | ✓ | ||
| MarketOnOpen | ✓ | ||
| LimitOnOpen | ✓ | ||
| Algorithm |
HK Market:
| SecurityType | AUO | ALO | ELO | Odd Lot |
|---|---|---|---|---|
| CommonStock | ✓ | ✓ | ✓ | ✓ |
* See how these order types are mapped in the FIX protocol in Appendix 7.3.
CN Market:
| SecurityType | Limit |
|---|---|
| CommonStock | ✓ |
7.2 Supported TimeInForce in Different Markets
| Market | SecurityType | Day (0) | Good-Till-Cancel (1) | At-The-Opening (2) |
|---|---|---|---|---|
| US | Common Stock | ✓ | ✓ | ✓ |
| US | Option(SingleLeg) | ✓ | ✓ | |
| US | Option(MultiLeg) | ✓ | ✓ | |
| HK | Common Stock | ✓ | ✓ | |
| CN | Common Stock | ✓ |
7.3 HK OrderType Mapping
| Type | OrdType <40> | TimeInForce <59> |
|---|---|---|
| AUO | Market(1) | At-The-Opening(2) |
| ALO | Limit(2) | At-The-Opening(2) |
| ELO | LimitOrBetter(7) | Day(0) |
8. Revision History
| Revision No. | Date | Description of Changes |
|---|---|---|
| V1.1 | May, 2024 | Initial Document |
| v1.2 | July, 2024 | Add Tag115 |
| v1.3 | Sep, 2024 | Add new order types, such as MARKET_IF_TOUCHED(J), LIMIT_IF_TOUCHED(LT) |
| v1.4 | Feb, 2025 | Fix Tag167 description |
| v1.5 | Feb, 2025 | Add Tag50 |
| v1.6 | Mar, 2025 | Add Parties Group |
| v1.7 | Apr, 2025 | Add Tag100 |
| v1.8 | Apr, 2025 | Add Tag152. U.S. stock fractional order by amount. |
| v1.9 | Jun, 2025 | Add algorithmic orders with tags related to US stocks. Tag 9000, Tag 9023, Tag 9315, Tag 9003, Tag 9004 |
| v2.0 | Jul, 2025 | Support JP Stock. Add new order types: LOO, LOC. Remove Tag9315 for algorithmic orders. |
| v2.1 | Aug, 2025 | TradingSessionID support PRE_CORE |
| v2.2 | Dec, 2025 | Remove fix password salt |
| v2.3 | Jun, 2026 | Add Multileg order messages for US options strategy trading |
| v2.4 | Jul, 2026 | Add Tag15. Identifies currency used for price. Absence of this field is interpreted as the default for the security. Tag 207 (SecurityExchange): Removed enum value JP. |
| v2.5 | Sep, 2026 | TradingSessionID removes support for PRE_CORE |