Integrate MTL Historical Prices for Software Solutions using this API
Integrate MTL Historical Prices for Software Solutions using this API
In today's rapidly evolving digital landscape, the demand for real-time data integration has never been higher, especially in the metals market. One of the most significant players in this domain is the Metals-API, which provides developers with the tools necessary to access historical prices and real-time data for various metals, including Gold (XAU). This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Gold and explore the transformative potential of this API for software solutions.
About Tellurium (TE)
As we explore the world of metals, it's essential to consider the broader context of digital transformation in metal markets. The integration of technological innovation and advancement has paved the way for data analytics and insights that were previously unimaginable. With the rise of smart technology, the future of metal trading and investment is being reshaped, offering new possibilities for developers and businesses alike.
Tellurium (TE) is a lesser-known metal but serves as an excellent example of how digital transformation is impacting the metals market. As industries increasingly rely on data-driven decisions, the ability to access real-time and historical data for metals like Tellurium becomes crucial. This is where the Metals-API shines, providing developers with the necessary tools to build next-generation applications that can analyze trends, forecast prices, and make informed decisions.
API Description
The Metals-API is a powerful tool that allows developers to access real-time and historical data for various metals, including Gold (XAU). This API empowers developers to build applications that can leverage real-time metals data for various purposes, such as trading, investment analysis, and market research. With its innovative features and capabilities, the Metals-API is transforming how businesses interact with metal markets.
For more information, you can visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on 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 that developers can utilize:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Developers can access historical rates for most metals dating back to 2019. By appending a specific date in the format YYYY-MM-DD, users can retrieve past pricing data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, allowing for precise trading decisions based on current market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from USD. This is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, which is crucial for understanding market volatility and making informed trading decisions.
- Carat Endpoint: This feature provides information about Gold rates by Carat, allowing users to get precise pricing based on different carat weights.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specified date, which is essential for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve open, high, low, and close prices for a specific date, providing a snapshot of market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for in-depth analysis of market trends.
- API Key: Each user is assigned a unique API key that must be included in the API requests to authenticate and authorize access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, ensuring users have access to the latest data.
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.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers looking to integrate historical price data into their applications. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1781396263,
"base": "USD",
"date": "2026-06-14",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1781309863,
"base": "USD",
"date": "2026-06-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-07",
"end_date": "2026-06-14",
"base": "USD",
"rates": {
"2026-06-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1781396263,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-07",
"end_date": "2026-06-14",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1781396263,
"base": "USD",
"date": "2026-06-14",
"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
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1781396263,
"base": "USD",
"date": "2026-06-14",
"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"
}
Conclusion
In conclusion, the Metals-API is a powerful resource for developers looking to integrate historical prices and real-time data for metals like Gold (XAU) into their applications. By leveraging the various endpoints and features offered by the API, developers can create innovative solutions that provide valuable insights into market trends and pricing dynamics.
With the ability to access historical rates, real-time pricing, and detailed fluctuation data, the Metals-API empowers developers to build applications that can adapt to the ever-changing landscape of the metals market. Whether you are developing a trading platform, investment analysis tool, or market research application, the Metals-API provides the necessary data and functionality to succeed.
For further exploration, refer to the Metals-API Documentation for detailed implementation guidance, and check the Metals-API Supported Symbols page for a comprehensive list of available metals and currencies. Embrace the future of metal trading with the power of real-time data integration!