How to get Bermudian Dollar (BMD) prices using this API
How to Get Bermudian Dollar (BMD) Prices Using the Metals-API
The world of finance is rapidly evolving, and the demand for real-time data is more critical than ever. For developers looking to integrate metal pricing into their applications, the Metals-API offers a robust solution. This API provides access to a wealth of information, including the current and historical prices of metals like Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD). In this blog post, we will explore the capabilities of the Metals-API, focusing on how to retrieve Bermudian Dollar (BMD) prices and the innovative features that make this API a valuable tool for developers.
About Bermudian Dollar (BMD)
The Bermudian Dollar (BMD) is the official currency of Bermuda, pegged to the US Dollar at par. As a developer, understanding the significance of BMD in the context of metal markets is essential. The digital transformation in metal markets has led to an increased reliance on real-time data analytics and insights. With the integration of smart technology, developers can leverage the Metals-API to access up-to-date pricing information, enabling them to build applications that cater to the needs of investors and traders alike.
Technological innovation has paved the way for advanced data analytics, allowing for better decision-making in trading and investment strategies. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to harness the power of real-time metals data. As we look to the future, the possibilities for integrating such data into applications are vast, from automated trading systems to market analysis tools.
API Description
The Metals-API is designed to empower developers by providing a comprehensive suite of features that facilitate the retrieval of metal prices and currency conversions. This API is not just about fetching data; it is about enabling innovation and technological advancement in financial applications. The API's capabilities include real-time exchange rates, historical data, and various endpoints that cater to different needs.
For detailed information on how to use the API, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on integrating the API into applications. Additionally, the Metals-API Supported Symbols page lists all available metal symbols, including XAU, XAG, XPT, and XPD.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that can be leveraged in different applications. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is crucial for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. Developers can query the API for historical rates by appending a date to the request. This is particularly useful for analyzing trends over time.
- Bid and Ask Endpoint: This powerful feature allows developers to retrieve real-time Bid and Ask prices, which are essential for trading applications that require precise pricing information.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that can convert any amount from one currency to another. This is particularly useful for applications that need to display prices in different currencies, including BMD.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two dates of their choice. It is beneficial for applications that require detailed historical analysis.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis. This endpoint can help developers understand market volatility and make informed decisions.
- Carat Endpoint: This feature provides information about Gold rates by Carat, allowing developers to cater to specific market needs.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, which can help in identifying market trends.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows developers to get the open, high, low, and close prices for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a wealth of data for analysis.
- API Key: Each user is provided with a unique API key that must be included in requests to authenticate access to the API.
- API Response: The exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing different functionalities to meet diverse developer needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring developers can access the latest symbols.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
API Endpoint Examples and Responses
To illustrate the functionality of the Metals-API, here are some example responses for key endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1771546401,
"base": "USD",
"date": "2026-02-20",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1771460001,
"base": "USD",
"date": "2026-02-19",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-13",
"end_date": "2026-02-20",
"base": "USD",
"rates": {
"2026-02-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-20": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1771546401,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-13",
"end_date": "2026-02-20",
"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) Price Endpoint
{
"success": true,
"timestamp": 1771546401,
"base": "USD",
"date": "2026-02-20",
"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
{
"success": true,
"timestamp": 1771546401,
"base": "USD",
"date": "2026-02-20",
"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 is an invaluable resource for developers looking to integrate real-time metal pricing into their applications. By leveraging the various endpoints available, developers can access a wealth of information, from the latest rates to historical data and fluctuations. The ability to convert currencies, track bid and ask prices, and analyze trends over time makes this API a powerful tool in the financial technology landscape.
As the demand for accurate and timely data continues to grow, the Metals-API positions itself as a leader in providing the necessary tools for developers to create innovative solutions. By understanding the capabilities of the API and how to effectively utilize its features, developers can build applications that meet the evolving needs of the market.
For further exploration, developers are encouraged to visit the Metals-API Documentation for detailed guidance, check the Metals-API Supported Symbols for a comprehensive list of available symbols, and explore the Metals-API Website for additional resources and updates.