Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=CSX&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=CSX&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=CSX&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "CSX",
"central_index_key": "0000277948",
"registrant_name": "CSX CORP",
"average_price_target": 52.65,
"highest_price_target": 60.0,
"lowest_price_target": 32.0,
"buy_recommendations": 11,
"sell_recommendations": 1,
"hold_recommendations": 6
},
...
]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
CSX CORP
NASDAQ: CSX- Market Cap:$61.00B
- ISIN:US1264081035
- Fiscal Year End:12/31
- CEO:Steve Angel
- Employees:23500
CSX Corporation is an American holding company focused on rail transportation and real estate in North America, among other industries. The company was established in 1980 as part of the Chessie System and Seaboard Coast Line Industries merger. The various railroads of the former Chessie System and Seaboard Coast Line Industries that are now owned by CSX Corporation were eventually merged into a single line in 1986 and it became known as CSX Transportation. CSX Corporation currently has a number of subsidiaries beyond CSX Transportation. Previously based in Richmond, Virginia after the merger, the corporation moved its headquarters to Jacksonville, Florida, in 2003. CSX is a Fortune 500 company.