Retrieve MTL Historical Prices for Business Analytics with this API
Retrieve MTL Historical Prices for Business Analytics with this API
In today's fast-paced financial landscape, the ability to access and analyze historical prices of metals like Gold (XAU) is crucial for businesses and developers alike. The Metals-API offers a powerful solution for retrieving real-time and historical data, enabling businesses to make informed decisions based on accurate market insights. This blog post delves into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Gold and the transformative potential of this data in business analytics.
About Maltese Lira (MTL)
The Maltese Lira (MTL) has seen significant changes over the years, particularly with the advent of digital transformation in metal markets. As businesses increasingly rely on data analytics and smart technology integration, understanding the historical context of currencies like MTL becomes essential. The Metals-API provides developers with the tools to explore these trends, offering insights into technological advancements and future possibilities in the realm of metals trading.
API Description
The Metals-API is designed to empower developers by providing real-time and historical metals data through a robust API. With capabilities that include retrieving exchange rates, historical prices, and conversion functionalities, the API stands out as a transformative tool for building next-generation applications. By leveraging the Metals-API, developers can integrate real-time data into their applications, enhancing user experience and providing valuable insights into market trends.
For detailed information on how to use the API, refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that you have the most current data at your fingertips.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, you can retrieve historical data for Gold (XAU) and other metals, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time Bid and Ask prices for various metals. Understanding these prices is crucial for traders looking to make informed decisions based on market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing you to convert any amount from one currency to another. This is particularly useful for businesses operating in multiple currencies or for those looking to analyze the impact of currency fluctuations on metal prices.
- Time-Series Endpoint: This endpoint allows you to query daily historical rates between two dates of your choice. This feature is invaluable for conducting trend analyses and forecasting future price movements.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis with this endpoint. By analyzing fluctuations, businesses can better understand market volatility and make strategic decisions accordingly.
- Carat Endpoint: Retrieve information about Gold rates by Carat using this endpoint. This feature is essential for jewelers and businesses involved in the gold market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specific date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows you to retrieve the open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends over a significant period.
- API Key: Your unique API Key is essential for accessing the API. It must be included in the API base URL's access_key parameter to authenticate your requests.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: With 14 API endpoints, each providing distinct functionalities, the Metals-API is equipped to meet various analytical needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring that you 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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1781568877,
"base": "USD",
"date": "2026-06-16",
"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": 1781482477,
"base": "USD",
"date": "2026-06-15",
"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-09",
"end_date": "2026-06-16",
"base": "USD",
"rates": {
"2026-06-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-16": {
"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": 1781568877,
"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-09",
"end_date": "2026-06-16",
"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": 1781568877,
"base": "USD",
"date": "2026-06-16",
"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": 1781568877,
"base": "USD",
"date": "2026-06-16",
"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
The Metals-API provides a comprehensive and powerful solution for retrieving historical prices of Gold (XAU) and other metals, making it an invaluable tool for businesses and developers engaged in financial analytics. By leveraging the various endpoints, developers can access real-time data, analyze historical trends, and make informed decisions based on accurate market insights.
As the financial landscape continues to evolve, integrating advanced data analytics capabilities into applications will be crucial for staying competitive. The Metals-API not only simplifies the process of accessing metal prices but also empowers developers to build innovative solutions that can adapt to changing market conditions.
For more information on how to utilize the Metals-API effectively, explore the Metals-API Documentation and discover the full range of supported symbols on the Metals-API Supported Symbols page. By harnessing the power of real-time and historical data, businesses can unlock new opportunities and drive growth in an increasingly data-driven world.