Get HRC Steel Futures Continuous Contract (HRN00) Historical Prices with Metals-API

Get HRC Steel Futures Continuous Contract (HRN00) Historical Prices with Metals-API
HRC Steel Futures Continuous Contract (HRN00) is a significant player in this domain, and understanding how to retrieve its historical prices using the Metals-API can empower you to make informed decisions. This blog post delves into the capabilities of Metals-API, focusing on how to effectively access and utilize historical price data for HRC Steel and other metals.
Metals-API Information
About HRC Steel Futures Continuous Contract (HRN00)
Technological Innovation and Advancement
Data Analytics and Insights
Latest Rates Endpoint offers real-time exchange rate data, while the Historical Rates Endpoint allows users to query historical prices dating back to 2019. This combination of features enables comprehensive data analysis, empowering users to identify trends and make informed decisions.
API Description
- Latest Rates Endpoint: Returns real-time exchange rate data updated based on your subscription plan.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019.
- Bid and Ask Endpoint: Retrieve real-time Bid and Ask prices for metals.
- Convert Endpoint: Convert any amount from one metal to another or to/from USD.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis.
- Carat Endpoint: Retrieve information about Gold rates by Carat.
- Lowest/Highest Price Endpoint: Get the lowest and highest price for a specified date.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008.
- API Key: A unique key required for accessing the API.
- API Response: Exchange rates are delivered relative to USD by default.
- Available Endpoints: A constantly updated endpoint returning all available currencies.
- Gold Price India Endpoint: Retrieve the latest gold price in India.
- News Endpoint: Get the latest news articles related to various metals.
Key Features and Endpoints
Latest Rates Endpoint
Latest Rates Endpoint provides real-time exchange rates for all available metals. Depending on your subscription plan, this endpoint can return data updated every 60 minutes or every 10 minutes. For example, a typical response might look like this:
{
"success": true,
"timestamp": 1745550112,
"base": "USD",
"date": "2025-04-25",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744,
"XCU": 0.294118,
"XAL": 0.434783,
"XNI": 0.142857,
"XZN": 0.344828
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. By appending a specific date to the endpoint, developers can retrieve past pricing data. An example response might look like this:
{
"success": true,
"timestamp": 1745463712,
"base": "USD",
"date": "2025-04-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This is beneficial for developers looking to analyze trends over specific periods. A typical response might look like this:
{
"success": true,
"timeseries": true,
"start_date": "2025-04-18",
"end_date": "2025-04-25",
"base": "USD",
"rates": {
"2025-04-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require currency conversion. An example response might look like this:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1745550112,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This is crucial for developers looking to analyze market volatility. A typical response might look like this:
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-18",
"end_date": "2025-04-25",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"XAG": {
"start_rate": 0.03825,
"end_rate": 0.03815,
"change": -0.0001,
"change_pct": -0.26
},
"XPT": {
"start_rate": 0.000915,
"end_rate": 0.000912,
"change": -3.0e-6,
"change_pct": -0.33
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
Open/High/Low/Close (OHLC) Price Endpoint allows users to query the API for the open, high, low, and close prices for a specific time period. This data is essential for traders and analysts who need to understand market behavior. An example response might look like this:
{
"success": true,
"timestamp": 1745550112,
"base": "USD",
"date": "2025-04-25",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"XAG": {
"open": 0.03825,
"high": 0.0383,
"low": 0.0381,
"close": 0.03815
},
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.00091,
"close": 0.000912
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
Bid/Ask Endpoint allows users to get current bid and ask prices for metals. This feature is essential for applications that require real-time trading data. A typical response might look like this:
{
"success": true,
"timestamp": 1745550112,
"base": "USD",
"date": "2025-04-25",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
},
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
List of Symbols
Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate various metals into their applications.
Conclusion
Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.