Retrieve Chandigarh Gold 24k (CHAN-24k) Historical Prices from this API

Retrieve Chandigarh Gold 24k (CHAN-24k) Historical Prices from this API
In today's digital age, the demand for accurate and real-time data has transformed the landscape of precious metals trading. One of the most sought-after metals is gold, particularly in its purest form, 24k gold, represented by the symbol XAU. This blog post will delve into how developers can retrieve historical prices for Chandigarh Gold 24k (CHAN-24k) using the Metals-API. We will explore the capabilities of the Metals-API, its innovative features, and how it empowers developers to create next-generation applications that leverage real-time metals data.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and currency fluctuations. In recent years, the digital transformation in precious metals trading has opened new avenues for investors and traders alike. The integration of data analytics and market insights has enabled a more informed approach to trading, allowing stakeholders to make decisions based on real-time data rather than speculation.
With the rise of technology in trading, the process of price discovery has become more efficient. The Metals-API provides a robust platform for accessing gold prices and historical data, allowing developers to build applications that can analyze trends, forecast prices, and provide insights into market movements. The API's innovative features, such as real-time updates and comprehensive historical data, make it an invaluable tool for anyone involved in the precious metals market.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical data on various metals, including gold, silver, platinum, and palladium. The API is built with a focus on innovation and technological advancement, enabling users to retrieve accurate data that can be integrated into their applications seamlessly.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rates updated at intervals depending on the subscription plan. This ensures that users have access to the most current data, which is crucial for making informed trading decisions. Additionally, the API allows for historical data retrieval, enabling users to analyze price trends over time.
Developers can utilize the Metals-API to create applications that offer digital asset solutions, providing users with insights into market trends and price fluctuations. The API's capabilities extend beyond mere data retrieval; it empowers developers to build sophisticated tools that can analyze and visualize data, enhancing the user experience.
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 and their potential applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on the subscription plan. This feature is essential for traders who need to stay updated on market movements.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, allowing for comprehensive analysis and reporting.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, allowing users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, enabling users to track volatility and make informed trading decisions.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and consumers interested in specific gold purities.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access OHLC data for a specific time period, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate access.
- API Response: The exchange rates delivered by the Metals-API are relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API features numerous endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: The API allows users to retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for developers looking to integrate the Metals-API into their applications. Below are examples of various endpoints along with their JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1748268015,
"base": "USD",
"date": "2025-05-26",
"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 rates for various metals, including gold (XAU). The rates are expressed in terms of troy ounces, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1748181615,
"base": "USD",
"date": "2025-05-25",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful retrieval of historical rates for a specific date, allowing developers to analyze past price movements and trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-19",
"end_date": "2025-05-26",
"base": "USD",
"rates": {
"2025-05-19": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-21": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-26": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for the specified period, enabling developers to visualize trends and fluctuations over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1748268015,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how the conversion endpoint works, showing the amount converted from USD to gold (XAU) and providing the current conversion rate.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-19",
"end_date": "2025-05-26",
"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 response provides insights into how prices have changed over a specified period, which is critical for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1748268015,
"base": "USD",
"date": "2025-05-26",
"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, including the opening, highest, lowest, and closing prices for a specific date, which is essential for technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1748268015,
"base": "USD",
"date": "2025-05-26",
"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 response provides essential information for traders regarding market liquidity and pricing, helping them make informed decisions.
Conclusion
The Metals-API is a powerful resource for developers looking to access real-time and historical data on precious metals, particularly gold. By leveraging its various endpoints, developers can create applications that provide valuable insights into market trends, price fluctuations, and trading opportunities. The API's focus on innovation and technological advancement positions it as a leader in the field of metals data.
Whether you are a trader, analyst, or developer, understanding how to utilize the Metals-API effectively can enhance your ability to make informed decisions in the precious metals market. For more information, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals.
In summary, the ability to retrieve historical prices for Chandigarh Gold 24k (CHAN-24k) through the Metals-API opens up new possibilities for analysis and trading strategies. By integrating this API into your applications, you can harness the power of real-time data to stay ahead in the dynamic world of precious metals trading.