Discover How to Get Graphite Europe (EU-GR) Historical Prices using this API
Discover How to Get Graphite Europe (EU-GR) Historical Prices using this API
In the ever-evolving landscape of metal markets, the ability to access real-time and historical data is crucial for developers and businesses alike. One such powerful tool is the Metals-API, which provides comprehensive access to metal prices, including Gold (XAU) and Graphite Europe (EU-GR). This blog post will delve into how to retrieve historical prices using the Metals-API, focusing on its innovative capabilities, technical details, and practical applications.
Understanding Tellurium (TE) and Its Relevance
As we explore the capabilities of the Metals-API, it is essential to understand the broader context of metals like Tellurium (TE). The digital transformation in metal markets has led to significant technological innovations, enabling businesses to leverage data analytics and insights for smarter decision-making. The integration of smart technology in metal trading is paving the way for future trends, where real-time data access becomes a standard expectation.
API Description
The Metals-API is a robust JSON API that provides real-time and historical data on metal prices, including a wide range of metals such as Gold, Silver, and Graphite. This API empowers developers to build next-generation applications that can analyze market trends, perform currency conversions, and track price fluctuations. With its user-friendly interface and extensive documentation, the Metals-API is designed to facilitate seamless integration into various applications.
For detailed information on how to use the API, refer to the Metals-API Documentation. This resource provides comprehensive guidance on endpoint usage, response structures, and best practices for implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This feature is invaluable for analyzing trends over time.
- Bid and Ask Endpoint: Retrieve real-time Bid and Ask prices, which are essential for traders looking to make informed decisions based on current market conditions.
- Convert Endpoint: This endpoint allows you to convert any amount from one currency to another, facilitating seamless transactions across different metal types.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, enabling detailed analysis of price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about Gold rates by Carat, which is particularly useful for jewelers and traders in the luxury market.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, helping you identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed price data, including opening, high, low, and closing prices for a specific date.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for those involved in trading on the London Metal Exchange.
- API Key: Your unique API key is essential for accessing the API's features and must be included in your requests.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: With 14 API endpoints, the Metals-API provides diverse functionalities to meet various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring you have the latest information on supported symbols.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, which is vital for high-frequency trading strategies.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page. This resource is essential for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for effective integration. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1786147953,
"base": "USD",
"date": "2026-08-08",
"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"
}
This response indicates a successful query, providing the latest rates for various metals relative to USD. Each metal symbol corresponds to its current price per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1786061553,
"base": "USD",
"date": "2026-08-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date. The response includes the base currency, the date of the rates, and the corresponding prices for each metal.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-08-01",
"end_date": "2026-08-08",
"base": "USD",
"rates": {
"2026-08-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for a specified period, allowing developers to analyze trends and fluctuations over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1786147953,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert a specified amount from one currency to another. In this case, it shows the conversion of 1000 USD to its equivalent in troy ounces of Gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-01",
"end_date": "2026-08-08",
"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"
}
The fluctuation endpoint provides insights into how prices have changed over a specified period, highlighting both the absolute change and the percentage change for each metal.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1786147953,
"base": "USD",
"date": "2026-08-08",
"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"
}
This endpoint provides a comprehensive view of price movements within a specific time frame, detailing the opening, highest, lowest, and closing prices for each metal.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1786147953,
"base": "USD",
"date": "2026-08-08",
"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"
}
The bid/ask endpoint is crucial for traders, providing the current bid and ask prices along with the spread, which is essential for making informed trading decisions.
Conclusion
In conclusion, the Metals-API is a powerful tool for developers looking to access real-time and historical metal prices, including Gold (XAU) and Graphite Europe (EU-GR). By leveraging its various endpoints, developers can build applications that analyze market trends, perform currency conversions, and track price fluctuations with ease. The comprehensive documentation available at the Metals-API Documentation ensures that developers have the resources they need to implement these features effectively.
As the metal markets continue to evolve, the integration of smart technology and data analytics will play a pivotal role in shaping the future of trading. By utilizing the Metals-API, developers can stay ahead of the curve, harnessing the power of real-time data to drive innovation and success in their applications.