Access Pune Silver (PUNE-XAG) API Documentation for JSON Format
Access Pune Silver (PUNE-XAG) API Documentation for JSON Format
In the ever-evolving landscape of metals trading, the ability to access real-time data is crucial for developers and businesses alike. The Metals-API provides a robust solution for retrieving exchange rates for precious metals, including Silver (XAG) and Gold (XAU), in a convenient JSON format. This blog post will delve into the capabilities of the Metals-API, focusing on how to effectively retrieve Gold (XAU) exchange rates, along with sample API responses and integration tips that can enhance your applications.
About Silver (XAG)
Silver, known by its chemical symbol XAG, is not only a precious metal but also a vital component in various industrial applications. Its unique properties make it indispensable in sectors such as electronics, solar energy, and medical technology. The integration of technology in manufacturing processes has led to innovations that enhance the efficiency of silver usage, while digital market analysis tools provide insights into price trends and market dynamics.
As the demand for smart manufacturing grows, the role of Silver in supply chain technology becomes increasingly significant. The Metals-API empowers developers to tap into real-time data, enabling them to create applications that can analyze market trends, optimize manufacturing processes, and improve decision-making in trading environments.
API Description
The Metals-API is designed to provide developers with access to real-time and historical data on precious metals. By leveraging this API, developers can build next-generation applications that require accurate and timely metals data. The API supports various endpoints that allow users to retrieve the latest rates, historical data, and even perform conversions between different metals and currencies.
For more detailed information, you can visit the Metals-API Documentation. This resource outlines the full capabilities of the API, including how to authenticate requests and handle responses effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each serving a unique purpose. 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 your plan, you can receive updates every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019. By appending a specific date (YYYY-MM-DD) to your request, you can retrieve past rates for analysis.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for various metals, providing insights into market conditions.
- Convert Endpoint: Easily convert amounts between different metals or from/to USD. This endpoint simplifies the process of calculating equivalent values across different currencies.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Retrieve information on how metal prices fluctuate on a day-to-day basis, which is essential for understanding market volatility.
- Carat Endpoint: Get information about Gold rates by carat, which is particularly useful for jewelers and consumers interested in gold quality.
- Lowest/Highest Price Endpoint: Query the API to find the lowest and highest prices for a specified date, helping traders make informed decisions.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the 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, which is crucial for comprehensive market analysis.
- API Key: Your unique API key is required to authenticate requests, ensuring secure access to the API.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, ensuring you have the latest information.
For a complete list of all supported symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Latest Rates Endpoint
To retrieve real-time exchange rates for all available metals, you can use the Latest Rates Endpoint. Below is an example of a typical response:
{
"success": true,
"timestamp": 1785168485,
"base": "USD",
"date": "2026-07-27",
"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
Accessing historical exchange rates is straightforward. Here’s an example response for a specific date:
{
"success": true,
"timestamp": 1785082085,
"base": "USD",
"date": "2026-07-26",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
The Time-series Endpoint allows you to get exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-07-20",
"end_date": "2026-07-27",
"base": "USD",
"rates": {
"2026-07-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-27": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
To convert any amount from one metal to another or to/from USD, you can use the Convert Endpoint. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1785168485,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates using the Fluctuation Endpoint. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-20",
"end_date": "2026-07-27",
"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
To get OHLC data for a specific time period, you can use the following endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1785168485,
"base": "USD",
"date": "2026-07-27",
"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
To get current bid and ask prices for metals, use the Bid/Ask Endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1785168485,
"base": "USD",
"date": "2026-07-27",
"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
The Metals-API offers a comprehensive solution for developers looking to integrate real-time and historical data on precious metals, including Gold (XAU) and Silver (XAG). By utilizing the various endpoints, developers can create applications that not only track current market conditions but also analyze historical trends and fluctuations. The ability to convert between different metals and currencies further enhances the API's utility.
For those interested in exploring the full capabilities of the API, I encourage you to visit the Metals-API Website and check out the Metals-API Documentation for detailed information on implementation and usage. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of all available symbols, ensuring you have the necessary data at your fingertips.
By leveraging the power of the Metals-API, developers can unlock new possibilities in the realm of metals trading, making informed decisions based on accurate and timely data. Whether you are building a trading platform, a market analysis tool, or a smart manufacturing application, the Metals-API is an invaluable resource that can enhance your projects significantly.