Access Pune Gold 18k (PUNE-18k) Historical Prices with this API Guide
Access Pune Gold 18k (PUNE-18k) Historical Prices with this API Guide
In the ever-evolving landscape of precious metals trading, the ability to access historical prices for Gold (XAU) is crucial for developers and traders alike. The Metals-API provides a robust solution for obtaining real-time and historical data on various metals, including Gold. This guide will explore how to leverage the Metals-API to access historical prices for Gold, focusing on its innovative features and capabilities that empower developers to create next-generation applications.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a hedge against inflation, and a store of value. In recent years, the digital transformation in precious metals has opened new avenues for data analytics and market insights. The integration of technology in trading has revolutionized how investors access and interpret market data. With the rise of digital asset solutions, the demand for accurate and timely information has never been greater.
The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to harness real-time metals data. By utilizing advanced data analytics, traders can gain insights into market trends, price movements, and fluctuations, enabling them to make informed decisions. The API's innovative approach to price discovery and its ability to integrate seamlessly with trading platforms make it an invaluable resource for anyone involved in the precious metals market.
API Description
The Metals-API is designed to provide comprehensive access to metals pricing data, including Gold (XAU). With a focus on innovation and technological advancement, the API empowers developers to build applications that can analyze and visualize market data in real-time. The API's capabilities include retrieving the latest rates, historical prices, and various other functionalities that cater to the needs of traders and developers.
For more detailed information, refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities. The API supports a wide range of symbols, including Gold, Silver (XAG), Platinum (XPT), and Palladium (XPD), among others. You can find the complete list of supported symbols on the Metals-API Supported Symbols page.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, each designed to meet specific needs in the realm of metals trading. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for Gold and other metals, updated every 60 minutes or more frequently. This feature is essential for traders who need to stay updated on the latest market conditions.
- Historical Rates Endpoint: Access historical rates for Gold dating back to 2019. By appending a specific date to your query, you can retrieve past prices, which is invaluable for trend analysis and market research.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time Bid and Ask prices for Gold, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling you to convert any amount from one metal to another or to/from USD. This 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 ideal for analyzing price trends over specific periods.
- Fluctuation Endpoint: Retrieve information about how Gold prices fluctuate on a day-to-day basis. This feature helps traders understand volatility and make informed decisions.
- Carat Endpoint: Access information about Gold rates by Carat, allowing for more precise calculations in jewelry and other applications.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price of Gold for a specified date, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for Gold, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 endpoints, each providing different functionalities tailored to the needs of developers and traders.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
API Endpoint Examples and Responses
Understanding the 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": 1763740847,
"base": "USD",
"date": "2025-11-21",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1763654447,
"base": "USD",
"date": "2025-11-20",
"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": "2025-11-14",
"end_date": "2025-11-21",
"base": "USD",
"rates": {
"2025-11-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-21": {
"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": 1763740847,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-14",
"end_date": "2025-11-21",
"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": 1763740847,
"base": "USD",
"date": "2025-11-21",
"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": 1763740847,
"base": "USD",
"date": "2025-11-21",
"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
Accessing historical prices for Gold (XAU) is essential for traders and developers looking to make informed decisions in the precious metals market. The Metals-API provides a comprehensive suite of endpoints that facilitate real-time and historical data retrieval, empowering users to analyze market trends and fluctuations effectively. By leveraging the API's capabilities, developers can create innovative applications that enhance trading strategies and improve market insights.
For further exploration of the API's features, refer to the Metals-API Documentation and discover the full range of supported symbols on the Metals-API Supported Symbols page. With the right tools and data at your disposal, you can navigate the complexities of the precious metals market with confidence.