Fetch Chandigarh Gold 22k (CHAN-22k) price data with this API

Introduction
In today's rapidly evolving financial landscape, the demand for real-time data on precious metals has surged. One of the most sought-after commodities is gold, represented by the symbol XAU. With the advent of advanced technologies, developers can now leverage APIs to access comprehensive market data, enabling them to create innovative applications that cater to the needs of traders and investors alike. This blog post will delve into the capabilities of the Metals-API, focusing on how it empowers users to fetch Chandigarh Gold 22k (CHAN-22k) price data and other essential metrics.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a critical asset in investment portfolios. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. By integrating technology into trading practices, investors can harness real-time data to make informed decisions. The XAU symbol represents gold in the Metals-API, allowing developers to access a wealth of information regarding its market performance.
With the rise of digital asset solutions, the integration of innovative technologies into price discovery processes has become essential. The Metals-API provides developers with the tools to create applications that not only track gold prices but also analyze trends, fluctuations, and historical data. This capability is crucial for traders looking to capitalize on market movements.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data on various metals, including gold, silver, platinum, and palladium. It offers a range of endpoints that cater to different data needs, enabling developers to build next-generation applications that can analyze and visualize metal prices effectively.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This feature ensures that developers have access to the most current information, allowing for timely decision-making in trading environments.
For those interested in historical data, the API provides access to rates dating back to 2019, making it an invaluable resource for trend analysis and market research. Developers can query the API for specific dates or ranges, enabling them to gather insights into price movements over time.
Furthermore, the API's robust architecture supports various endpoints, each designed to fulfill specific data requests. From bid and ask prices to conversion rates and fluctuation tracking, the Metals-API is equipped to handle diverse requirements, making it an essential tool for any developer working in the financial sector.
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
The Latest Rates Endpoint provides real-time exchange rate data for metals, updated based on the user's subscription plan. Depending on the plan, users can receive updates every 60 minutes, every 10 minutes, or even more frequently. This endpoint is crucial for traders who need to stay informed about the latest market conditions.
{
"success": true,
"timestamp": 1761012102,
"base": "USD",
"date": "2025-10-21",
"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 rates is essential for analyzing market trends. The Historical Rates Endpoint allows users to retrieve data for most currencies dating back to 2019. By appending a specific date to the API request, developers can obtain valuable insights into past market performance.
{
"success": true,
"timestamp": 1760925702,
"base": "USD",
"date": "2025-10-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables developers to retrieve real-time bid and ask prices for metals. This information is crucial for traders looking to execute orders at the best possible prices.
{
"success": true,
"timestamp": 1761012102,
"base": "USD",
"date": "2025-10-21",
"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"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1761012102,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows developers to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses of price trends over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2025-10-14",
"end_date": "2025-10-21",
"base": "USD",
"rates": {
"2025-10-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-21": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
Using the Fluctuation Endpoint, developers can retrieve information about how currencies fluctuate on a day-to-day basis. This data is essential for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-14",
"end_date": "2025-10-21",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides developers with the open, high, low, and close prices for a specific time period. This data is crucial for technical analysis and helps traders identify trends and potential entry or exit points.
{
"success": true,
"timestamp": 1761012102,
"base": "USD",
"date": "2025-10-21",
"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"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API to get the lowest and highest price for a specified date. This information is vital for traders looking to understand market extremes and make strategic decisions.
{
"success": true,
"timestamp": 1761012102,
"base": "USD",
"date": "2025-10-21",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
},
"XAG": {
"lowest": 0.0381,
"highest": 0.0383
},
"XPT": {
"lowest": 0.00091,
"highest": 0.000918
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for developers interested in analyzing metals traded on the London Metal Exchange.
{
"success": true,
"timestamp": 1761012102,
"base": "USD",
"date": "2025-10-21",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
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.
Conclusion
The Metals-API represents a significant advancement in the way developers can access and utilize real-time data on precious metals like gold. By leveraging its extensive features, including the Latest Rates, Historical Rates, and various conversion endpoints, developers can create powerful applications that meet the needs of traders and investors.
As the financial landscape continues to evolve, the integration of technology into trading practices will become increasingly important. The Metals-API not only provides access to essential data but also empowers developers to innovate and create solutions that enhance market analysis and decision-making.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation. This resource offers detailed guidance on implementing the API and utilizing its features effectively.
In summary, the Metals-API is a transformative tool for developers in the financial sector, offering a wealth of data and capabilities that can drive innovation and enhance trading strategies. By understanding and utilizing this API, developers can stay ahead in the competitive world of precious metals trading.