Get Pune Gold 24k (PUNE-24k) Historical Prices in JSON Format using this API

Get Pune Gold 24k (PUNE-24k) Historical Prices in JSON Format using this API
In the ever-evolving landscape of precious metals trading, accessing accurate and timely data is paramount for developers and traders alike. The Metals-API provides a robust solution for obtaining historical prices of gold, specifically the Pune Gold 24k (PUNE-24k), in a convenient JSON format. This blog post delves into the intricacies of the Metals-API, exploring its capabilities, features, and how developers can leverage it to gain insights into gold pricing trends.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As a precious metal, it plays a critical role in various industries, from jewelry to electronics. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. With the integration of technology in trading, investors can now access real-time data, enhancing their decision-making processes.
Data analytics has become a vital tool for understanding market trends and price movements. By utilizing the Metals-API, developers can harness the power of real-time data to build applications that provide innovative solutions for price discovery and trading strategies. The API empowers users to analyze historical data, track fluctuations, and make informed decisions based on comprehensive market insights.
API Description
The Metals-API is a powerful tool designed for developers seeking to integrate metals pricing data into their applications. With a focus on innovation and technological advancement, the API offers a range of features that enable users to access real-time and historical data for various metals, including gold, silver, platinum, and palladium.
One of the standout features of the Metals-API is its ability to provide historical prices dating back to 2019. This capability allows developers to query the API for specific dates, enabling them to analyze trends over time. The API's response is delivered in a user-friendly JSON format, making it easy to integrate into applications.
For comprehensive documentation on how to utilize the API, developers can refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or every 10 minutes. This feature is crucial for traders who need the most current pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical data for analysis.
- 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 API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, which is essential for understanding market volatility.
- Carat Endpoint: This endpoint provides information about gold rates by carat, allowing users to access detailed pricing based on purity.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, which can be useful for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows users to get the 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, which is particularly useful for traders focused on industrial metals.
- API Key: Each user is assigned a unique API key, which is required for authentication when making requests to the API.
- API Response: Exchange rates delivered by the Metals-API are relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The API offers a comprehensive list of endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- Gold Price India Endpoint: Retrieve the latest gold price in India using the dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: Stay informed with the latest news articles related to various metals, helping users keep abreast of market developments.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Here are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1748062933,
"base": "USD",
"date": "2025-05-24",
"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 response includes a success flag, a timestamp, the base currency, the date of the rates, and a rates object containing the current prices for various metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1747976533,
"base": "USD",
"date": "2025-05-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint provides historical rates for a specified date, allowing developers to analyze past pricing trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-17",
"end_date": "2025-05-24",
"base": "USD",
"rates": {
"2025-05-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows users to retrieve rates for a specific period, facilitating trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1748062933,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint is particularly useful for users looking to convert amounts between different metals or currencies, streamlining transactions.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-17",
"end_date": "2025-05-24",
"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"
}
Tracking fluctuations is essential for traders looking to capitalize on market movements. This endpoint provides valuable insights into price changes over time.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1748062933,
"base": "USD",
"date": "2025-05-24",
"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 endpoint provides a comprehensive view of market activity, allowing traders to assess performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1748062933,
"base": "USD",
"date": "2025-05-24",
"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 endpoint provides current bid and ask prices, which are essential for understanding market liquidity and making informed trading decisions.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for developers looking to access historical prices and real-time data for precious metals like gold. By leveraging the various endpoints, developers can create innovative applications that provide valuable insights into market trends and pricing dynamics. The ability to retrieve data in JSON format simplifies integration and enhances the overall user experience.
For more information on the capabilities of the Metals-API, including detailed documentation and a complete list of supported symbols, visit the Metals-API Documentation and the Metals-API Supported Symbols page. By utilizing these resources, developers can unlock the full potential of the Metals-API and transform their approach to precious metals trading.