Retrieve Chandigarh Gold 22k (CHAN-22k) prices with our API integration

Introduction
In the rapidly evolving landscape of precious metals trading, the ability to retrieve real-time data is paramount for developers and traders alike. One of the most sought-after commodities is Gold, represented by the symbol XAU. With our innovative Metals-API, you can seamlessly integrate Gold 22k (CHAN-22k) prices into your applications, enabling you to harness the power of real-time market data. This blog post delves into the intricacies of the Metals-API, its capabilities, and how it can transform your approach to trading and data analytics in the precious metals market.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a critical asset in financial markets. The digital transformation in precious metals trading has opened new avenues for data analytics and market insights. With the integration of technology, traders can now access real-time data, allowing for informed decision-making and innovative price discovery methods.
The Metals-API serves as a bridge between developers and the dynamic world of precious metals. By providing real-time data, it empowers developers to build next-generation applications that can analyze trends, predict market movements, and offer digital asset solutions. The API's capabilities extend beyond mere price retrieval; it offers a comprehensive suite of tools for data analysis, historical trends, and market fluctuations.
API Description
The Metals-API is designed to provide developers with a robust framework for accessing real-time metals data. Its innovative architecture allows for seamless integration into various applications, enabling users to retrieve and manipulate data effortlessly. The API supports multiple endpoints, each tailored to meet specific needs, from retrieving the latest rates to accessing historical data.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rates updated at intervals based on your subscription plan. This means that whether you require data every minute or every hour, the API can accommodate your needs. Additionally, the API's historical rates feature allows users to access data dating back to 2019, providing a rich dataset for analysis.
For developers looking to build applications that require currency conversion, the Metals-API offers a dedicated endpoint that simplifies the process of converting amounts between different metals and currencies. This flexibility is essential for applications that cater to a global audience.
For more detailed information, you can refer to 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, each designed to cater to different aspects of metals trading. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint is a powerful feature that allows users to retrieve real-time exchange rate data for various metals. Depending on your subscription plan, this endpoint can return data updated every 60 minutes, every 10 minutes, or even more frequently. This ensures that traders have access to the most current market information, which is crucial for making informed trading decisions.
{
"success": true,
"timestamp": 1753920790,
"base": "USD",
"date": "2025-07-31",
"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
The Historical Rates Endpoint provides access to historical exchange rates for most currencies dating back to 2019. This feature is invaluable for traders looking to analyze past market trends and make predictions based on historical data. By appending a specific date to your query, you can retrieve rates for that particular day, allowing for detailed analysis.
{
"success": true,
"timestamp": 1753834390,
"base": "USD",
"date": "2025-07-30",
"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 users to retrieve real-time bid and ask prices for various metals. This information is crucial for traders who need to understand the market dynamics and make timely decisions. The bid price represents the highest price a buyer is willing to pay, while the ask price is the lowest price a seller is willing to accept.
{
"success": true,
"timestamp": 1753920790,
"base": "USD",
"date": "2025-07-31",
"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 applications that require currency conversion for different metals. By specifying the amount and the metals involved, developers can easily integrate this functionality into their applications.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1753920790,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is essential for traders who want to analyze trends over a specific period. By retrieving time-series data, developers can create visualizations and reports that highlight market movements.
{
"success": true,
"timeseries": true,
"start_date": "2025-07-24",
"end_date": "2025-07-31",
"base": "USD",
"rates": {
"2025-07-24": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-26": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-31": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This feature is particularly useful for traders who want to track market volatility and make informed decisions based on price changes. By specifying a date range, users can analyze fluctuations over time.
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-24",
"end_date": "2025-07-31",
"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"
}
Carat Endpoint
The Carat Endpoint allows users to retrieve information about Gold rates by Carat. This feature is particularly useful for jewelers and traders who deal with different carat values. By appending a base value, users can easily access the relevant data for their specific needs.
{
"success": true,
"timestamp": 1753920790,
"base": "XAU",
"date": "2025-07-31",
"rates": {
"22k": 0.000482,
"18k": 0.0004,
"14k": 0.00033
},
"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 feature is essential for traders looking to identify market extremes and make strategic decisions based on price movements.
{
"success": true,
"timestamp": 1753920790,
"base": "USD",
"date": "2025-07-31",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
},
"XAG": {
"lowest": 0.0381,
"highest": 0.0383
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The Open/High/Low/Close (OHLC) Price Endpoint allows users to query the API to get the open, high, low, and close prices for a specific time period. This feature is crucial for traders who want to analyze market trends and make informed decisions based on price movements.
{
"success": true,
"timestamp": 1753920790,
"base": "USD",
"date": "2025-07-31",
"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
}
},
"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 traders who want to analyze historical data specific to the London Metal Exchange.
{
"success": true,
"timestamp": 1753834390,
"base": "USD",
"date": "2025-07-30",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
API Key and Response
Your API Key is the unique key that is passed into the API base URL's access_key parameter. This key is essential for authenticating your requests and ensuring that you have access to the data you need. The API responses are delivered in JSON format, with exchange rates typically relative to USD. All data is returned in a structured format, making it easy to parse and utilize in your applications.
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 understand the full scope of available data and how to implement it in their applications.
Conclusion
In conclusion, the Metals-API offers a robust and flexible solution for developers looking to integrate real-time precious metals data into their applications. With features such as the Latest Rates Endpoint, Historical Rates Endpoint, and various conversion tools, the API empowers users to make informed trading decisions based on accurate and timely data. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance the trading experience and provide valuable insights into the precious metals market.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the extensive documentation available. Whether you are a seasoned trader or a developer looking to build the next big thing in precious metals trading, the Metals-API is your gateway to success.