Step-by-Step Guide to Get Pune Gold 22k (PUNE-22k) Historical Prices using this API
Step-by-Step Guide to Get Pune Gold 22k (PUNE-22k) Historical Prices using this API
In today's digital age, accessing historical prices for precious metals like Gold (XAU) has become increasingly important for investors, traders, and developers alike. This guide will walk you through the process of obtaining historical prices for Pune Gold 22k (PUNE-22k) using the Metals-API. With its robust features and real-time data capabilities, Metals-API empowers developers to create innovative applications that leverage historical and current market insights.
About Gold (XAU)
Gold has long been a symbol of wealth and stability. In recent years, the digital transformation in precious metals trading has revolutionized how investors approach the market. With the integration of data analytics and technology, traders can now access real-time insights that were previously unavailable. The emergence of digital asset solutions has further enhanced the trading landscape, allowing for more efficient price discovery and investment strategies.
As a developer, understanding how to access and utilize this data can provide a significant advantage. The Metals-API offers a comprehensive suite of tools that enable you to retrieve historical prices, analyze market trends, and make informed decisions based on accurate data. Whether you are building a trading application or conducting market research, the Metals-API is an invaluable resource.
API Description
The Metals-API is a powerful JSON API that provides access to real-time and historical prices for various metals, including Gold, Silver, Platinum, and Palladium. This API is designed for developers looking to integrate metals pricing data into their applications seamlessly. With its innovative features, Metals-API allows for the development of next-generation applications that can analyze and visualize market trends effectively.
One of the key advantages of using Metals-API is its ability to deliver real-time data updates, ensuring that you always have the most current information at your fingertips. This capability is crucial for making timely trading decisions and understanding market fluctuations.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the most significant features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides 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 monitor price changes closely.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve past prices for Gold and other metals, allowing for comprehensive market analysis.
- Bid And Ask Endpoint: This feature enables you to retrieve real-time Bid and Ask prices, which are crucial for understanding market liquidity and making informed trading decisions.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing you to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for analyzing trends over specific periods.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis. This feature helps traders understand volatility and make strategic decisions.
- Carat Endpoint: Get information about Gold rates by Carat. This endpoint is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows you to get the open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for understanding long-term trends in the metals market.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates delivered by the Metals-API are relative to USD by default, and all data is returned in a structured JSON format.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring you have the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you 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
Understanding the structure of API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1771114883,
"base": "USD",
"date": "2026-02-15",
"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": 1771028483,
"base": "USD",
"date": "2026-02-14",
"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-02-08",
"end_date": "2026-02-15",
"base": "USD",
"rates": {
"2026-02-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-15": {
"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": 1771114883,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-08",
"end_date": "2026-02-15",
"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) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1771114883,
"base": "USD",
"date": "2026-02-15",
"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": 1771114883,
"base": "USD",
"date": "2026-02-15",
"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
In conclusion, the Metals-API provides a comprehensive and powerful tool for developers looking to access historical prices for Gold and other precious metals. By leveraging its various endpoints, you can gain valuable insights into market trends, perform detailed analyses, and build innovative applications that cater to the needs of traders and investors.
Whether you are interested in real-time data, historical rates, or advanced features like fluctuation tracking and OHLC data, the Metals-API has you covered. To get started, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementation.
For a complete list of supported symbols, check out the Metals-API Supported Symbols page. With the right tools and knowledge, you can harness the power of real-time metals data to make informed trading decisions and stay ahead in the dynamic world of precious metals.