Obtain Pune Gold 24k (PUNE-24k) prices using this API
Introduction
In the world of finance, gold (XAU) has always held a significant position as a precious metal, serving as a hedge against inflation and a safe haven during economic uncertainty. With the rise of digital transformation in the precious metals market, obtaining accurate and real-time gold prices has become essential for traders, investors, and developers alike. This is where the Metals-API comes into play, providing a robust platform for accessing gold prices and other metal data through its innovative API.
About Gold (XAU)
Gold is not just a commodity; it is a symbol of wealth and stability. The digital transformation in the precious metals market has led to the integration of advanced technologies that facilitate trading and investment in gold. Data analytics and market insights derived from real-time data allow investors to make informed decisions, while technology integration in trading platforms enhances user experience and accessibility. The Metals-API Documentation provides developers with the tools to leverage this data for innovative applications.
Digital Asset Solutions
As the financial landscape evolves, digital asset solutions are becoming increasingly important. The Metals-API empowers developers to create applications that can track gold prices, analyze market trends, and even facilitate transactions in real-time. This capability is crucial for businesses looking to integrate precious metals into their offerings or for individuals wanting to stay updated on market fluctuations.
API Description
The Metals-API is a powerful tool that provides real-time and historical data on various metals, including gold (XAU). It allows developers to build next-generation applications that can access up-to-date information on metal prices, enabling them to create innovative solutions for trading, investment, and analysis. The API's capabilities include fetching the latest rates, historical data, and even performing conversions between different metals and currencies.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. For instance, the Latest Rates Endpoint provides real-time exchange rate data, which is updated frequently based on the user's subscription plan. This endpoint is essential for traders who need to make quick decisions based on the most current market data.
Another valuable feature is the Historical Rates Endpoint, which allows users to access historical data dating back to 2019. This is particularly useful for analysts who need to study trends over time and make predictions based on past performance.
The Bid and Ask Endpoint is another powerful feature that provides real-time bid and ask prices for metals. This information is crucial for traders looking to execute orders at the best possible prices.
Additionally, the Convert Endpoint enables users to convert amounts between different metals or currencies, making it easier for businesses to manage transactions involving precious metals.
The Time-Series Endpoint allows users to query daily historical rates between two chosen dates, providing insights into price movements over specific periods. This can help traders identify patterns and make informed decisions.
For those interested in understanding market fluctuations, the Fluctuation Endpoint provides detailed information on how prices change from day to day. This can be invaluable for risk management and strategic planning.
The Carat Endpoint offers information about gold rates by carat, which is essential for jewelers and consumers looking to buy or sell gold jewelry.
Furthermore, the Lowest/Highest Price Endpoint allows users to query the API for the lowest and highest prices within a specified timeframe, helping traders identify potential entry and exit points.
The Open/High/Low/Close (OHLC) Price Endpoint provides comprehensive data on the open, high, low, and close prices for a specific date, which is crucial for technical analysis.
Lastly, the Historical LME Endpoint offers access to historical rates for LME symbols dating back to 2008, providing a wealth of data for those interested in the London Metal Exchange.
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
Latest Rates Endpoint
The Latest Rates Endpoint allows users to get real-time exchange rates for all available metals. Here is an example of a typical response:
{
"success": true,
"timestamp": 1780963753,
"base": "USD",
"date": "2026-06-09",
"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"
}
In this response, the "rates" object contains the current price of various metals, including gold (XAU), expressed in terms of USD per troy ounce.
Historical Rates Endpoint
The Historical Rates Endpoint provides access to historical exchange rates for any date since 1999. Here is an example response:
{
"success": true,
"timestamp": 1780877353,
"base": "USD",
"date": "2026-06-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rates for gold and other metals on a specific date, allowing users to analyze past market behavior.
Time-series Endpoint
The Time-series Endpoint allows users to get exchange rates for a specific time period. Here is an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-06-02",
"end_date": "2026-06-09",
"base": "USD",
"rates": {
"2026-06-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for traders looking to analyze trends over a specific period, as it provides daily rates for the selected dates.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here is an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1780963753,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD is equivalent to 0.482 troy ounces of gold, providing a straightforward conversion for users.
Fluctuation Endpoint
The Fluctuation Endpoint tracks rate fluctuations between two dates. Here is an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-02",
"end_date": "2026-06-09",
"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 provides insights into how prices have changed over a specified period, which is crucial for traders looking to understand market dynamics.
OHLC (Open/High/Low/Close) Endpoint
The OHLC Endpoint provides data for a specific time period. Here is an example response:
{
"success": true,
"timestamp": 1780963753,
"base": "USD",
"date": "2026-06-09",
"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"
}
This response provides a comprehensive overview of the price movements for gold and other metals, which is essential for technical analysis.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here is an example response:
{
"success": true,
"timestamp": 1780963753,
"base": "USD",
"date": "2026-06-09",
"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 is crucial for traders who need to know the current market conditions and the spread between buying and selling prices.
Conclusion
The Metals-API is a transformative tool for anyone involved in the precious metals market, particularly for gold (XAU). With its comprehensive range of endpoints, developers can access real-time and historical data, enabling them to create innovative applications that enhance trading and investment strategies. By leveraging the capabilities of the Metals-API, users can gain valuable insights into market trends, make informed decisions, and optimize their trading strategies.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation. Don't forget to check the Metals-API Supported Symbols page to familiarize yourself with the available metal symbols.