Retrieve Pune Gold 24k (PUNE-24k) Historical Prices via this API

Retrieve Pune Gold 24k (PUNE-24k) Historical Prices via this API
In the ever-evolving landscape of precious metals trading, the ability to access historical prices for gold, particularly in the context of Pune's market, is crucial for investors, traders, and analysts alike. The Metals-API provides a powerful solution for retrieving historical prices, including the 24k gold rates in Pune (PUNE-24k). This blog post delves into the capabilities of the Metals-API, exploring how developers can leverage its features to gain insights into gold pricing trends and make informed trading decisions.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of the global financial system. Its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. As digital transformation sweeps across industries, the precious metals market is not left behind. The integration of data analytics and technology in trading has revolutionized how investors approach gold trading.
With the rise of digital asset solutions, traders can now access real-time data and historical trends at their fingertips. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to build next-generation applications that can analyze market trends, optimize trading strategies, and enhance price discovery.
API Description
The Metals-API is a comprehensive JSON API that provides access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. Its capabilities are designed to empower developers to create applications that can analyze and visualize metal prices effectively. With a focus on innovation and technological advancement, the Metals-API enables users to harness the power of real-time data to make informed decisions.
For developers looking to integrate precious metals data into their applications, the Metals-API offers a range of endpoints that cater to different needs. From retrieving the latest rates to accessing historical data, the API provides a robust framework for building applications that can adapt to the dynamic nature of the metals market.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability for developers:
- 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 need to stay updated on the latest market movements.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, users can retrieve past gold prices, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another, facilitating seamless transactions across different markets.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, allowing for comprehensive 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: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides 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, providing a broader context for market analysis.
- API Key: Each user is assigned a unique API key, which is passed into the API base URL's access_key parameter to authenticate requests.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API offers a comprehensive list of endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest market symbols.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly relevant for local traders.
- News Endpoint: Stay informed 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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for effective integration. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1751223611,
"base": "USD",
"date": "2025-06-29",
"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"
}
The above response indicates a successful request for the latest rates, with the base currency set to USD. The rates for various metals, including gold (XAU), are provided per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1751137211,
"base": "USD",
"date": "2025-06-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to analyze past pricing trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-22",
"end_date": "2025-06-29",
"base": "USD",
"rates": {
"2025-06-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-29": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates over a specified period, enabling users to track price movements and identify trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1751223611,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates the conversion of an amount from USD to gold (XAU), providing the equivalent in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-22",
"end_date": "2025-06-29",
"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 tracks rate fluctuations between two dates, providing insights into market volatility and trends.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1751223611,
"base": "USD",
"date": "2025-06-29",
"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"
}
The OHLC response provides essential data for technical analysis, allowing traders to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1751223611,
"base": "USD",
"date": "2025-06-29",
"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 for metals, essential for traders looking to execute orders effectively.
Conclusion
The Metals-API is a powerful tool for developers seeking to integrate precious metals data into their applications. With its extensive range of endpoints, including the ability to retrieve historical prices for gold in Pune (PUNE-24k), the API empowers users to make informed trading decisions based on real-time and historical data.
By leveraging the capabilities of the Metals-API, developers can create applications that not only track current market trends but also analyze past performance, providing valuable insights into pricing dynamics. Whether you are a trader, analyst, or developer, the Metals-API offers the tools necessary to navigate the complexities of the precious metals market.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation for detailed guidance on implementation, or explore the Metals-API Supported Symbols page to familiarize yourself with the available metal symbols. To access the API and begin your journey into the world of precious metals data, head over to the Metals-API Website.