Code Snippets
curl "https://financialdata.net/api/v1/minute-prices?identifier=NRG&date=2020-01-15&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/minute-prices?identifier=NRG&date=2020-01-15&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/minute-prices?identifier=NRG&date=2020-01-15&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "NRG",
"time": "2020-01-15 20:59:00",
"open": 38.165,
"high": 38.165,
"low": 38.13,
"close": 38.13,
"volume": 1600.0
},
...
]Query Parameters
| Name | Type | Description |
|---|---|---|
| identifier | string | The trading symbol for a security. (e.g., MSFT) |
| date | string | The date in YYYY-MM-DD format. (e.g., 2020-01-15) |
| offset | integer | (Optional) The initial position of the record subset, which indicates how many records to skip. Defaults to 0. (e.g., 300) |
| format | string | (Optional) The format of the returned data, either JSON or CSV. Defaults to JSON. (e.g., json, csv) |
Endpoint Overview
The API endpoint provides more than 7 years of one-minute historical prices and volumes. The data is available for over 10,000 securities, including US stocks, international stocks, and exchange-traded funds. The timezone used for time values is UTC (Coordinated Universal Time). There is a limit of 300 records per API call.
Company Profile
NRG ENERGY, INC.
NYSE: NRG- Market Cap:$26.64B
- ISIN:US6293775085
- Fiscal Year End:12/31
- CEO:Robert Gaudette
- Employees:15673
NRG Energy, Inc. is an American energy company, headquartered in Houston, Texas. It was formerly the wholesale arm of Northern States Power Company (NSP), which became Xcel Energy, but became independent in 2000. NRG Energy is involved in energy generation and retail electricity. Their portfolio includes natural gas generation, coal generation, oil generation, nuclear generation, wind generation, utility-scale generation, and distributed solar generation. NRG serves over 7 million retail customers in 24 US states including Texas, Connecticut, Delaware, Illinois, Maryland, Massachusetts, New Jersey, New York, Pennsylvania, Ohio; the District of Columbia, and eight provinces in Canada.