Get Equity Info by Ticker
Fetch information about a particular equity by providing its ticker symbol
Overview
This GET endpoint enables you to retrieve information about a particular security by specifying its ticker symbol in the request's path. This information is not retrieved directly from the exchange; rather, it's the information about the security that is specific to AutoShares.
There are four required parameters that must be provided in the request:
Authorization (header). This is the authorization token from the very first token request. The value of this header must have the following format:
Bearer BQ898r9fefi
(Bearer
+ 1 space + the token).API version (path). Unless necessary, leave it at "1.0".
Ticker symbol (path). This is the ticker symbol of the security (as displayed on the exchange) whose information you'd like to retrieve.
Here's the final template for this API request:
Response
In response to this API request, you'll receive a JSON file with all the information about the enquired security:
where:
Common Mistakes
Here are some of the common mistakes that developers make when attempting to retrieve information about a particular security by its ticker.
Requesting as a Non-Administrator
One of the most common mistakes that developers make when making this API request is to use the authorization token of a non-administrator. It's critical to understand that in order to be eligible for retrieving information about a particular security, the requester must be an administrator. Otherwise you'll receive the 401 status code with the following message:
So be sure to use the authorization token generated with an administrator's credentials.
The following article covers the syntax for this API request in detail.
Last updated