Get Chandigarh Gold 22k (CHAN-22k) rates using this API

Introduction
In the world of precious metals trading, having access to real-time data is crucial for making informed decisions. For developers looking to integrate gold pricing into their applications, the Metals-API offers a powerful solution. This blog post will delve into the Chandigarh Gold 22k (CHAN-22k) rates, exploring how the Metals-API works, its key features, and how it can empower developers to build next-generation applications in the precious metals market.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a symbol of wealth and stability. As digital transformation sweeps across various industries, the precious metals market is no exception. The integration of data analytics and technology in trading has revolutionized how investors and traders interact with gold and other metals.
With the rise of digital asset solutions, the demand for accurate and timely market insights has never been higher. The Metals-API provides developers with the tools needed to innovate in price discovery, enabling them to create applications that offer real-time gold pricing, historical data analysis, and much more.
API Description
The Metals-API is a robust platform that provides real-time and historical data for various metals, including gold, silver, platinum, and palladium. It empowers developers to build applications that require accurate metal pricing and conversion capabilities. By leveraging the API, developers can access a wealth of information that can enhance their applications and provide users with valuable insights.
For more information, visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs within the precious metals market. 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. Developers can easily integrate this feature to display the latest gold prices in their applications.
- Historical Rates Endpoint: Access historical rates dating back to 2019. This feature allows developers to analyze trends and make informed decisions based on past performance.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals. This is essential for traders looking to make quick decisions based on market fluctuations.
- Convert Endpoint: This endpoint allows for currency conversion between metals and fiat currencies, making it easy to calculate the value of gold in different currencies.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data presentation.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring developers have access to the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price specifically for India, catering to a significant market segment.
- News Endpoint: Access the latest news articles related to various metals, keeping users informed about market developments.
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.
API Endpoint Examples and Responses
Understanding the API's response structure 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": 1748595615,
"base": "USD",
"date": "2025-05-30",
"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 that the current price of gold (XAU) is 0.000482 per troy ounce, relative to USD.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1748509215,
"base": "USD",
"date": "2025-05-29",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical rate for gold on May 29, 2025, allowing developers to analyze past market behavior.
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2025-05-23",
"end_date": "2025-05-30",
"base": "USD",
"rates": {
"2025-05-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-30": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, enabling trend analysis.
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": 1748595615,
"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 mechanism.
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-23",
"end_date": "2025-05-30",
"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 gold prices have changed over a specified period, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1748595615,
"base": "USD",
"date": "2025-05-30",
"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 the open, high, low, and close prices for gold, silver, and platinum, which are critical for technical analysis and trading strategies.
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1748595615,
"base": "USD",
"date": "2025-05-30",
"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 response provides the current bid and ask prices for gold, silver, and platinum, which are essential for traders looking to execute orders effectively.
Conclusion
The Metals-API is a powerful tool for developers looking to integrate precious metals data into their applications. With features like real-time rates, historical data, and various conversion capabilities, it provides a comprehensive solution for accessing gold pricing and other metal information. By leveraging the API, developers can create innovative applications that enhance user experience and provide valuable insights into the precious metals market.
For more detailed information on how to implement these features, refer to the Metals-API Documentation. Additionally, for a complete list of supported symbols, visit the Metals-API Supported Symbols page. The potential for innovation in the precious metals market is vast, and with the right tools, developers can lead the way in this evolving landscape.