Limit Orders

A limit order is an order to buy or sell a stock at a specific price or better.

Request and Acknowledgement

8=FIX.4.2
9=152
35=D
34=7332
49=TEST1
52=20160208-14:41:33.643
56=DWFIX01
1=DPQP000013
11=982A298766020822123456797
21=1
38=170
40=1
44=0.01
54=1
55=AMZN
60=20160208-14:41:33.643
10=243
8=FIX.4.2
9=233
35=8
34=10738
49=DWFIX01
52=20160208-14:41:34.126
56=TEST1
1=DPQP000013
6=0
11=982A298766020822123456797
14=0
17=91454714030646
20=0
21=1
31=0
32=0
37=DBCY000007
38=170
39=0
40=2
44=0.01
54=1
55=AMZN
59=0
60=20160208-14:41:34.039
99=0.01
150=0
151=170
10=152

πŸ“˜

What is a Limit Order?

A limit order is an order to buy or sell a stock at specific price or better.

Limit Order Notes

🚧

ClOrdID's requirement

ClOrdID's (FIX tag 11) are persisted until Friday system reset 5-6pm ET. The sending system cannot send the same ClOrdID during this week period. DriveWealth recommends the ClOrdID have a concept of uniqueness encompasing date or other non-repeating pattern.

When can a Limit Order be placed?
Limit orders can be entered 23.75 hours a day (not accepted between 16:00-16:15 PM EST). Time In Force (tag 59) is defaulted to '0', which is a Day order, and is activated for trading in core trading hours (9:30-4pm).

A limit Day order entered after 16:15 PM EST will be executed the next trading day. All unfilled limit orders in existence at 4PM will be cleared (FIX tag 150).

Extended Hours Orders

Specifying a Time in Force of '5', Good till Extended (GTX) Hours, will enable your order for execution between 4am-8pm on regular trading hours days. GTX orders will be queued by DriveWealth between 8pm-4am.

Limit Order FIX Message

TagTag DescriptionExample ValueValue DescriptionRequired
8BeginStringFIX.4.1FIX VersionYes
9BodyLength145Length of messageYes
35MsgTypeDMessage typeYes
11ClOrdIDUnique identifier for the order allocated by the client.Yes
12Commission10Commission override
1Account02e57c7d-d071-4c63-b491-1194a9939ea5.1452548617456The identity of settlement account. Used to identify DriveWealth client account.Yes
21HandlInst11 = Automated execution order, private, no broker interventionYes
38OrderQty0.1234Order quantity. Must be greater than 0.0000Yes
55SymbolAAPLTicker symbolYes
54Side11 - Buy
2 - Sell
Yes
60TransactTimeTime this order request was initiated/released by the trader or trading system.Yes
40OrdType22 - Limit orderYes
44Price100.25Price in which to be executed at for limit orders only.No
59TimeInForce00 For Day Orders (Default)
5Extended Hours
No
432ExpiryDate"2022-05-01"The date the order expires"
7000-7003meta tagsSet any data in these tags you want returned on executionsNo
All fields < 18000All fields <18000 would be echoed back, but fields 7000 - 7003 will be persisted in the database for lookup