Fetch Patna Gold 22k (PATN-22k) prices through this API

Fetch Patna Gold 22k (PATN-22k) Prices Through This API
In the ever-evolving landscape of precious metals trading, the ability to access real-time data is paramount for developers and traders alike. The Metals-API provides a robust solution for fetching the latest prices of various metals, including the highly sought-after Patna Gold 22k (PATN-22k). This blog post delves into the intricacies of the Metals-API, exploring its capabilities, features, and how it can empower developers to create innovative applications in the precious metals market.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. With the digital transformation sweeping through financial markets, the integration of data analytics and technology in trading has become essential. The Metals-API stands at the forefront of this transformation, offering developers access to real-time gold prices, historical data, and advanced analytics.
As the demand for digital asset solutions grows, the ability to discover prices innovatively is crucial. The Metals-API not only provides current gold prices but also offers insights into market trends, enabling traders to make informed decisions. The API's capabilities extend beyond mere price fetching; it empowers developers to build applications that can analyze market fluctuations, track historical data, and even convert between different metal values.
API Description
The Metals-API is designed to deliver real-time metals data with a focus on innovation and technological advancement. By leveraging this API, developers can create next-generation applications that cater to the needs of traders and investors in the precious metals market. The API provides a comprehensive suite of features, including endpoints for fetching the latest rates, historical data, and even bid and ask prices.
For more detailed information, developers can refer to the Metals-API Documentation, which outlines the various functionalities and how to implement them effectively. The API is structured to support a wide range of symbols, including gold, silver, platinum, and palladium, making it a versatile tool for any developer in the field.
Key Features and Endpoints
The Metals-API offers a plethora of features that cater to various use cases in the precious metals market. Here are some of the key endpoints and their functionalities:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on the user's subscription plan. Developers can access the latest gold prices, including Patna Gold 22k, with just a simple API call.
- Historical Rates Endpoint: For those interested in analyzing trends over time, the historical rates endpoint allows users to query data dating back to 2019. This feature is invaluable for traders looking to understand market movements.
- Bid And Ask Endpoint: This powerful feature enables developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion feature allows users to convert any amount from one metal to another or to/from USD, facilitating seamless transactions and calculations.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two chosen dates, making it easier to analyze price movements over specific periods.
- Fluctuation Endpoint: Developers can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is particularly useful for jewelers and traders dealing in various gold purities.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specific date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides comprehensive data on the open, high, low, and close prices for metals, essential for traders looking to analyze market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for in-depth analysis of market trends.
- API Key: Each user is provided with a unique API key, which is essential for authentication and accessing the API's features.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency and ease of use for developers.
- Available Endpoints: The Metals-API offers a wide range of endpoints, each designed to provide specific functionalities tailored to the needs of developers.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, ensuring developers have access to the most up-to-date information.
- Gold Price India Endpoint: Specifically designed for the Indian market, this endpoint retrieves the latest gold prices in India, including Patna Gold 22k.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market movements.
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 various metals into their applications.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective implementation. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1752987619,
"base": "USD",
"date": "2025-07-20",
"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"
}
The response indicates a successful request, providing the latest exchange rates for various metals, including gold (XAU). The timestamp and base currency (USD) are also included for clarity.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1752901219,
"base": "USD",
"date": "2025-07-19",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows users to access historical rates, providing valuable insights into past market performance. The response includes the date and rates for various metals.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-13",
"end_date": "2025-07-20",
"base": "USD",
"rates": {
"2025-07-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-20": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint provides a detailed view of exchange rates over a specified period, allowing for comprehensive analysis of trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1752987619,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint is particularly useful for developers needing to convert amounts between different metals or currencies. The response includes the conversion rate and the resulting amount in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-13",
"end_date": "2025-07-20",
"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"
}
The fluctuation endpoint provides insights into how metal prices change over time, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1752987619,
"base": "USD",
"date": "2025-07-20",
"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 endpoint provides critical data for traders, allowing them to analyze market performance based on the open, high, low, and close prices for a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1752987619,
"base": "USD",
"date": "2025-07-20",
"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"
}
The bid/ask endpoint is crucial for understanding market liquidity, providing insights into the current buying and selling prices for metals.
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time data on precious metals, including Patna Gold 22k (PATN-22k). With its extensive range of features and endpoints, the API empowers users to build innovative applications that can analyze market trends, track historical data, and facilitate seamless transactions.
By leveraging the capabilities of the Metals-API, developers can create solutions that enhance trading strategies, improve decision-making, and ultimately drive success in the precious metals market. For more information on how to get started, visit the Metals-API Website and explore the comprehensive Metals-API Documentation for detailed guidance on implementation.