Get Bosnia and Herzegovina Convertible Mark (BAM) prices using this API
Get Bosnia and Herzegovina Convertible Mark (BAM) Prices Using This API
In today's fast-paced financial landscape, having access to real-time data is crucial for developers and businesses alike. The Metals-API provides a powerful solution for obtaining the latest prices of metals, including the Bosnia and Herzegovina Convertible Mark (BAM). This blog post will delve into the capabilities of the Metals-API, explore the significance of metals like Neodymium (ND), and explain how developers can leverage this API to create innovative applications.
Metals-API Information
About Neodymium (ND)
Neodymium is a rare earth metal that plays a pivotal role in various technological advancements. As industries undergo digital transformation, the demand for neodymium has surged, particularly in the production of high-strength magnets used in electric vehicles, wind turbines, and consumer electronics. The integration of smart technologies and data analytics has revolutionized the metal markets, providing insights that were previously unattainable.
Technological innovation in the metal sector is not just about extraction and processing; it encompasses the entire supply chain. With the rise of data analytics, stakeholders can now predict market trends, optimize inventory, and enhance decision-making processes. The future of neodymium and other metals lies in their ability to adapt to these changes, ensuring sustainability and efficiency in production.
API Description
The Metals-API is a comprehensive JSON API that provides real-time and historical data on various metals, including precious metals like gold (XAU), silver (XAG), and platinum (XPT). This API empowers developers to build next-generation applications that require accurate and timely metals data. By utilizing the Metals-API Documentation, developers can access detailed information on how to implement this API effectively.
With the Metals-API, you can retrieve the latest rates, historical data, and even perform conversions between different metals and currencies. The API's capabilities extend beyond mere data retrieval; it allows for advanced analytics and insights that can drive business decisions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Depending on your subscription plan, you can access real-time exchange rate data updated at intervals that suit your application. For instance, the Latest Rates Endpoint provides current exchange rates for all available metals, allowing you to stay informed about market fluctuations.
For developers needing historical data, the Historical Rates Endpoint allows querying rates dating back to 2019. This feature is invaluable for trend analysis and forecasting. By appending a specific date to your request, you can retrieve past rates and analyze how they have changed over time.
The Bid and Ask Endpoint is another powerful feature that provides real-time bid and ask prices for metals. This information is crucial for traders and investors who need to make informed decisions based on current market conditions.
Additionally, the Convert Endpoint enables users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require currency conversion for pricing or reporting purposes.
The Time-Series Endpoint allows you to query daily historical rates between two dates of your choice. This is beneficial for analyzing trends over specific periods, providing insights into market behavior.
For those interested in understanding market fluctuations, the Fluctuation Endpoint provides detailed information about how currencies fluctuate on a day-to-day basis. This can help in assessing the volatility of metals and making strategic decisions.
Moreover, the Carat Endpoint offers information about gold rates by carat, which is essential for jewelers and gold traders. The Lowest/Highest Price Endpoint allows you to query the API to get the lowest and highest prices for a specified date, providing insights into market extremes.
The Open/High/Low/Close (OHLC) Price Endpoint provides a comprehensive view of price movements over a specific period, allowing for detailed market analysis. Additionally, the Historical LME Endpoint gives access to historical rates for LME symbols dating back to 2008, which is crucial for understanding long-term trends.
To access these features, you will need an API Key, which is a unique identifier passed into the API base URL's access_key parameter. The API response delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
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
To get real-time exchange rates for all available metals, you can use the following example response:
{
"success": true,
"timestamp": 1771114286,
"base": "USD",
"date": "2026-02-15",
"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"
}
This response indicates the success of the request and provides the latest rates for various metals, allowing developers to integrate this data into their applications seamlessly.
Historical Rates Endpoint
Accessing historical exchange rates for any date since 1999 can be done with the following response:
{
"success": true,
"timestamp": 1771027886,
"base": "USD",
"date": "2026-02-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for developers looking to analyze trends over time, providing a historical context for current market conditions.
Time-series Endpoint
To get exchange rates for a specific time period, the response would look like this:
{
"success": true,
"timeseries": true,
"start_date": "2026-02-08",
"end_date": "2026-02-15",
"base": "USD",
"rates": {
"2026-02-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This feature allows developers to visualize trends and fluctuations over a specified time frame, enhancing their analytical capabilities.
Convert Endpoint
For converting any amount from one metal to another or to/from USD, the response would be:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1771114286,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint is particularly useful for applications that require real-time conversion rates, allowing users to make informed decisions based on current market values.
Fluctuation Endpoint
To track rate fluctuations between two dates, the response would look like this:
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-08",
"end_date": "2026-02-15",
"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"
}
This endpoint provides insights into market volatility, helping developers and traders understand how prices change over time.
OHLC (Open/High/Low/Close) Price Endpoint
To get OHLC data for a specific time period, the response would be:
{
"success": true,
"timestamp": 1771114286,
"base": "USD",
"date": "2026-02-15",
"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"
}
This data is essential for traders looking to analyze market trends and make informed trading decisions based on price movements.
Bid/Ask Endpoint
To get current bid and ask prices for metals, the response would be:
{
"success": true,
"timestamp": 1771114286,
"base": "USD",
"date": "2026-02-15",
"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"
}
This endpoint is crucial for traders who need to know the current market conditions to make timely decisions.
Conclusion
The Metals-API is an invaluable resource for developers seeking to integrate real-time metals data into their applications. With its extensive range of endpoints, including the latest rates, historical data, and conversion capabilities, this API empowers users to make informed decisions based on accurate and timely information. By leveraging the capabilities of the Metals-API, developers can create innovative solutions that enhance market analysis, trading strategies, and overall business intelligence.
For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation. Don't forget to check the Metals-API Supported Symbols page for a comprehensive list of available metals and their specifications.