Access Patna Gold 24k (PATN-24k) prices using this API for your application
Access Patna Gold 24k (PATN-24k) Prices Using This API for Your Application
In the ever-evolving landscape of precious metals trading, the ability to access real-time data is paramount for developers and businesses alike. The Metals-API provides a robust solution for accessing gold prices, including Patna Gold 24k (PATN-24k), and other metals through a comprehensive API. This blog post delves into the capabilities of the Metals-API, focusing on how it empowers developers to integrate precious metals data into their applications, enhancing decision-making and trading strategies.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. As the world shifts towards digital transformation, the precious metals market is also experiencing significant changes. The integration of data analytics and technology into trading practices is revolutionizing how investors interact with gold and other metals.
With the rise of digital asset solutions, traders can now leverage real-time data to make informed decisions. The Metals-API plays a crucial role in this transformation by providing developers with the tools necessary to access market insights and analytics. By utilizing the API, developers can create applications that not only track gold prices but also analyze trends, fluctuations, and historical data, allowing for innovative price discovery methods.
API Description
The Metals-API is a powerful tool designed for developers seeking to integrate real-time metals data into their applications. It offers a wide range of features that facilitate the retrieval of current and historical prices for various metals, including gold, silver, platinum, and palladium. The API's capabilities extend beyond mere price retrieval; it empowers developers to build next-generation applications that can analyze and visualize market data effectively.
For more detailed information, you can visit the Metals-API Documentation, which provides comprehensive guidance on how to utilize the API effectively.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated every 60 minutes or more frequently depending on your subscription plan. It allows developers to access the most current prices for gold and other metals.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to the API call, developers can retrieve past prices, enabling trend analysis and historical comparisons.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: This endpoint facilitates currency conversion, allowing developers to convert amounts from one metal to another or to/from USD, enhancing the flexibility of applications.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates, which is invaluable for analyzing price movements over time.
- Fluctuation Endpoint: This feature tracks how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and consumers interested in specific gold purities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is crucial for traders looking to analyze market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is provided with a unique API key, which is essential for authenticating requests to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers 14 different endpoints, each tailored to specific functionalities, ensuring comprehensive coverage of user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring developers have access to the latest data.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market trends and events.
For a complete list of supported symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1761706849,
"base": "USD",
"date": "2025-10-29",
"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"
}
This response indicates a successful request, providing the latest exchange rates for various metals relative to USD. The "rates" object contains the current price for each metal, which developers can utilize in their applications.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1761620449,
"base": "USD",
"date": "2025-10-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for a specific date. The response includes the date of the rates and the corresponding prices for each metal.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-22",
"end_date": "2025-10-29",
"base": "USD",
"rates": {
"2025-10-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-29": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response allows developers to analyze price movements over a specified period. Each date in the "rates" object provides the corresponding prices for the metals, facilitating trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1761706849,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert a specified amount from one metal to another. In this case, it shows the conversion of 1000 USD to gold (XAU), providing both the conversion rate and the result.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-22",
"end_date": "2025-10-29",
"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 response provides insights into how metal prices have fluctuated over a specified period. The "change" and "change_pct" fields indicate the price movement, which is essential for traders looking to understand market dynamics.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1761706849,
"base": "USD",
"date": "2025-10-29",
"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 critical data for traders, allowing them to analyze price movements within a specific timeframe. This data is essential for making informed trading decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1761706849,
"base": "USD",
"date": "2025-10-29",
"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 the current bid and ask prices for metals, which is crucial for traders looking to execute orders at the best possible prices. The "spread" indicates the difference between the bid and ask prices, providing insights into market liquidity.
Conclusion
The Metals-API is an invaluable resource for developers looking to integrate real-time precious metals data into their applications. By providing access to a wide range of endpoints, including the latest rates, historical data, and conversion capabilities, the API empowers users to make informed trading decisions. The ability to track fluctuations, analyze trends, and access comprehensive market insights positions developers to create innovative solutions in the precious metals space.
For more information on how to get started with the Metals-API, visit the Metals-API Website. Whether you are building a trading platform, a financial analysis tool, or a market insights application, the Metals-API provides the necessary tools to succeed in the dynamic world of precious metals trading.