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

Introduction
In the ever-evolving landscape of precious metals trading, the demand for accurate and real-time pricing information has never been more critical. For developers and traders alike, having access to reliable data is essential for making informed decisions. This is where the Metals-API comes into play, offering a comprehensive solution for retrieving gold pricing information, specifically for Chandigarh Gold 22k (CHAN-22k). In this blog post, we will explore the intricacies of the Metals-API, its capabilities, and how it can empower developers to create innovative applications that leverage real-time metals data.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As digital transformation sweeps across various industries, the precious metals market is no exception. The integration of technology in trading has led to enhanced data analytics and market insights, allowing traders to make more informed decisions. With the rise of digital asset solutions, gold trading is becoming increasingly accessible, and the need for accurate price discovery is paramount.
The Metals-API plays a crucial role in this transformation, providing developers with the tools necessary to access real-time gold pricing data. By utilizing advanced data analytics, traders can gain insights into market trends, fluctuations, and historical performance, enabling them to strategize effectively.
API Description
The Metals-API is a powerful tool designed to deliver real-time and historical pricing data for various metals, including gold, silver, platinum, and palladium. Its capabilities extend beyond mere price retrieval; it empowers developers to build next-generation applications that can analyze and visualize metals data in innovative ways. The API is designed with a focus on technological advancement, ensuring that users can access the most accurate and up-to-date information available.
For more information, you can 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, allowing developers to access a wealth of information. 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. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This feature is invaluable for analyzing trends over time.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices, which are crucial for traders looking to make informed buying or selling decisions.
- Convert Endpoint: This endpoint allows for seamless conversion between different metals and currencies, making it easy to manage transactions across various platforms.
- Time-Series Endpoint: Query the API for daily historical rates between two dates, enabling in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve 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 find the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Get comprehensive OHLC data for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market performance.
- API Key: Your unique API key is essential for accessing the API and should be included in the base URL's access_key parameter.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency across all data returned.
- Available Endpoints: The Metals-API offers a wide range of endpoints, each designed to provide specific functionalities.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, ensuring you have the latest information at your fingertips.
- Gold Price India Endpoint: Specifically designed to retrieve the latest gold prices in India, this endpoint is invaluable for local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping you stay informed about market trends.
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 responses is crucial for effective implementation. Below are examples of various endpoints, showcasing their functionality and the structure of their responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1752076823,
"base": "USD",
"date": "2025-07-09",
"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"
}
In this response, the rates
object contains the current exchange rates for various metals, with XAU
representing gold.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1751990423,
"base": "USD",
"date": "2025-07-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates, allowing developers to analyze past performance and trends.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2025-07-02",
"end_date": "2025-07-09",
"base": "USD",
"rates": {
"2025-07-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows for detailed analysis of price movements over a specified period, which is essential for traders looking to identify trends.
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": 1752076823,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint simplifies the conversion process, allowing users to easily manage transactions across different metals and currencies.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-02",
"end_date": "2025-07-09",
"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 market volatility, helping traders make informed decisions based on price changes.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1752076823,
"base": "USD",
"date": "2025-07-09",
"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"
}
OHLC data is essential for technical analysis, allowing traders to assess market performance over specific periods.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1752076823,
"base": "USD",
"date": "2025-07-09",
"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 traders looking to execute trades at optimal prices, providing real-time market data.
Conclusion
The Metals-API is a transformative tool for developers and traders in the precious metals market. By providing real-time and historical pricing data, it empowers users to make informed decisions based on accurate information. The various endpoints, including the latest rates, historical rates, and conversion capabilities, offer a comprehensive suite of features that cater to the needs of modern traders.
As the market continues to evolve, the integration of technology and data analytics will play a pivotal role in shaping the future of precious metals trading. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance trading strategies and provide valuable insights into market trends.
For further exploration of the API's capabilities, visit the Metals-API Documentation and discover the full range of features available. Whether you're looking to access real-time data or analyze historical trends, the Metals-API is your go-to solution for all things related to precious metals.