Get Pune Gold 22k (PUNE-22k) Yearly Historical Prices using this API

Get Pune Gold 22k (PUNE-22k) Yearly Historical Prices using this API
In today's rapidly evolving financial landscape, the demand for accurate and real-time data on precious metals has never been higher. For developers and traders interested in gold, particularly the 22k variant in Pune, accessing historical prices is crucial for making informed decisions. The Metals-API provides a robust solution for retrieving historical prices and other essential data related to gold and other metals. This blog post will delve into the intricacies of the Metals-API, focusing on how to obtain historical prices for Pune Gold 22k (PUNE-22k) and explore the broader implications of digital transformation in the precious metals market.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a symbol of wealth and stability. In recent years, the digital transformation of precious metals has opened new avenues for traders and investors. The integration of data analytics and market insights into trading strategies has become essential. With the rise of technology in trading, the ability to access real-time data and historical trends has empowered developers to create innovative applications that enhance price discovery and trading efficiency.
As the market for digital assets continues to grow, the importance of reliable data solutions cannot be overstated. The Metals-API stands at the forefront of this transformation, providing developers with the tools they need to build next-generation applications that leverage real-time metals data. By utilizing the Metals-API, developers can access a wealth of information that can inform trading strategies and investment decisions.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data on various metals, including gold, silver, platinum, and palladium. This API empowers developers to create applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. With its innovative features, the Metals-API is transforming how developers interact with precious metals data.
For more information, visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, each providing unique functionalities that can be leveraged for various applications. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes, ensuring you have the most current data at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This feature is particularly useful for analyzing trends over time and making informed decisions based on past performance.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing traders to understand market dynamics and make timely decisions.
- Convert Endpoint: This endpoint enables currency conversion between different metals and USD, making it easy to calculate the value of your investments.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, providing insights into price movements over specific periods.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, helping traders identify patterns and make predictions.
- Carat Endpoint: Retrieve gold rates by carat, allowing for precise calculations based on the quality of gold being traded.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, which can be critical for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, providing a comprehensive view of market activity.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those interested in long-term trends.
- API Key: Your unique API key is essential for accessing the API and should be included in every request.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency across data retrieval.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals.
- Gold Price India Endpoint: Specifically designed to retrieve the latest gold prices in India, this endpoint is invaluable for local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context for 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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1757689243,
"base": "USD",
"date": "2025-09-12",
"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 the success of the request and provides the latest exchange rates for various metals, including gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1757602843,
"base": "USD",
"date": "2025-09-11",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date, allowing traders to analyze past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-09-05",
"end_date": "2025-09-12",
"base": "USD",
"rates": {
"2025-09-05": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-07": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-12": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily historical rates for a specified time period, which is invaluable for trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1757689243,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates how to convert an amount from USD to gold (XAU), providing the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-05",
"end_date": "2025-09-12",
"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 allows users to track fluctuations in metal prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1757689243,
"base": "USD",
"date": "2025-09-12",
"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 comprehensive OHLC data, essential for traders looking to analyze market trends and make informed decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1757689243,
"base": "USD",
"date": "2025-09-12",
"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 current bid and ask prices, which are crucial for traders looking to execute timely trades.
Conclusion
The Metals-API is an invaluable resource for developers and traders interested in precious metals, particularly gold. By providing access to real-time and historical data, the API empowers users to make informed decisions based on accurate market insights. The various endpoints, including the latest rates, historical rates, and fluctuation tracking, offer comprehensive tools for analyzing market trends and optimizing trading strategies.
As the digital transformation of the precious metals market continues, leveraging advanced data solutions like the Metals-API will be essential for staying competitive. For further exploration of the API's capabilities, refer to the Metals-API Documentation and the Metals-API Supported Symbols page. Embrace the future of trading with the power of real-time metals data at your fingertips.