Query Maltese Lira (MTL) Historical Prices with this API
Introduction
The Maltese Lira (MTL) has a rich history as the currency of Malta before it was replaced by the Euro (EUR) in 2008. For developers and financial analysts interested in historical price data of the Maltese Lira, the Metals-API offers a powerful solution. This API provides real-time and historical data for various metals and currencies, including the ability to query historical prices of the Maltese Lira. In this blog post, we will explore how to effectively use the Metals-API to retrieve historical prices, understand its features, and discuss the potential applications of this data.
Understanding Metals-API
The Metals-API is a comprehensive JSON API that provides access to real-time and historical metal prices, currency conversion, and various other financial data. It is designed for developers who need reliable and accurate data for building applications in finance, trading, and market analysis. With its innovative features and capabilities, the Metals-API empowers developers to create next-generation applications that leverage real-time metals data.
About Tellurium (TE)
When discussing metals like Tellurium, it is essential to consider the digital transformation occurring in metal markets. The integration of smart technology and data analytics is revolutionizing how traders and investors interact with metal prices. The Metals-API exemplifies this transformation by providing developers with the tools to access and analyze data efficiently. By leveraging technological advancements, users can gain insights into market trends and make informed decisions.
API Description
The Metals-API is equipped with a variety of endpoints that allow users to access different types of data. This includes the latest rates, historical rates, and conversion capabilities. The API is designed to be user-friendly, with comprehensive documentation available at the Metals-API Documentation. This documentation provides detailed information on how to implement the API effectively.
Key Features of Metals-API
The Metals-API offers a range of features that cater to various needs in the financial sector. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for metals and currencies. Depending on your subscription plan, this endpoint can return data updated every 60 minutes or even every 10 minutes. This feature is crucial for traders who need to make quick decisions based on the latest market information.
Historical Rates Endpoint
For those interested in analyzing trends over time, the Historical Rates Endpoint allows users to access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the API for historical data on the Maltese Lira and other currencies. This is particularly useful for financial analysts who need to study price movements over time.
Bid and Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for metals. This information is vital for traders looking to execute buy or sell orders at optimal prices. Understanding the spread between bid and ask prices can help traders make more informed decisions.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one currency to another. For example, if you want to convert Maltese Lira to Euros, this endpoint can provide the necessary conversion rate. This feature is essential for applications that require currency conversion functionalities.
Time-Series Endpoint
The Time-Series Endpoint allows users to query daily historical rates between two dates of their choice. This is particularly useful for analyzing trends and fluctuations over specific periods. Developers can utilize this endpoint to create visualizations or reports based on historical data.
Fluctuation Endpoint
Using the Fluctuation Endpoint, users can retrieve information about how currencies fluctuate on a day-to-day basis. This feature is beneficial for understanding market volatility and making predictions based on historical fluctuation patterns.
Carat Endpoint
The Carat Endpoint provides information about gold rates by carat. This is particularly useful for jewelers and investors in precious metals who need to understand the value of gold based on its purity.
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API for the lowest and highest prices of metals over a specified period. This information can help traders identify price extremes and make strategic decisions.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides users with open, high, low, and close prices for a specific time period. This data is essential for technical analysis and helps traders understand market trends and price movements.
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for those interested in analyzing historical data related to the London Metal Exchange.
API Key and Response
To access the Metals-API, users must obtain an API Key, which is passed into the API base URL's access_key parameter. The API delivers exchange rates relative to USD by default, and all data is returned in a structured JSON format. Understanding the API response structure is crucial for developers to effectively utilize the 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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding the API responses is essential for effective implementation. Here are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1788999210,
"base": "USD",
"date": "2026-09-10",
"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": 1788912810,
"base": "USD",
"date": "2026-09-09",
"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-09-03",
"end_date": "2026-09-10",
"base": "USD",
"rates": {
"2026-09-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-09-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-09-10": {
"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": 1788999210,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-09-03",
"end_date": "2026-09-10",
"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": 1788999210,
"base": "USD",
"date": "2026-09-10",
"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": 1788999210,
"base": "USD",
"date": "2026-09-10",
"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 provides a robust solution for developers seeking to query historical prices of the Maltese Lira and other metals. With its extensive range of endpoints, including the Latest Rates, Historical Rates, and various conversion features, the API empowers users to access real-time and historical data efficiently. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance financial analysis, trading strategies, and market insights. For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.