{"__v":9,"_id":"5697fcd02cf4060d004eaaa0","category":{"__v":12,"_id":"569523fddcaf0d1700cb86bf","pages":["5697d359d231880d00676f1d","5697d37a8d2a770d00d2fcdf","5697d392d231880d00676f1f","5697d3ce69393517000c8402","5697d3e0d231880d00676f21","5697e1f53503e40d0061f4b0","5697e538d231880d00676f4a","5697f5b42cf4060d004eaa80","5697fcd02cf4060d004eaaa0","569801fc8d2a770d00d2fd34","5698058f69393517000c8467","5698085bd231880d00676f9d"],"project":"563cc7119799fb0d00047685","version":"563cc7119799fb0d00047688","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-12T16:04:13.558Z","from_sync":false,"order":7,"slug":"reports","title":"Reports"},"parentDoc":null,"project":"563cc7119799fb0d00047685","user":"56957802fe18811700c9c07e","version":{"__v":16,"_id":"563cc7119799fb0d00047688","project":"563cc7119799fb0d00047685","createdAt":"2015-11-06T15:28:17.683Z","releaseDate":"2015-11-06T15:28:17.683Z","categories":["563cc7129799fb0d00047689","566f37f37ffa002300c3cd5b","56914e9bd47b020d002225ac","5692b19ffe72e00d00e4f0a8","56940bc2d8c04d1700e5adb6","56940bc83e9d080d00f064f0","56951b2dfcb1032d0089df7a","569522aecaa32519009c410c","569523ce562335190016da97","569523fddcaf0d1700cb86bf","56980e4a8560a60d00e2c3c3","569921a41693520d002e1305","5699323b7465970d00650b82","569e6cc4fbee990d0072d927","56a2768a0aefae0d00b7fe66","5862e862b8b7fa23009665b7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Model T","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-14T19:53:52.526Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"","language":"text"}]},"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":1,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Definition\",\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"http://reports.drivewealth.io/DriveWealth\",\n      \"language\": \"http\",\n      \"name\": \" \"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Examples\",\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /DriveWealth?sessionKey=02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z&ReportName=OrderTrans&ReportFormat=JSON&Symbol=AAPL&AccountNumber=DWTE000005&DateStart=2015-12-01T00:00:00.000Z&DateEnd=2015-12-30T23:59:59.999Z&wlpID=DW&LanguageID=en_US HTTP/1.1\\nHost: reports.drivewealth.io\\nAccept: application/json\\nContent-Type: application/json\\nx-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\",\n      \"language\": \"http\"\n    },\n    {\n      \"code\": \"curl -X POST -H \\\"Accept: application/json\\\" -H \\\"Content-Type: application/json\\\" -H \\\"x-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\\\" -d '' 'http://reports.drivewealth.io/DriveWealth?sessionKey=02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z&ReportName=OrderTrans&ReportFormat=JSON&Symbol=AAPL&AccountNumber=DWTE000005&DateStart=2015-12-01T00:00:00.000Z&DateEnd=2015-12-30T23:59:59.999Z&wlpID=DW&LanguageID=en_US'\",\n      \"language\": \"curl\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Request Arguments\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Argument\",\n    \"h-1\": \"Example\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`ReportName`\",\n    \"0-1\": \"`\\\"OrderTrans\\\"`\",\n    \"0-2\": \"Internal report variable.\",\n    \"h-3\": \"Required\",\n    \"0-3\": \"**Yes**\",\n    \"1-0\": \"`ReportFormat`\",\n    \"1-1\": \"`\\\"JSON\\\"`\",\n    \"1-2\": \"Report formats.<br />**Options**: `\\\"PDF\\\"`, `\\\"HTML\\\"`, `\\\"XLS\\\"` or `\\\"JSON\\\"`.\",\n    \"1-3\": \"**Yes**\",\n    \"3-3\": \"**Yes**\",\n    \"4-3\": \"**Yes**\",\n    \"5-3\": \"**Yes**\",\n    \"6-3\": \"**Yes**\",\n    \"7-3\": \"**No**\",\n    \"8-3\": \"**No**\",\n    \"3-0\": \"`sessionKey`\",\n    \"4-0\": \"`AccountNumber`\",\n    \"5-0\": \"`DateStart`\",\n    \"6-0\": \"`DateEnd`\",\n    \"7-0\": \"`wlpID`\",\n    \"8-0\": \"`LanguageID`\",\n    \"3-1\": \"`\\\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.`<br />`YYYY-MM-DDTHH:MM:SS.SSSZ\\\"`\",\n    \"4-1\": \"`\\\"xxxxxxxxxx\\\"`\",\n    \"5-1\": \"`\\\"YYY-MM-DDTHH:MM:SS.SSSZ\\\"`\",\n    \"6-1\": \"`\\\"YYY-MM-DDTHH:MM:SS.SSSZ\\\"`\",\n    \"7-1\": \"`\\\"DW\\\"`\",\n    \"8-1\": \"`\\\"en_US\\\"`\",\n    \"3-2\": \"Session key.\",\n    \"4-2\": \"Account number.\",\n    \"5-2\": \"The beginning of the data range in UTC format.\",\n    \"6-2\": \"The end of the data range in UTC format.\",\n    \"7-2\": \"WLP ID.<br />**Note**: Default to `\\\"DW\\\"`.\",\n    \"8-2\": \"Language.<br />**Options**: `\\\"en_US\\\"` (Default), `\\\"zh_CN\\\"`, `\\\"es_ES\\\"`, `\\\"pt_BR\\\"` or `\\\"ja_JP\\\"`.\",\n    \"2-0\": \"`Symbol`\",\n    \"2-1\": \"`\\\"AAPL\\\"`\",\n    \"2-2\": \"The desired symbol, if not found will return all matching order transactions.\",\n    \"2-3\": \"**No**\"\n  },\n  \"cols\": 4,\n  \"rows\": 9\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Result Format\",\n  \"sidebar\": true\n}\n[/block]\n\n[block:textarea]\n{\n  \"text\": \"The response (using `ReportFormat` set to `JSON`) returns a single array.\",\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"accountNo\\\": \\\"DWTE000005\\\",\\n    \\\"accountID\\\": \\\"02e57c7d-d071-4c63-b491-1194a9939ea5.1452548617456\\\",\\n    \\\"dateRange\\\": \\\"2015-12-01T00:00:00.000Z,2015-12-30T23:59:59.999Z\\\",\\n    \\\"transaction\\\": [{\\n        \\\"orderNo\\\": \\\"CLUC000039\\\",\\n        \\\"transactTime\\\": \\\"2015-12-28T22:42:54.282Z\\\",\\n        \\\"execType\\\": \\\"8\\\",\\n        \\\"ordStatus\\\": \\\"8\\\",\\n        \\\"ordType\\\": \\\"1\\\",\\n        \\\"side\\\": \\\"S\\\",\\n        \\\"symbol\\\": \\\"ACH\\\",\\n        \\\"lastShares\\\": 0,\\n        \\\"lastPx\\\": 0,\\n        \\\"cumQty\\\": 0,\\n        \\\"leavesQty\\\": 0\\n    }, {\\n        \\\"orderNo\\\": \\\"CLWT000033\\\",\\n        \\\"transactTime\\\": \\\"2015-12-28T22:43:42.890Z\\\",\\n        \\\"execType\\\": \\\"2\\\",\\n        \\\"ordStatus\\\": \\\"2\\\",\\n        \\\"ordType\\\": \\\"1\\\",\\n        \\\"side\\\": \\\"B\\\",\\n        \\\"symbol\\\": \\\"ACH\\\",\\n        \\\"lastShares\\\": 3,\\n        \\\"lastPx\\\": 8.34,\\n        \\\"cumQty\\\": 3,\\n        \\\"leavesQty\\\": 0\\n    }]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 OK\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]","excerpt":"This report allows users to generate order related transactions for the specified account number over the specified date interval.  These transactions can be also filtered by symbol if desired.","slug":"order-transaction","type":"post","title":"Order Transaction"}

postOrder Transaction

This report allows users to generate order related transactions for the specified account number over the specified date interval. These transactions can be also filtered by symbol if desired.

[block:api-header] { "type": "basic", "title": "Definition", "sidebar": true } [/block] [block:code] { "codes": [ { "code": "http://reports.drivewealth.io/DriveWealth", "language": "http", "name": " " } ], "sidebar": true } [/block] [block:api-header] { "type": "basic", "title": "Examples", "sidebar": true } [/block] [block:code] { "codes": [ { "code": "POST /DriveWealth?sessionKey=02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z&ReportName=OrderTrans&ReportFormat=JSON&Symbol=AAPL&AccountNumber=DWTE000005&DateStart=2015-12-01T00:00:00.000Z&DateEnd=2015-12-30T23:59:59.999Z&wlpID=DW&LanguageID=en_US HTTP/1.1\nHost: reports.drivewealth.io\nAccept: application/json\nContent-Type: application/json\nx-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z", "language": "http" }, { "code": "curl -X POST -H \"Accept: application/json\" -H \"Content-Type: application/json\" -H \"x-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\" -d '' 'http://reports.drivewealth.io/DriveWealth?sessionKey=02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z&ReportName=OrderTrans&ReportFormat=JSON&Symbol=AAPL&AccountNumber=DWTE000005&DateStart=2015-12-01T00:00:00.000Z&DateEnd=2015-12-30T23:59:59.999Z&wlpID=DW&LanguageID=en_US'", "language": "curl" } ], "sidebar": true } [/block] [block:api-header] { "type": "basic", "title": "Request Arguments" } [/block] [block:parameters] { "data": { "h-0": "Argument", "h-1": "Example", "h-2": "Description", "0-0": "`ReportName`", "0-1": "`\"OrderTrans\"`", "0-2": "Internal report variable.", "h-3": "Required", "0-3": "**Yes**", "1-0": "`ReportFormat`", "1-1": "`\"JSON\"`", "1-2": "Report formats.<br />**Options**: `\"PDF\"`, `\"HTML\"`, `\"XLS\"` or `\"JSON\"`.", "1-3": "**Yes**", "3-3": "**Yes**", "4-3": "**Yes**", "5-3": "**Yes**", "6-3": "**Yes**", "7-3": "**No**", "8-3": "**No**", "3-0": "`sessionKey`", "4-0": "`AccountNumber`", "5-0": "`DateStart`", "6-0": "`DateEnd`", "7-0": "`wlpID`", "8-0": "`LanguageID`", "3-1": "`\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.`<br />`YYYY-MM-DDTHH:MM:SS.SSSZ\"`", "4-1": "`\"xxxxxxxxxx\"`", "5-1": "`\"YYY-MM-DDTHH:MM:SS.SSSZ\"`", "6-1": "`\"YYY-MM-DDTHH:MM:SS.SSSZ\"`", "7-1": "`\"DW\"`", "8-1": "`\"en_US\"`", "3-2": "Session key.", "4-2": "Account number.", "5-2": "The beginning of the data range in UTC format.", "6-2": "The end of the data range in UTC format.", "7-2": "WLP ID.<br />**Note**: Default to `\"DW\"`.", "8-2": "Language.<br />**Options**: `\"en_US\"` (Default), `\"zh_CN\"`, `\"es_ES\"`, `\"pt_BR\"` or `\"ja_JP\"`.", "2-0": "`Symbol`", "2-1": "`\"AAPL\"`", "2-2": "The desired symbol, if not found will return all matching order transactions.", "2-3": "**No**" }, "cols": 4, "rows": 9 } [/block] [block:api-header] { "type": "basic", "title": "Result Format", "sidebar": true } [/block] [block:textarea] { "text": "The response (using `ReportFormat` set to `JSON`) returns a single array.", "sidebar": true } [/block] [block:code] { "codes": [ { "code": "{\n \"accountNo\": \"DWTE000005\",\n \"accountID\": \"02e57c7d-d071-4c63-b491-1194a9939ea5.1452548617456\",\n \"dateRange\": \"2015-12-01T00:00:00.000Z,2015-12-30T23:59:59.999Z\",\n \"transaction\": [{\n \"orderNo\": \"CLUC000039\",\n \"transactTime\": \"2015-12-28T22:42:54.282Z\",\n \"execType\": \"8\",\n \"ordStatus\": \"8\",\n \"ordType\": \"1\",\n \"side\": \"S\",\n \"symbol\": \"ACH\",\n \"lastShares\": 0,\n \"lastPx\": 0,\n \"cumQty\": 0,\n \"leavesQty\": 0\n }, {\n \"orderNo\": \"CLWT000033\",\n \"transactTime\": \"2015-12-28T22:43:42.890Z\",\n \"execType\": \"2\",\n \"ordStatus\": \"2\",\n \"ordType\": \"1\",\n \"side\": \"B\",\n \"symbol\": \"ACH\",\n \"lastShares\": 3,\n \"lastPx\": 8.34,\n \"cumQty\": 3,\n \"leavesQty\": 0\n }]\n}", "language": "json", "name": "200 OK" } ], "sidebar": true } [/block]