{"_id":"56b39d9f9f97020d0012d90d","version":{"_id":"569407ad73f48f0d0075c9cc","project":"569407ac73f48f0d0075c9c9","__v":4,"createdAt":"2016-01-11T19:51:09.439Z","releaseDate":"2016-01-11T19:51:09.439Z","categories":["569407ae73f48f0d0075c9cd","56b25e4794ab060d00067421","56b2615b147e900d00d64995","56b3788d78a1212100900709"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"category":{"_id":"56b3788d78a1212100900709","version":"569407ad73f48f0d0075c9cc","__v":4,"pages":["56b37efb17c0400d00ed479e","56b39d9f9f97020d0012d90d","56b39dae0709630d002a0157","56b51985eed075230097d73b"],"project":"569407ac73f48f0d0075c9c9","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-04T16:13:01.273Z","from_sync":false,"order":9999,"slug":"order-management","title":"Order Management"},"project":"569407ac73f48f0d0075c9c9","user":"563cc6fa8894d20d00014ea3","__v":6,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-04T18:51:11.054Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"A limit order is an order to buy or sell a stock at a specific price or better.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Request and Acknowledgement\",\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"8=FIX.4.2\\n9=152\\n35=D\\n34=7332\\n49=TEST1\\n52=20160208-14:41:33.643\\n56=DWFIX01\\n1=DPQP000013\\n11=982A298766020822123456797\\n21=1\\n38=170\\n40=1\\n44=0.01\\n54=1\\n55=AMZN\\n60=20160208-14:41:33.643\\n10=243\",\n      \"language\": \"text\",\n      \"name\": \"Request\"\n    },\n    {\n      \"code\": \"8=FIX.4.2\\n9=233\\n35=8\\n34=10738\\n49=DWFIX01\\n52=20160208-14:41:34.126\\n56=TEST1\\n1=DPQP000013\\n6=0\\n11=982A298766020822123456797\\n14=0\\n17=91454714030646\\n20=0\\n21=1\\n31=0\\n32=0\\n37=DBCY000007\\n38=170\\n39=0\\n40=2\\n44=0.01\\n54=1\\n55=AMZN\\n59=0\\n60=20160208-14:41:34.039\\n99=0.01\\n150=0\\n151=170\\n10=152\",\n      \"language\": \"text\",\n      \"name\": \"Acknowledgement\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Limit Order Notes\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"ClOrdID's requirement\",\n  \"body\": \"`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.**\"\n}\n[/block]\nLimit orders can be entered 23.75 hours a day (not accepted between 16:00-16:15pm EST), but the Time In Force is still \"Day\" (FIX tag `59=0`). A limit order entered after 16:15pm EST will be executed the next trading day as a day limit. All unfilled limit orders in existence at 4PM will be cleared (FIX tag `150=4`).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Limit Order FIX Message\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Tag\",\n    \"h-1\": \"Tag Description\",\n    \"h-2\": \"Value\",\n    \"h-3\": \"Value Description\",\n    \"h-4\": \"Required\",\n    \"0-0\": \"`8`\",\n    \"0-1\": \"`BeginString`\",\n    \"0-2\": \"`FIX.4.1`\",\n    \"0-3\": \"FIX Version\",\n    \"0-4\": \"**Yes**\",\n    \"1-0\": \"`9`\",\n    \"1-1\": \"`BodyLength`\",\n    \"1-2\": \"`145`\",\n    \"1-3\": \"Length of message\",\n    \"1-4\": \"**Yes**\",\n    \"2-0\": \"`35`\",\n    \"2-1\": \"`MsgType`\",\n    \"2-2\": \"`D`\",\n    \"2-3\": \"Message type\",\n    \"2-4\": \"**Yes**\",\n    \"3-0\": \"`11`\",\n    \"3-3\": \"Unique identifier for the order allocated by the client.\",\n    \"3-4\": \"**Yes**\",\n    \"3-1\": \"`ClOrdID`\",\n    \"4-0\": \"`1`\",\n    \"4-1\": \"`Account`\",\n    \"4-3\": \"The identity of settlement account. Used to identify DriveWealth client account.\",\n    \"4-4\": \"**Yes**\",\n    \"4-2\": \"`02e57c7d-d071-4c63-b491-1194a9939ea5.1452548617456`\",\n    \"5-0\": \"`21`\",\n    \"5-1\": \"`HandlInst`\",\n    \"5-2\": \"`1`\",\n    \"5-3\": \"`1` = Automated execution order, private, no broker intervention\",\n    \"5-4\": \"**Yes**\",\n    \"6-0\": \"`38`\",\n    \"6-1\": \"`OrderQty`\",\n    \"6-2\": \"`0.1234`\",\n    \"6-3\": \"Order quantity. Must be greater than `0.0000`\",\n    \"6-4\": \"**Yes**\",\n    \"7-0\": \"`55`\",\n    \"7-1\": \"`Symbol`\",\n    \"7-2\": \"`AAPL`\",\n    \"7-3\": \"Ticker symbol\",\n    \"7-4\": \"**Yes**\",\n    \"8-0\": \"`54`\",\n    \"8-1\": \"`Side`\",\n    \"8-2\": \"`1`\",\n    \"8-3\": \"`1` - Buy\\n`2` - Sell\",\n    \"9-0\": \"`60`\",\n    \"9-1\": \"`TransactTime`\",\n    \"9-3\": \"Time this order request was initiated/released by the trader or trading system.\",\n    \"8-4\": \"**Yes**\",\n    \"9-4\": \"**Yes**\",\n    \"10-0\": \"`40`\",\n    \"10-1\": \"`OrdType`\",\n    \"10-2\": \"`2`\",\n    \"10-3\": \"`2` - Limit order\",\n    \"11-0\": \"`44`\",\n    \"11-1\": \"`Price`\",\n    \"11-3\": \"Price in which to be executed at for limit orders only.\",\n    \"11-4\": \"**No**\",\n    \"11-2\": \"`100.25`\",\n    \"12-0\": \"`59`\",\n    \"12-1\": \"`TimeInForce`\",\n    \"12-2\": \"`0`\",\n    \"12-4\": \"**No**\",\n    \"12-3\": \"Should be set to `0` for limit orders.\",\n    \"13-0\": \"`9008`\",\n    \"13-1\": \"`TraderIdentifier`\",\n    \"13-2\": \"`02e57c7d-d071-4c63-b491-1194a9939ea5`\",\n    \"13-3\": \"DriveWealth `userID`\",\n    \"13-4\": \"**No**\",\n    \"14-0\": \"`9203`\",\n    \"14-1\": \"`ClRefRequestId`\",\n    \"14-3\": \"String field for client reference request id. This is sending system specific.\",\n    \"14-4\": \"**No**\",\n    \"15-0\": \"`10`\",\n    \"15-1\": \"`Checksum`\",\n    \"15-3\": \"Checksum of message\",\n    \"15-4\": \"**Yes**\",\n    \"10-4\": \"**Yes**\"\n  },\n  \"cols\": 5,\n  \"rows\": 16\n}\n[/block]","excerpt":"","slug":"limit-orders","type":"basic","title":"Limit Orders"}
A limit order is an order to buy or sell a stock at a specific price or better. [block:api-header] { "type": "basic", "title": "Request and Acknowledgement", "sidebar": true } [/block] [block:code] { "codes": [ { "code": "8=FIX.4.2\n9=152\n35=D\n34=7332\n49=TEST1\n52=20160208-14:41:33.643\n56=DWFIX01\n1=DPQP000013\n11=982A298766020822123456797\n21=1\n38=170\n40=1\n44=0.01\n54=1\n55=AMZN\n60=20160208-14:41:33.643\n10=243", "language": "text", "name": "Request" }, { "code": "8=FIX.4.2\n9=233\n35=8\n34=10738\n49=DWFIX01\n52=20160208-14:41:34.126\n56=TEST1\n1=DPQP000013\n6=0\n11=982A298766020822123456797\n14=0\n17=91454714030646\n20=0\n21=1\n31=0\n32=0\n37=DBCY000007\n38=170\n39=0\n40=2\n44=0.01\n54=1\n55=AMZN\n59=0\n60=20160208-14:41:34.039\n99=0.01\n150=0\n151=170\n10=152", "language": "text", "name": "Acknowledgement" } ], "sidebar": true } [/block] [block:api-header] { "type": "basic", "title": "Limit Order Notes" } [/block] [block:callout] { "type": "warning", "title": "ClOrdID's requirement", "body": "`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.**" } [/block] Limit orders can be entered 23.75 hours a day (not accepted between 16:00-16:15pm EST), but the Time In Force is still "Day" (FIX tag `59=0`). A limit order entered after 16:15pm EST will be executed the next trading day as a day limit. All unfilled limit orders in existence at 4PM will be cleared (FIX tag `150=4`). [block:api-header] { "type": "basic", "title": "Limit Order FIX Message" } [/block] [block:parameters] { "data": { "h-0": "Tag", "h-1": "Tag Description", "h-2": "Value", "h-3": "Value Description", "h-4": "Required", "0-0": "`8`", "0-1": "`BeginString`", "0-2": "`FIX.4.1`", "0-3": "FIX Version", "0-4": "**Yes**", "1-0": "`9`", "1-1": "`BodyLength`", "1-2": "`145`", "1-3": "Length of message", "1-4": "**Yes**", "2-0": "`35`", "2-1": "`MsgType`", "2-2": "`D`", "2-3": "Message type", "2-4": "**Yes**", "3-0": "`11`", "3-3": "Unique identifier for the order allocated by the client.", "3-4": "**Yes**", "3-1": "`ClOrdID`", "4-0": "`1`", "4-1": "`Account`", "4-3": "The identity of settlement account. Used to identify DriveWealth client account.", "4-4": "**Yes**", "4-2": "`02e57c7d-d071-4c63-b491-1194a9939ea5.1452548617456`", "5-0": "`21`", "5-1": "`HandlInst`", "5-2": "`1`", "5-3": "`1` = Automated execution order, private, no broker intervention", "5-4": "**Yes**", "6-0": "`38`", "6-1": "`OrderQty`", "6-2": "`0.1234`", "6-3": "Order quantity. Must be greater than `0.0000`", "6-4": "**Yes**", "7-0": "`55`", "7-1": "`Symbol`", "7-2": "`AAPL`", "7-3": "Ticker symbol", "7-4": "**Yes**", "8-0": "`54`", "8-1": "`Side`", "8-2": "`1`", "8-3": "`1` - Buy\n`2` - Sell", "9-0": "`60`", "9-1": "`TransactTime`", "9-3": "Time this order request was initiated/released by the trader or trading system.", "8-4": "**Yes**", "9-4": "**Yes**", "10-0": "`40`", "10-1": "`OrdType`", "10-2": "`2`", "10-3": "`2` - Limit order", "11-0": "`44`", "11-1": "`Price`", "11-3": "Price in which to be executed at for limit orders only.", "11-4": "**No**", "11-2": "`100.25`", "12-0": "`59`", "12-1": "`TimeInForce`", "12-2": "`0`", "12-4": "**No**", "12-3": "Should be set to `0` for limit orders.", "13-0": "`9008`", "13-1": "`TraderIdentifier`", "13-2": "`02e57c7d-d071-4c63-b491-1194a9939ea5`", "13-3": "DriveWealth `userID`", "13-4": "**No**", "14-0": "`9203`", "14-1": "`ClRefRequestId`", "14-3": "String field for client reference request id. This is sending system specific.", "14-4": "**No**", "15-0": "`10`", "15-1": "`Checksum`", "15-3": "Checksum of message", "15-4": "**Yes**", "10-4": "**Yes**" }, "cols": 5, "rows": 16 } [/block]