Get Historical Trends of Hyderabad Gold 22k (HYDE-22k) using this API
Get Historical Trends of Hyderabad Gold 22k (HYDE-22k) using this API
In the world of precious metals, gold has always held a significant place, both as a store of value and as a medium of exchange. For developers and traders interested in tracking the historical trends of gold prices, particularly in the context of Hyderabad's 22k gold (HYDE-22k), the Metals-API offers a powerful solution. This API provides access to real-time and historical data, enabling users to make informed decisions based on comprehensive market insights.
About Gold (XAU)
Gold, represented by the symbol XAU, is not just a commodity; it is a digital asset that has undergone a transformation due to technological advancements. The digital transformation in precious metals has led to the integration of data analytics and market insights, allowing traders to leverage technology for better trading strategies. With the rise of digital asset solutions, the way gold is traded and valued has evolved significantly.
Data analytics plays a crucial role in understanding market trends. By analyzing historical price data, traders can identify patterns and make predictions about future movements. The integration of technology in trading has also facilitated innovation in price discovery, making it easier for investors to access accurate and timely information. The Metals-API empowers developers to build next-generation applications that harness the power of real-time metals data, enabling them to create tools that can analyze and visualize gold price trends effectively.
API Description
The Metals-API is designed to provide developers with a comprehensive set of tools to access metals pricing data. This API offers a range of endpoints that cater to various needs, from retrieving the latest rates to accessing historical data. The transformative potential of real-time metals data is immense, as it allows for the development of applications that can provide insights into market dynamics.
One of the key features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API's latest endpoint can return updates every 60 minutes, every 10 minutes, or even more frequently. This ensures that users have access to the most current information, which is vital for making timely trading decisions.
For those interested in historical trends, the Metals-API provides a historical rates endpoint that allows users to query data dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for gold and other metals, enabling them to analyze trends over time.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each with unique functionalities that cater to different use cases:
- Latest Rates Endpoint: This endpoint provides real-time exchange rates for all available metals, allowing users to stay updated with the latest market prices.
- Historical Rates Endpoint: Users can access historical exchange rates for any date since 2019, making it easy to analyze past trends and make informed predictions.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices, which are crucial for understanding market liquidity.
- Convert Endpoint: This endpoint allows 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, providing insights into price movements over specific periods.
- Fluctuation Endpoint: This feature tracks rate fluctuations between two dates, helping users understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is particularly useful for jewelers and traders dealing in various gold purities.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest price for a specified date.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access OHLC data for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering insights into long-term trends.
- 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 API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing different functionalities to cater to diverse user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to explore the full range of supported symbols.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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 metals into their applications.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1772209250,
"base": "USD",
"date": "2026-02-27",
"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 that the current price of gold (XAU) is 0.000482 per troy ounce, providing a snapshot of the market at that moment.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1772122850,
"base": "USD",
"date": "2026-02-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical price of gold on a specific date, allowing users to analyze past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-20",
"end_date": "2026-02-27",
"base": "USD",
"rates": {
"2026-02-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, enabling users to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772209250,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates the conversion of USD to gold (XAU), showing that $1000 is equivalent to 0.482 troy ounces of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-20",
"end_date": "2026-02-27",
"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 insights into how gold prices fluctuated over a specified period, highlighting both the absolute and percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1772209250,
"base": "USD",
"date": "2026-02-27",
"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 provides critical data for traders, showing the opening, highest, lowest, and closing prices for gold within a specific timeframe.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1772209250,
"base": "USD",
"date": "2026-02-27",
"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 the current bid and ask prices for gold, which are essential for traders looking to execute buy and sell orders effectively.
Conclusion
The Metals-API is a robust tool for developers and traders looking to access historical trends of gold prices, including Hyderabad's 22k gold (HYDE-22k). By leveraging the various endpoints offered by the API, users can gain valuable insights into market dynamics, track price fluctuations, and make informed trading decisions. The integration of technology and data analytics in trading has transformed the way precious metals are valued and traded, making it essential for developers to utilize APIs like Metals-API to stay competitive in the market.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols to find the specific metals you wish to track. The Metals-API Website is also a valuable resource for understanding the full capabilities of the API and how it can enhance your trading strategies.