{"__v":2,"_id":"569932cb3da4370d009d20e4","category":{"project":"563cc7119799fb0d00047685","version":"563cc7119799fb0d00047688","_id":"5699323b7465970d00650b82","pages":[],"__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-15T17:54:03.806Z","from_sync":false,"order":2,"slug":"charts","title":"Charts"},"editedParams":true,"editedParams2":true,"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-15T17:56:27.531Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"http","code":"GET /v1/bars?instrumentID=675cc7c2-e24b-42fa-9d1f-4b3a97ae8d2f&compression=1&dateStart=2013-05-01T09:57:00Z&dateEnd=2013-05-01T10:00:00Z&tradingDays=5 HTTP/1.1\nHost: api.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":"curl","code":"curl -X GET -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\" 'https://api.drivewealth.io/v1//bars?instrumentID=675cc7c2-e24b-42fa-9d1f-4b3a97ae8d2f&compression=1&dateStart=2013-05-01T09:57:00Z&dateEnd=2013-05-01T10:00:00Z&tradingDays=5'"}]},"method":"get","results":{"codes":[{"name":"","code":"{\n    \"instrumentID\": \"675cc7c2-e24b-42fa-9d1f-4b3a97ae8d2f\",\n    \"compression\": 1,\n    \"data\": \"2016-01-11T14:49:00Z,7.34,7.34,7.34,7.34,100|2016-01-11T15:05:00Z,7.33,7.33,7.33,7.33,100|2016-01-11T15:18:00Z,7.31,7.31,7.31,7.31,100|2016-01-11T15:20:00Z,7.31,7.31,7.31,7.31,200|2016-01-11T15:21:00Z,7.31,7.31,7.31,7.31,100|2016-01-11T15:27:00Z,7.32,7.32,7.32,7.32,100|2016-01-11T15:39:00Z,7.33,7.33,7.33,7.33,200|2016-01-11T15:40:00Z,7.33,7.33,7.33,7.33,100|2016-01-11T16:28:00Z,7.3,7.3,7.3,7.3,100|2016-01-11T17:02:00Z,7.32,7.32,7.32,7.32,200|2016-01-11T17:19:00Z,7.3,7.3,7.3,7.3,100|2016-01-11T17:31:00Z,7.3,7.3,7.3,7.3,100|2016-01-11T18:18:00Z,7.27,7.27,7.27,7.27,200|2016-01-11T18:19:00Z,7.27,7.27,7.27,7.27,200|2016-01-11T18:23:00Z,7.27,7.27,7.27,7.27,100|2016-01-11T18:25:00Z,7.27,7.27,7.27,7.27,200|2016-01-11T18:34:00Z,7.25,7.25,7.25,7.25,300|2016-01-11T18:48:00Z,7.25,7.25,7.25,7.25,100|2016-01-11T19:41:00Z,7.28,7.28,7.28,7.28,100|2016-01-11T19:46:00Z,7.29,7.29,7.29,7.29,100|2016-01-11T20:24:00Z,7.25,7.25,7.25,7.25,200|2016-01-11T20:35:00Z,7.28,7.28,7.28,7.28,200|2016-01-11T20:36:00Z,7.28,7.28,7.28,7.28,200|2016-01-11T20:38:00Z,7.29,7.29,7.29,7.29,200|2016-01-11T20:45:00Z,7.31,7.31,7.31,7.31,100|2016-01-11T20:46:00Z,7.31,7.31,7.31,7.31,100|2016-01-11T20:50:00Z,7.32,7.32,7.32,7.32,100|2016-01-12T14:31:00Z,7.41,7.41,7.41,7.41,100|2016-01-12T14:36:00Z,7.43,7.43,7.43,7.43,100|2016-01-12T14:39:00Z,7.45,7.45,7.45,7.45,200|2016-01-12T15:17:00Z,7.4,7.4,7.4,7.4,100|2016-01-12T15:22:00Z,7.42,7.42,7.42,7.42,100|2016-01-12T15:24:00Z,7.4,7.4,7.4,7.4,100|2016-01-12T15:38:00Z,7.42,7.43,7.42,7.43,502|2016-01-12T15:54:00Z,7.39,7.4,7.39,7.39,300|2016-01-12T15:55:00Z,7.41,7.41,7.41,7.41,100|2016-01-12T16:37:00Z,7.37,7.37,7.37,7.37,200|2016-01-12T18:06:00Z,7.35,7.35,7.35,7.35,100|2016-01-12T18:07:00Z,7.35,7.35,7.35,7.35,100|2016-01-12T18:47:00Z,7.34,7.34,7.34,7.34,100|2016-01-12T18:48:00Z,7.34,7.34,7.34,7.34,100|2016-01-12T18:51:00Z,7.35,7.35,7.35,7.35,100|2016-01-12T19:08:00Z,7.31,7.31,7.31,7.31,100|2016-01-12T19:11:00Z,7.31,7.31,7.31,7.31,100|2016-01-12T19:13:00Z,7.31,7.31,7.31,7.31,200|2016-01-12T19:32:00Z,7.32,7.32,7.32,7.32,100|2016-01-12T19:53:00Z,7.33,7.33,7.33,7.33,100|2016-01-12T20:05:00Z,7.32,7.32,7.32,7.32,100|2016-01-12T20:21:00Z,7.34,7.34,7.34,7.34,200|2016-01-12T20:24:00Z,7.35,7.35,7.35,7.35,100|2016-01-12T20:36:00Z,7.34,7.34,7.34,7.34,200|2016-01-12T20:39:00Z,7.34,7.34,7.34,7.34,100|2016-01-12T20:44:00Z,7.36,7.36,7.36,7.36,100|2016-01-12T20:52:00Z,7.38,7.38,7.38,7.38,400|2016-01-12T20:53:00Z,7.375,7.375,7.375,7.375,100|2016-01-12T20:54:00Z,7.38,7.38,7.38,7.38,421|2016-01-13T14:37:00Z,7.45,7.45,7.45,7.45,100|2016-01-13T14:40:00Z,7.45,7.45,7.45,7.45,100|2016-01-13T14:42:00Z,7.45,7.45,7.45,7.45,100|2016-01-13T15:59:00Z,7.37,7.37,7.37,7.37,100|2016-01-13T17:13:00Z,7.35,7.35,7.35,7.35,800|2016-01-13T17:25:00Z,7.35,7.35,7.35,7.35,100|2016-01-13T17:27:00Z,7.35,7.35,7.35,7.35,200|2016-01-13T18:08:00Z,7.32,7.32,7.32,7.32,100|2016-01-13T18:11:00Z,7.32,7.32,7.32,7.32,800|2016-01-13T18:30:00Z,7.31,7.31,7.31,7.31,900|2016-01-13T18:39:00Z,7.3,7.3,7.3,7.3,200|2016-01-13T18:48:00Z,7.29,7.29,7.29,7.29,300|2016-01-13T19:28:00Z,7.27,7.27,7.27,7.27,100|2016-01-13T19:52:00Z,7.24,7.24,7.24,7.24,500|2016-01-13T20:01:00Z,7.24,7.24,7.24,7.24,100|2016-01-13T20:08:00Z,7.26,7.26,7.26,7.26,100|2016-01-13T20:10:00Z,7.26,7.26,7.26,7.26,300|2016-01-13T20:22:00Z,7.25,7.25,7.25,7.25,100|2016-01-13T20:41:00Z,7.27,7.27,7.27,7.27,200|2016-01-13T20:57:00Z,7.24,7.24,7.24,7.24,100|2016-01-13T20:59:00Z,7.25,7.25,7.25,7.25,100|2016-01-14T14:39:00Z,7.14,7.14,7.14,7.14,100|2016-01-14T14:43:00Z,7.12,7.12,7.12,7.12,100|2016-01-14T15:51:00Z,7.21,7.21,7.21,7.21,200|2016-01-14T17:00:00Z,7.16,7.16,7.16,7.16,100|2016-01-14T18:28:00Z,7.23,7.23,7.23,7.23,100|2016-01-14T20:45:00Z,7.26,7.26,7.26,7.26,500|2016-01-15T14:37:00Z,7.01,7.01,7.01,7.01,100|2016-01-15T14:46:00Z,6.98,6.98,6.98,6.98,900|2016-01-15T14:51:00Z,7,7,7,7,200|2016-01-15T14:52:00Z,7,7,7,7,100|2016-01-15T15:01:00Z,6.99,6.99,6.98,6.98,500|2016-01-15T15:02:00Z,6.98,6.98,6.98,6.98,100|2016-01-15T15:03:00Z,6.98,6.98,6.97,6.97,300|2016-01-15T15:05:00Z,6.97,6.97,6.97,6.97,300|2016-01-15T15:08:00Z,6.97,6.97,6.97,6.97,100|2016-01-15T15:18:00Z,6.98,6.98,6.98,6.98,200|2016-01-15T15:41:00Z,7,7,7,7,100|2016-01-15T15:51:00Z,7,7,7,7,100|2016-01-15T17:23:00Z,6.9,6.9,6.9,6.9,100|2016-01-15T17:26:00Z,6.9,6.9,6.9,6.9,100|2016-01-15T17:53:00Z,6.9,6.9,6.9,6.9,200|2016-01-15T17:54:00Z,6.92,6.92,6.92,6.92,100\"\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"569932cb3da4370d009d20e5","ref":"","in":"path","required":true,"desc":"Instrument ID.<br />To get a list of instruments, see the [List All Instruments](doc:list-all-instruments).","default":"675cc7c2-e24b-42fa-9d1f-4b3a97ae8d2f","type":"string","name":"instrumentID"},{"_id":"5699337da3024c0d006db20c","ref":"","in":"path","required":true,"desc":"See [compression matrix](#compression-matrix) below.","default":"1","type":"string","name":"compression"},{"_id":"5699337da3024c0d006db20b","ref":"","in":"path","required":true,"desc":"Start date (ISO format).","default":"2013-05-01T09:57:00Z","type":"string","name":"dateStart"},{"_id":"5699337da3024c0d006db20a","ref":"","in":"path","required":true,"desc":"End date (ISO format).","default":"2013-05-01T10:00:00Z","type":"string","name":"dateEnd"},{"_id":"5699337da3024c0d006db209","ref":"","in":"path","required":false,"desc":"Trading Days.<br />**Note:** Only support values from 1-60, if set do not use `dateStart` and `dateEnd` values.","default":"5","type":"string","name":"tradingDays"}],"url":"/bars?instrumentID=:instrumentID&compression=:compression&dateStart=:dateStart&dateEnd=:dateEnd&tradingDays=:tradingDays"},"isReference":true,"order":0,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Compression Matrix\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`0`\",\n    \"1-0\": \"`1`\",\n    \"2-0\": \"`4`\",\n    \"3-0\": \"`8`\",\n    \"4-0\": \"`9`\",\n    \"5-0\": \"`10`\",\n    \"0-1\": \"Daily\",\n    \"1-1\": \"1 minute\",\n    \"2-1\": \"5 minutes\",\n    \"3-1\": \"30 minutes\",\n    \"4-1\": \"1 hour\",\n    \"5-1\": \"Weekly\",\n    \"h-0\": \"Compression\",\n    \"h-1\": \"Description\"\n  },\n  \"cols\": 2,\n  \"rows\": 6\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Response\"\n}\n[/block]\nReturns a single bar object. Every bar request has a default set of attributes.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Attribute\",\n    \"0-0\": \"`instrumentID`\",\n    \"h-1\": \"Description\",\n    \"1-0\": \"`compression`\",\n    \"2-0\": \"`data`\",\n    \"0-1\": \"instrument ID value passed in.\",\n    \"1-1\": \"Compression value passed in.\",\n    \"2-1\": \"Pipe (\\\"|\\\") delimited charting data:\",\n    \"3-0\": \"–[0]\",\n    \"4-0\": \"–[1]\",\n    \"5-0\": \"–[2]\",\n    \"6-0\": \"–[3]\",\n    \"7-0\": \"–[4]\",\n    \"8-0\": \"–[5]\",\n    \"3-1\": \"Date / time.\",\n    \"4-1\": \"Open.\",\n    \"5-1\": \"High.\",\n    \"6-1\": \"Low.\",\n    \"7-1\": \"Close.\",\n    \"8-1\": \"Volume.\"\n  },\n  \"cols\": 2,\n  \"rows\": 9\n}\n[/block]","excerpt":"Get historical bars (open, high, low, close) for a given instrument for a given time period.","slug":"get-charts","type":"endpoint","title":"Get Charts"}

getGet Charts

Get historical bars (open, high, low, close) for a given instrument for a given time period.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

instrumentID:
required
string675cc7c2-e24b-42fa-9d1f-4b3a97ae8d2f
Instrument ID.<br />To get a list of instruments, see the [List All Instruments](doc:list-all-instruments).
compression:
required
string1
See [compression matrix](#compression-matrix) below.
dateStart:
required
string2013-05-01T09:57:00Z
Start date (ISO format).
dateEnd:
required
string2013-05-01T10:00:00Z
End date (ISO format).
tradingDays:
string5
Trading Days.<br />**Note:** Only support values from 1-60, if set do not use `dateStart` and `dateEnd` values.

Examples


Result Format


Documentation

[block:api-header] { "type": "basic", "title": "Compression Matrix" } [/block] [block:parameters] { "data": { "0-0": "`0`", "1-0": "`1`", "2-0": "`4`", "3-0": "`8`", "4-0": "`9`", "5-0": "`10`", "0-1": "Daily", "1-1": "1 minute", "2-1": "5 minutes", "3-1": "30 minutes", "4-1": "1 hour", "5-1": "Weekly", "h-0": "Compression", "h-1": "Description" }, "cols": 2, "rows": 6 } [/block] [block:api-header] { "type": "basic", "title": "Response" } [/block] Returns a single bar object. Every bar request has a default set of attributes. [block:parameters] { "data": { "h-0": "Attribute", "0-0": "`instrumentID`", "h-1": "Description", "1-0": "`compression`", "2-0": "`data`", "0-1": "instrument ID value passed in.", "1-1": "Compression value passed in.", "2-1": "Pipe (\"|\") delimited charting data:", "3-0": "–[0]", "4-0": "–[1]", "5-0": "–[2]", "6-0": "–[3]", "7-0": "–[4]", "8-0": "–[5]", "3-1": "Date / time.", "4-1": "Open.", "5-1": "High.", "6-1": "Low.", "7-1": "Close.", "8-1": "Volume." }, "cols": 2, "rows": 9 } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}