GetStockQuoteList
Description
Returns an array of Stock Quotes filtered by input parameters. When any of the parameters is missed, then the default value is used.
Input Parameters
Parameter | Description |
---|---|
| To use the Q4 API, you need to have an application key. We use this to track API usage. Currently, the use of the API is allowed only with prior permission. Requests for API keys are reviewed by staff. Please get in touch with support to get the API Key. |
| When paging is used, specify the page number to return. It is 0-based. |
| When pageSize is greater the 0, the paging is enabled. The default is 0 (paging disabled). |
| Specifies exchange abbreviation to get quotes from like "NYSE". A list of company valid symbols and exchanges can be retrieved by using Lookup Feed by specifying the lookup key as "indices". |
| Specifies company symbol on a specific exchange like "ABX". A list of company valid symbols and exchanges can be retrieved by using Lookup Feed by specifying the lookup key as "indices". |
| Specifies the lower date bound. The default value is "0001/01/01 00:00:00". The server expects this date to be in EST. |
| Specifies the upper date bound. The default value is "0001/01/01 00:00:00". The server expects this date to be in EST. |
Sample URL
https://www.domain.com/feed/StockQuote.svc/GetStockQuoteList?apiKey=c34993dcba1942418d97656f3ed00979&exchange=NYSE&symbol=AEM&endDate=2011%2F06%2F10+15%3A30%3A00&startDate=2011%2F06%2F10+07%3A30%3A00
Sample Request
var data = {
apiKey: apiKey,
exchange: "NYSE",
symbol: "AEM",
endDate: "2011/06/10 15:30:00",
startDate: "2011/06/10 07:30:00"
}
$.ajax({
type: "GET",
url: "http://www.domain.com/feed/StockQuote.svc/GetStockQuoteList",
data: data,
dataType: "json",
error: OnLoadError,
success: OnQuoteLoadSuccess
});
Sample Response
{
"GetStockQuoteListResult": [{
"Change": -1.2400,
"High": 62.3900,
"High52": 88.2000,
"Low": 61.0900,
"Low52": 54.1200,
"Open": 62.0900,
"PercChange": -1.9800,
"PreviousClose": 62.7900,
"TradeDate": "/Date(1307736000000-0500)/",
"TradePrice": 61.5500,
"Volume": 1039435,
"Volume2": 1039435
},
{
"Change": -1.2000,
"High": 62.3900,
"High52": 88.2000,
"Low": 61.0900,
"Low52": 54.1200,
"Open": 62.0900,
"PercChange": -1.9100,
"PreviousClose": 62.7900,
"TradeDate": "/Date(1307735940000-0500)/",
"TradePrice": 61.5900,
"Volume": 1022052,
"Volume2": 1022052
}
]
}