Download Bhopal Gold 24k (BHOP-24k) Historical Prices through this API

Introduction
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is Gold, represented by the symbol XAU. For developers and traders alike, accessing historical prices of Gold can provide valuable insights into market trends and price movements. This blog post will explore how to download Bhopal Gold 24k (BHOP-24k) historical prices through the Metals-API, a powerful tool that offers real-time and historical data on various metals.
Metals-API Information
About Gold (XAU)
Gold has long been regarded as a safe haven asset and a hedge against inflation. Its value is influenced by various factors, including economic indicators, geopolitical events, and market sentiment. As the digital transformation continues to reshape the financial landscape, the integration of technology in precious metals trading has become increasingly important. The Metals-API provides developers with the tools necessary to harness data analytics and gain market insights, enabling them to build innovative applications that can enhance trading strategies.
With the rise of digital asset solutions, the demand for real-time metals data has surged. The Metals-API empowers developers to create next-generation applications that leverage historical and current price data, facilitating better price discovery and informed trading decisions. By utilizing this API, developers can integrate advanced analytics into their platforms, allowing for a more comprehensive understanding of market dynamics.
API Description
The Metals-API is designed to provide comprehensive access to metals pricing data, including Gold, Silver, Platinum, and Palladium. With its innovative features, the API allows users to retrieve real-time exchange rates, historical prices, and various other data points essential for trading and analysis. The API's capabilities extend beyond mere data retrieval; it enables developers to create applications that can analyze trends, forecast prices, and manage risks effectively.
For those looking to access historical prices of Gold, the Metals-API offers a Historical Rates Endpoint that allows users to query historical data dating back to 2019. By appending a specific date to the API request, developers can obtain the historical rates for Gold, providing insights into past market behavior and price fluctuations.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs, each offering unique functionalities that can be leveraged for various 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 essential for traders who require up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates for most currencies, including Gold, by appending a date to the API request. This allows for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time Bid and Ask prices, which are crucial for executing trades at optimal prices.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert amounts between different metals or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Carat Endpoint: This feature allows users to retrieve information about Gold rates by carat, catering to specific market needs.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is essential for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides users with the open, high, low, and close prices for a specified date, offering a snapshot of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive historical analysis.
- API Key: Each user is assigned a unique API key, which must be included in API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API provides a total of 14 endpoints, each with distinct functionalities tailored to meet various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring users can access the most up-to-date information.
- Gold Price India Endpoint: Retrieve the latest Gold price in India using this dedicated endpoint, catering to regional market needs.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
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 integrate specific metal data into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
The Latest Rates Endpoint allows users to get real-time exchange rates for all available metals. Here’s an example response:
{
"success": true,
"timestamp": 1758686438,
"base": "USD",
"date": "2025-09-24",
"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"
}
In this response, the "rates" object contains the current exchange rates for various metals, with Gold (XAU) priced at 0.000482 per troy ounce.
Historical Rates Endpoint
Accessing historical exchange rates is straightforward with the Historical Rates Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1758600038,
"base": "USD",
"date": "2025-09-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response indicates the historical rates for Gold and other metals on a specific date, allowing for detailed analysis of past market conditions.
Time-series Endpoint
The Time-series Endpoint provides exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-09-17",
"end_date": "2025-09-24",
"base": "USD",
"rates": {
"2025-09-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint allows users to track price movements over a specified period, providing insights into trends and fluctuations.
Convert Endpoint
The Convert Endpoint enables users 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": 1758686438,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of 1000 USD to Gold (XAU), resulting in 0.482 troy ounces, which is essential for traders looking to make conversions based on current rates.
Fluctuation Endpoint
The Fluctuation Endpoint allows users to track rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-17",
"end_date": "2025-09-24",
"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 how prices have changed over a specific period, which is critical for traders looking to understand market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
The OHLC Price Endpoint provides users with open, high, low, and close prices for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1758686438,
"base": "USD",
"date": "2025-09-24",
"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 endpoint is particularly useful for traders who rely on candlestick patterns and other technical analysis methods to make trading decisions.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here’s an example response:
{
"success": true,
"timestamp": 1758686438,
"base": "USD",
"date": "2025-09-24",
"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 response provides essential information for traders looking to execute trades at the best possible prices, highlighting the bid-ask spread.
Conclusion
Accessing historical prices for Gold (XAU) through the Metals-API is not only straightforward but also essential for developers and traders aiming to make informed decisions in the precious metals market. The API's extensive features, including the Latest Rates, Historical Rates, and various conversion endpoints, empower users to analyze market trends and execute trades effectively. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance trading strategies and provide valuable insights into market dynamics.
For more information on how to implement these features, refer to the Metals-API Documentation. To explore the full range of supported symbols, visit the Metals-API Supported Symbols page. The Metals-API Website is also a valuable resource for understanding the full potential of this powerful API.