Access MTL Historical Prices for Financial Analysis through this API
Access MTL Historical Prices for Financial Analysis through this API
The Maltese Lira (MTL) has a rich history and plays a significant role in the financial landscape of Malta. With the rise of digital transformation in metal markets, the need for accurate and real-time data has never been more critical. The Metals-API provides developers with the tools to access historical prices and real-time data for metals, including Gold (XAU), enabling comprehensive financial analysis and informed decision-making.
About Maltese Lira (MTL)
The Maltese Lira, once the official currency of Malta, has transitioned to the Euro (EUR) since 2008. However, its historical significance remains vital for financial analysts and developers working with historical data. The integration of smart technology and data analytics in the financial sector allows for innovative approaches to understanding market trends and fluctuations. As we explore the capabilities of the Metals-API, we will delve into how it empowers developers to harness the power of historical data for financial analysis.
API Description
The Metals-API is a powerful tool designed for developers looking to access real-time and historical data on various metals, including Gold (XAU). This API stands out due to its innovative features, allowing users to build next-generation applications that require accurate and timely data. With the ability to retrieve historical prices dating back to 2019, the Metals-API is essential for anyone looking to analyze trends, perform data analytics, or integrate metal pricing into their applications.
For more information, visit the Metals-API Website or check the Metals-API Documentation for detailed instructions on how to implement the API.
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 updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. It allows developers to access the most current pricing for metals, including Gold (XAU).
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can retrieve past pricing data, which is crucial for trend analysis.
- Bid And Ask Endpoint: This feature enables users to retrieve real-time Bid and Ask prices for metals, providing insights into market dynamics and pricing strategies.
- Convert Endpoint: The conversion endpoint allows for seamless currency conversion, enabling users to convert any amount from one currency to another, including conversions to and from USD.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature provides information about Gold rates by Carat, essential for jewelers and investors in the precious metals market.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specified date, helping analysts identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, crucial for those analyzing the London Metal Exchange.
- API Key: The API Key is essential for accessing the API and must be included in the request URL.
- API Response: The Metals-API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: With 14 different endpoints, the Metals-API offers a comprehensive suite of tools for developers.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of 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
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1781309797,
"base": "USD",
"date": "2026-06-13",
"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": 1781223397,
"base": "USD",
"date": "2026-06-12",
"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-06",
"end_date": "2026-06-13",
"base": "USD",
"rates": {
"2026-06-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-13": {
"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": 1781309797,
"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-06",
"end_date": "2026-06-13",
"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": 1781309797,
"base": "USD",
"date": "2026-06-13",
"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": 1781309797,
"base": "USD",
"date": "2026-06-13",
"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
Accessing historical prices for Gold (XAU) and other metals through the Metals-API is an invaluable resource for financial analysts and developers. With its extensive features, including real-time data, historical rates, and various endpoints for conversion and fluctuation tracking, the API empowers users to make informed decisions based on accurate data. By integrating the Metals-API into your applications, you can leverage the power of data analytics and technological innovation to stay ahead in the ever-evolving financial landscape.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and discover the full range of supported symbols on the Metals-API Supported Symbols page. Embrace the future of financial analysis with the Metals-API and unlock the potential of historical data for your projects.