Download MTL Historical Prices for Academic Research via this API
Download MTL Historical Prices for Academic Research via this API
In the ever-evolving landscape of financial markets, the demand for accurate and timely data has never been greater. For researchers and developers focusing on metals, the ability to access historical prices is crucial for analysis and decision-making. The Metals-API provides a robust solution for obtaining historical prices, particularly for Gold (XAU), which is a key asset in the metals market. This blog post will delve into the capabilities of the Metals-API, focusing on how to effectively retrieve historical prices and leverage this data for academic research.
About Canadian Dollar (CAD)
The Canadian Dollar (CAD) plays a significant role in the global metals market, particularly in relation to Gold (XAU). As digital transformation continues to reshape financial markets, the integration of technological innovations and advancements in data analytics is paramount. The Metals-API exemplifies this transformation by providing developers with the tools necessary to access real-time and historical data, enabling them to build next-generation applications that can analyze trends, forecast prices, and derive insights.
With the rise of smart technology integration, the Metals-API empowers users to harness the power of data analytics. By utilizing the API, developers can explore future trends and possibilities in the metals market, particularly how fluctuations in the Canadian Dollar impact Gold prices. This capability is essential for researchers who aim to understand the intricate relationships between currencies and commodities.
API Description
The Metals-API is a powerful tool that provides real-time and historical data for various metals, including Gold (XAU). This API is designed to empower developers to create applications that can analyze market trends, perform currency conversions, and access a wealth of historical data. The API's capabilities extend beyond mere data retrieval; it enables users to gain insights into market dynamics and make informed decisions based on accurate information.
For more information, visit the Metals-API Website or explore 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 data needs. Each endpoint serves a specific purpose, allowing users to access the information they require efficiently. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated frequently based on the user's subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date (in YYYY-MM-DD format) to the endpoint, researchers can retrieve historical prices for Gold and other metals.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts from one currency to another, which is particularly useful for researchers analyzing price movements in different currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, facilitating trend analysis 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 allows users to retrieve information about Gold rates by carat, which is essential for jewelers and investors alike.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is assigned a unique API key, which is required to access the API's features securely.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API comprises 14 endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
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 researchers and developers looking to understand the various metals available for analysis.
API Endpoint Examples and Responses
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the Latest Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1781568925,
"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
Accessing historical exchange rates for any date since 1999 can be done using the Historical Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1781482525,
"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
The Time-series Endpoint allows users to get exchange rates for a specific time period. Here’s an example response:
{
"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
The Convert Endpoint allows you to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1781568925,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates using the Fluctuation Endpoint. Here’s an example response:
{
"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
To get OHLC data for a specific time period, use the OHLC Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1781568925,
"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
To get current bid and ask prices for metals, use the Bid/Ask Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1781568925,
"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
In conclusion, the Metals-API provides a comprehensive solution for accessing historical prices and real-time data for metals, particularly Gold (XAU). By leveraging the various endpoints available, researchers and developers can gain valuable insights into market trends, perform detailed analyses, and make informed decisions based on accurate data. The ability to access historical rates, track fluctuations, and convert currencies makes the Metals-API an essential tool for anyone involved in metals research.
For further exploration of the API's capabilities, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page. As the metals market continues to evolve, staying informed and utilizing advanced tools like the Metals-API will be key to success in academic research and beyond.