Retrieve Canadian Dollar (CAD) Historical Prices using this API
The Canadian Dollar (CAD) is a significant currency in the global market, particularly in the context of commodities and metals trading. As the world increasingly embraces digital transformation, the way we access and utilize financial data is evolving. One of the most innovative tools available for developers and analysts is the Metals-API, which provides real-time and historical prices for various metals, including the Canadian Dollar. In this blog post, we will explore how to retrieve historical prices for CAD using the Metals-API, delving into its features, capabilities, and potential applications.
Metals-API Information
About Canadian Dollar (CAD)
The Canadian Dollar is not just a currency; it represents a gateway to understanding the dynamics of the global metal markets. With the rise of technological innovation, the integration of smart technologies and data analytics has transformed how traders and developers interact with financial data. The Metals-API stands at the forefront of this transformation, offering a robust platform for accessing historical and real-time data on metals.
As we explore the Canadian Dollar, it's essential to consider the implications of digital transformation in metal markets. The integration of advanced data analytics allows for deeper insights into market trends, enabling traders to make informed decisions. Furthermore, the future of currency trading is likely to be shaped by the continuous advancement of technology, paving the way for more efficient and transparent trading practices.
API Description
The Metals-API is a powerful tool that empowers developers to build next-generation applications by providing access to real-time and historical metals data. This API is designed to facilitate seamless integration into various applications, allowing users to retrieve and analyze data effortlessly. With its comprehensive documentation, developers can quickly understand how to leverage the API's capabilities to meet their specific needs.
For more information, you can visit the Metals-API Website and access 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, 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 every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is crucial for traders who need up-to-the-minute information to make timely decisions.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one currency to another, facilitating seamless transactions across different currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two chosen dates, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is particularly useful for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: This endpoint allows users to 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: Users can access OHLC data for specific time periods, which is essential for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a wealth of data for analysis.
- API Key: Each user is assigned a unique API key, which 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 interpretation.
- Available Endpoints: The API features 14 different endpoints, each designed to provide specific functionalities, catering to a wide range of user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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 the API responses is crucial for effective implementation. Below are examples of various API endpoints along with their responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1770682807,
"base": "USD",
"date": "2026-02-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": 1770596407,
"base": "USD",
"date": "2026-02-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-02-03",
"end_date": "2026-02-10",
"base": "USD",
"rates": {
"2026-02-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-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": 1770682807,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-03",
"end_date": "2026-02-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": 1770682807,
"base": "USD",
"date": "2026-02-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": 1770682807,
"base": "USD",
"date": "2026-02-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 offers a comprehensive solution for accessing historical prices of the Canadian Dollar and other metals. By leveraging its various endpoints, developers can build robust applications that provide real-time insights and historical data analysis. The API's capabilities, combined with the ongoing digital transformation in the financial sector, position it as a vital tool for traders, analysts, and developers alike.
As we look to the future, the integration of advanced technologies and data analytics will continue to shape the landscape of metal trading. By utilizing the Metals-API, users can stay ahead of the curve, making informed decisions based on accurate and timely data. For further exploration, refer to the Metals-API Documentation and discover the full potential of this innovative API.