{"_id":"569523e70c650a2300250562","__v":1,"parentDoc":null,"category":{"_id":"569523ce562335190016da97","pages":["569523e70c650a2300250562"],"project":"563cc7119799fb0d00047685","version":"563cc7119799fb0d00047688","__v":1,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-12T16:03:26.037Z","from_sync":false,"order":7,"slug":"market-data","title":"Market Data"},"editedParams2":true,"project":"563cc7119799fb0d00047685","editedParams":true,"user":"563cc6fa8894d20d00014ea3","version":{"_id":"563cc7119799fb0d00047688","__v":17,"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","592835c7bc8bca0f000cc9ff"],"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-12T16:03:51.845Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"GET /v1/quotes?symbols=AAPL,GOOG,MSFT,TSLA HTTP/1.1\nHost: api.drivewealth.io\nAccept: text/plain\nContent-Type: text/plain\nx-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z","language":"http"},{"language":"curl","code":"curl -X GET -H \"Accept: text/plain\" -H \"Content-Type: text/plain\" -H \"x-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\" 'https://api.drivewealth.io/v1/quotes?symbols=AAPL,GOOG,MSFT,TSLA'"}]},"method":"get","results":{"codes":[{"name":"Plain Text","code":"2016-01-20T20:37:05.698Z|1|||||||||AAPL,97.37,97.39|GOOG,701.68,703.21|MSFT,50.99,51.01|TSLA,198.37,199.12","language":"json","status":200},{"code":"[\n    {\n        \"symbol\": \"AAPL\",\n        \"bid\": 99.5,\n        \"ask\": 99.5,\n        \"open\": 0,\n        \"high\": 0,\n        \"low\": 0,\n        \"timeOffset\": 1452805204816,\n        \"volume\": 0\n    },\n    {\n        \"symbol\": \"GOOG\",\n        \"bid\": 714.29,\n        \"ask\": 714.29,\n        \"open\": 0,\n        \"high\": 0,\n        \"low\": 0,\n        \"timeOffset\": 1452805301215,\n        \"volume\": 0\n    },\n    {\n        \"symbol\": \"MSFT\",\n        \"bid\": 53.05,\n        \"ask\": 53.05,\n        \"open\": 0,\n        \"high\": 0,\n        \"low\": 0,\n        \"timeOffset\": 1452805202284,\n        \"volume\": 0\n    },\n    {\n        \"symbol\": \"TSLA\",\n        \"bid\": 206.15,\n        \"ask\": 206.15,\n        \"open\": 0,\n        \"high\": 0,\n        \"low\": 0,\n        \"timeOffset\": 1452805203230,\n        \"volume\": 0\n    }\n]","language":"json","status":200,"name":"JSON"}]},"settings":"","auth":"required","params":[{"_id":"56980d8269393517000c847f","ref":"","in":"path","required":false,"desc":"Comma separated ticker symbols.","default":"AAPL,GOOG,MSFT,TSLA","type":"string","name":"symbols"}],"url":"/quotes?symbols=:symbols"},"isReference":true,"order":0,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Quotes String Matrix\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Position\",\n    \"h-1\": \"Example\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"1\",\n    \"1-0\": \"2\",\n    \"2-0\": \"3\",\n    \"3-0\": \"4\",\n    \"4-0\": \"5\",\n    \"5-0\": \"6\",\n    \"6-0\": \"7\",\n    \"7-0\": \"8\",\n    \"8-0\": \"9\",\n    \"9-0\": \"10\",\n    \"10-0\": \"11\",\n    \"11-0\": \"[...]\",\n    \"0-1\": \"`2015-12-01T15:20:18.614Z`\",\n    \"1-1\": \"`1`\",\n    \"2-1\": \"-\",\n    \"3-1\": \"-\",\n    \"4-1\": \"-\",\n    \"5-1\": \"-\",\n    \"6-1\": \"-\",\n    \"7-1\": \"-\",\n    \"8-1\": \"-\",\n    \"9-1\": \"-\",\n    \"10-1\": \"`AAPL,118.13,118.15`\",\n    \"11-1\": \"`MSFT,54.39,54.4`\",\n    \"0-2\": \"Platform date/time in UTC format.\",\n    \"1-2\": \"Market state: `1` - Open or `2` - Closed.\",\n    \"2-2\": \"Reserved.\",\n    \"3-2\": \"Reserved.\",\n    \"4-2\": \"Reserved.\",\n    \"5-2\": \"Reserved.\",\n    \"6-2\": \"Reserved.\",\n    \"7-2\": \"Reserved.\",\n    \"8-2\": \"Reserved.\",\n    \"9-2\": \"Reserved.\",\n    \"10-2\": \"Ticker Symbol, Bid, Ask.\",\n    \"11-2\": \"Ticker Symbol, Bid, Ask.\"\n  },\n  \"cols\": 3,\n  \"rows\": 12\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Response\"\n}\n[/block]\nThe `text/plain` response (using `Accept: text/plain` and `Content-Type: text/plain` in the header) returns a variable length pipe (\"|\") delimited string. This is the default response.\n\nThe `JSON` response (using `Accept: application/json` and `Content-Type: application/json` in the header) returns an array of instrument objects.\n\nFor production use, `text/plain` should be used rather than `JSON` (which is approximately 5x larger.)","excerpt":"Get market data (bid and ask) for all active instruments.","slug":"get-market-data","type":"endpoint","title":"Get Market Data"}

getGet Market Data

Get market data (bid and ask) for all active instruments.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

symbols:
stringAAPL,GOOG,MSFT,TSLA
Comma separated ticker symbols.

Examples


Result Format


Documentation

[block:api-header] { "type": "basic", "title": "Quotes String Matrix" } [/block] [block:parameters] { "data": { "h-0": "Position", "h-1": "Example", "h-2": "Description", "0-0": "1", "1-0": "2", "2-0": "3", "3-0": "4", "4-0": "5", "5-0": "6", "6-0": "7", "7-0": "8", "8-0": "9", "9-0": "10", "10-0": "11", "11-0": "[...]", "0-1": "`2015-12-01T15:20:18.614Z`", "1-1": "`1`", "2-1": "-", "3-1": "-", "4-1": "-", "5-1": "-", "6-1": "-", "7-1": "-", "8-1": "-", "9-1": "-", "10-1": "`AAPL,118.13,118.15`", "11-1": "`MSFT,54.39,54.4`", "0-2": "Platform date/time in UTC format.", "1-2": "Market state: `1` - Open or `2` - Closed.", "2-2": "Reserved.", "3-2": "Reserved.", "4-2": "Reserved.", "5-2": "Reserved.", "6-2": "Reserved.", "7-2": "Reserved.", "8-2": "Reserved.", "9-2": "Reserved.", "10-2": "Ticker Symbol, Bid, Ask.", "11-2": "Ticker Symbol, Bid, Ask." }, "cols": 3, "rows": 12 } [/block] [block:api-header] { "type": "basic", "title": "Response" } [/block] The `text/plain` response (using `Accept: text/plain` and `Content-Type: text/plain` in the header) returns a variable length pipe ("|") delimited string. This is the default response. The `JSON` response (using `Accept: application/json` and `Content-Type: application/json` in the header) returns an array of instrument objects. For production use, `text/plain` should be used rather than `JSON` (which is approximately 5x larger.)

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 }}