Fetch Bhopal Gold 24k (BHOP-24k) Historical Prices from this API

Introduction
In the ever-evolving landscape of financial markets, the demand for accurate and timely data has never been more critical. For those interested in precious metals, particularly Gold (XAU), accessing historical prices is essential for informed trading and investment decisions. This blog post delves into how to fetch Bhopal Gold 24k (BHOP-24k) historical prices using the Metals-API, a powerful tool that provides real-time and historical data on various metals.
Understanding Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and currency fluctuations. In recent years, the digital transformation in precious metals has led to innovative solutions that enhance trading efficiency and market insights. The integration of data analytics and technology in trading has revolutionized how investors approach the gold market.
With the rise of digital asset solutions, traders can now leverage advanced analytics to gain insights into market trends and price movements. The innovation in price discovery mechanisms has made it easier for investors to make informed decisions based on real-time data. As a result, the demand for reliable historical price data has surged, making APIs like Metals-API indispensable for traders and developers alike.
Metals-API Overview
The Metals-API is a comprehensive JSON API that provides access to a wide range of metal prices, including Gold, Silver, Platinum, and Palladium. It empowers developers to build next-generation applications that require real-time and historical metals data. The API's capabilities extend beyond mere price retrieval; it offers various endpoints that cater to different data needs, making it a versatile tool for financial applications.
Key Features of Metals-API
Metals-API boasts a variety of features that enhance its functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or more frequently. It allows users to access the most current prices for Gold and other metals.
- Historical Rates Endpoint: This feature provides access to historical rates for most currencies dating back to 2019. Users can query the API for historical rates by appending a specific date, enabling them to analyze past price trends.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time Bid and Ask prices, providing insights into market liquidity and trading opportunities.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve information about Gold rates by Carat, catering to specific market needs.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices within a specified date range, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access OHLC data for a specific time period, providing a comprehensive view of price movements.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering valuable insights for traders focused on industrial metals.
- API Key: Users must pass their unique API key into the API base URL's access_key parameter to authenticate their requests.
- API Response: The exchange rates delivered by Metals-API are by default relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities, ensuring comprehensive coverage of user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing users to stay informed about the latest offerings.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them updated on market developments.
Fetching Historical Prices for Gold (XAU)
To fetch historical prices for Gold (XAU), developers can utilize the Historical Rates Endpoint. This endpoint allows users to access historical exchange rates for any date since 1999. By appending a specific date to the API request, users can retrieve the price of Gold on that date, enabling them to analyze trends and make informed decisions.
Example of Historical Rates Endpoint
When querying the Historical Rates Endpoint, the response will include the following structure:
{
"success": true,
"timestamp": 1760536855,
"base": "USD",
"date": "2025-10-15",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
In this response, the success
field indicates whether the request was successful. The timestamp
provides the time of the request, while the base
field indicates the base currency (USD in this case). The date
field shows the date for which the rates are provided, and the rates
object contains the exchange rates for various metals, including Gold (XAU).
Time-Series Analysis
For a more comprehensive analysis, developers can utilize the Time-Series Endpoint. This allows users to retrieve exchange rates for a specific time period, enabling them to visualize trends and fluctuations over time.
Example of Time-Series Endpoint
The response from the Time-Series Endpoint may look like this:
{
"success": true,
"timeseries": true,
"start_date": "2025-10-09",
"end_date": "2025-10-16",
"base": "USD",
"rates": {
"2025-10-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-16": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a detailed view of Gold prices over the specified time period, allowing traders to identify patterns and make predictions based on historical data.
Bid and Ask Prices
Understanding the Bid and Ask prices is crucial for traders looking to make informed decisions. The Bid and Ask Endpoint provides real-time prices, allowing users to gauge market sentiment and liquidity.
Example of Bid/Ask Endpoint
The response from the Bid/Ask Endpoint may look like this:
{
"success": true,
"timestamp": 1760623255,
"base": "USD",
"date": "2025-10-16",
"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"
}
In this response, the bid
and ask
fields provide the current bid and ask prices for Gold, while the spread
indicates the difference between the two, which is a critical metric for traders.
Conversion Capabilities
The Convert Endpoint is another valuable feature of the Metals-API, allowing users to convert amounts between different metals or to/from USD. This functionality is essential for traders who operate in multiple currencies or need to assess the value of their holdings in different terms.
Example of Convert Endpoint
The response from the Convert Endpoint may look like this:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1760623255,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD is equivalent to 0.482 troy ounces of Gold, providing traders with immediate insights into their investments.
Fluctuation Tracking
Tracking fluctuations in metal prices is vital for traders looking to capitalize on market movements. The Fluctuation Endpoint allows users to monitor rate changes between two dates, providing insights into market volatility.
Example of Fluctuation Endpoint
The response from the Fluctuation Endpoint may look like this:
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-09",
"end_date": "2025-10-16",
"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 response provides a comprehensive view of how Gold prices have changed over the specified period, allowing traders to make data-driven decisions.
OHLC Data for In-Depth Analysis
The Open/High/Low/Close (OHLC) Price Endpoint is essential for traders who require detailed price data for technical analysis. This endpoint provides the open, high, low, and close prices for a specific time period, enabling traders to assess market trends effectively.
Example of OHLC Price Endpoint
The response from the OHLC Price Endpoint may look like this:
{
"success": true,
"timestamp": 1760623255,
"base": "USD",
"date": "2025-10-16",
"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 response provides traders with the necessary data to conduct technical analysis and make informed trading decisions based on historical price movements.
Conclusion
In conclusion, the Metals-API offers a robust solution for developers and traders seeking to access historical prices for Gold (XAU) and other precious metals. With its comprehensive set of features, including real-time rates, historical data, conversion capabilities, and fluctuation tracking, the API empowers users to make informed decisions based on accurate and timely information.
By leveraging the capabilities of Metals-API, traders can enhance their trading strategies, conduct thorough market analysis, and ultimately improve their investment outcomes. Whether you are a seasoned trader or a developer looking to integrate metals data into your applications, Metals-API provides the tools you need to succeed in the dynamic world of precious metals trading.
For more information, explore the Metals-API Documentation and discover the full range of supported symbols on the Metals-API Supported Symbols page.