GetStockQuoteListCount
Description
Returns the number 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. |
| 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/GetStockQuoteListCount?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/GetStockQuoteListCount",
data: data,
dataType: "json",
error: OnLoadError,
success: OnQuoteCountLoadSuccess
});
Sample Response
{
"GetStockQuoteListCountResult": 66
}