Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=GD&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=GD&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=GD&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "GD",
"central_index_key": "0000040533",
"registrant_name": "GENERAL DYNAMICS CORP",
"average_price_target": 407.21,
"highest_price_target": 465.0,
"lowest_price_target": 309.0,
"buy_recommendations": 8,
"sell_recommendations": 1,
"hold_recommendations": 8
},
...
]Query Parameters
| Name | Type | Description |
|---|---|---|
| identifier | string | The trading symbol for a security. (e.g., MSFT) |
| format | string | (Optional) The format of the returned data, either JSON or CSV. Defaults to JSON. (e.g., json, csv) |
Endpoint Overview
Analyst consensus represents the collective price targets and ratings from professional equity research analysts covering a publicly traded company. Aggregating the estimates gives a view of overall sentiment rather than relying on a single opinion. The API endpoint returns consensus metrics, including 12-month forward price targets as well as buy, hold, and sell recommendation counts.
Company Profile
GENERAL DYNAMICS CORP
NYSE: GD- Market Cap:$69.58B
- ISIN:US3695501086
- Fiscal Year End:12/31
- CEO:Phebe Novakovic
- Employees:117000
General Dynamics Corporation (GD) is an American industrial and technology company based in Reston, Virginia. It is primarily a developer and producer of advanced military equipment of a wide variety, such as nuclear submarines, main battle tanks, and armoured fighting vehicles. It is also the manufacturer of the civilian aviation Gulfstream business jets and a provider of information technology services. The company is the 3rd largest of the top 100 contractors of the U.S. federal government; it receives over 3% of total spending by the federal government of the United States on contractors.