Fetch Historical Data of Guwahati Gold 22k (GUWA-22k) using this API
Introduction
In the ever-evolving landscape of precious metals trading, the ability to access historical data is crucial for informed decision-making. For those interested in tracking the historical prices of Guwahati Gold 22k (GUWA-22k), the Metals-API offers a robust solution. This API provides developers with the tools to fetch real-time and historical data on various metals, including gold, silver, platinum, and palladium. In this blog post, we will explore the capabilities of the Metals-API, focusing on how to retrieve historical prices and the transformative potential of integrating such data into applications.
About Gold (XAU)
Gold, represented by the symbol XAU, has been a cornerstone of wealth and investment for centuries. As a digital transformation takes hold in the precious metals market, the integration of data analytics and technology is reshaping how traders and investors interact with gold. The rise of digital asset solutions has made it easier than ever to track gold prices, analyze market trends, and make informed trading decisions.
With the advent of advanced data analytics, traders can gain insights into market movements, identify patterns, and optimize their trading strategies. The integration of technology in trading platforms allows for real-time updates and seamless transactions, enhancing the overall trading experience. Innovations in price discovery mechanisms are also paving the way for more transparent and efficient markets, enabling investors to access accurate pricing information at their fingertips.
Metals-API Overview
The Metals-API is a powerful tool designed for developers looking to integrate metal price data into their applications. This API provides a wide range of endpoints that allow users to access real-time and historical data, making it an invaluable resource for anyone involved in the trading of precious metals.
One of the key features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This ensures that traders have access to the most current information, allowing them to make timely decisions. Additionally, the API offers historical rates dating back to 2019, enabling users to analyze trends over time.
Key Features and Endpoints
The Metals-API boasts several endpoints that cater to various needs in the precious metals trading space:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently. This allows traders to stay informed about the latest market conditions.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data for analysis and reporting.
- Bid and Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates, making it easy to analyze price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, catering to those interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides users with open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: The API Key is a unique identifier that must be included in requests to authenticate and authorize access to the API.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities, ensuring comprehensive coverage of metal pricing 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.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, let's explore some example responses for key endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1773015651,
"base": "USD",
"date": "2026-03-09",
"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
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1772929251,
"base": "USD",
"date": "2026-03-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-03-02",
"end_date": "2026-03-09",
"base": "USD",
"rates": {
"2026-03-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1773015651,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-02",
"end_date": "2026-03-09",
"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"
}
OHLC (Open/High/Low/Close) Price Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1773015651,
"base": "USD",
"date": "2026-03-09",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1773015651,
"base": "USD",
"date": "2026-03-09",
"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"
}
Conclusion
The Metals-API provides a comprehensive suite of tools for developers looking to access and utilize precious metals data effectively. With its extensive range of endpoints, including the ability to retrieve historical prices for Guwahati Gold 22k (GUWA-22k), the API empowers users to make informed trading decisions based on accurate and timely information. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance the trading experience and provide valuable insights into market dynamics.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the Metals-API Supported Symbols page for a complete list of available metal symbols. Embrace the power of real-time metals data and transform your trading strategies today!