Get Bhopal Gold 24k (BHOP-24k) Historical Prices with currency conversion using this API
Introduction
Gold (XAU) has long been a symbol of wealth and stability in the financial world. As a precious metal, it plays a crucial role in global markets, serving as a hedge against inflation and economic uncertainty. With the rise of digital transformation in trading, developers now have access to powerful tools that can provide real-time data and historical prices for gold and other metals. One such tool is the Metals-API, which offers comprehensive data analytics and market insights for precious metals, including gold. This blog post will explore how to retrieve historical prices for Bhopal Gold 24k (BHOP-24k) using the Metals-API, along with its innovative features and capabilities.
About Gold (XAU)
Gold is not just a commodity; it is a digital asset that has transformed the way investors and traders approach the market. The integration of technology in trading has led to innovative solutions for price discovery and market analysis. The Metals-API provides developers with the tools necessary to harness the power of data analytics, enabling them to build next-generation applications that can track gold prices in real-time.
With the increasing demand for accurate and timely information, the Metals-API stands out as a reliable source for developers looking to integrate precious metals data into their applications. By leveraging this API, developers can gain insights into market trends, fluctuations, and historical data, empowering them to make informed decisions.
API Description
The Metals-API is a powerful JSON API that provides real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API is designed to empower developers by offering a wide range of endpoints that cater to different data needs. Whether you are looking for the latest rates, historical prices, or even bid and ask prices, the Metals-API has you covered.
One of the key advantages of using the Metals-API is its ability to provide real-time data updates. Depending on your subscription plan, the API can return exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This level of granularity allows developers to build applications that can react to market changes in real-time.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that enable developers to access different types of data. Here are some of the most notable features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for all available metals. This endpoint is essential for applications that require up-to-the-minute pricing information. The response includes the base currency, timestamp, and rates for various metals.
{
"success": true,
"timestamp": 1784679346,
"base": "USD",
"date": "2026-07-22",
"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
For developers interested in analyzing trends over time, the Historical Rates Endpoint allows access to historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve historical data for any currency.
{
"success": true,
"timestamp": 1784592946,
"base": "USD",
"date": "2026-07-21",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables developers to retrieve real-time bid and ask prices for metals. This information is crucial for traders looking to make informed decisions based on market conditions.
{
"success": true,
"timestamp": 1784679346,
"base": "USD",
"date": "2026-07-22",
"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"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one currency to another. This feature is particularly useful for applications that require currency conversion for transactions involving precious metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1784679346,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows developers to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth market analysis and understanding price movements over time.
{
"success": true,
"timeseries": true,
"start_date": "2026-07-15",
"end_date": "2026-07-22",
"base": "USD",
"rates": {
"2026-07-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-22": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This feature is essential for traders who need to understand market volatility and make informed decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-15",
"end_date": "2026-07-22",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows developers to query the API for the open, high, low, and close prices for a specific time period. This data is critical for technical analysis and understanding market trends.
{
"success": true,
"timestamp": 1784679346,
"base": "USD",
"date": "2026-07-22",
"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"
}
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 developers working with industrial metals and seeking long-term 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 understand the various metals available for querying.
Conclusion
In conclusion, the Metals-API offers a robust and innovative solution for developers seeking to access real-time and historical data for precious metals like gold. With its wide range of endpoints, including the Latest Rates, Historical Rates, and various conversion features, developers can build powerful applications that provide valuable insights into the metals market. By leveraging the capabilities of the Metals-API, developers can enhance their applications with accurate data, enabling users to make informed decisions based on market trends.
For more information on how to implement these features and access the API, be sure to check out the Metals-API Documentation. This resource provides detailed guidance on how to effectively utilize the API and integrate it into your applications. With the right tools and knowledge, you can harness the power of real-time metals data to create innovative solutions in the financial sector.