Get Chandigarh Gold 24k (CHAN-24k) Historical Prices using this API

Get Chandigarh Gold 24k (CHAN-24k) Historical Prices using this API
In the ever-evolving landscape of precious metals trading, the ability to access accurate and timely data is paramount. For developers and traders alike, the Metals-API provides a robust solution for obtaining historical prices of gold, specifically the Chandigarh Gold 24k (CHAN-24k). This blog post delves into the intricacies of the Metals-API, focusing on how to leverage its capabilities to retrieve historical prices and other valuable data related to gold.
Metals-API Information
The Metals-API is a powerful tool designed for developers who require real-time and historical data on various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). With its comprehensive set of features, the API empowers users to build next-generation applications that can analyze market trends, perform data analytics, and integrate seamlessly into trading platforms.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. The digital transformation in precious metals trading has opened new avenues for investors and developers. By utilizing data analytics and market insights, stakeholders can make informed decisions based on real-time data. The integration of technology in trading has revolutionized the way gold is bought and sold, allowing for innovative price discovery methods and digital asset solutions.
With the Metals-API, developers can access a wealth of information about gold prices, including historical data that dates back to 2019. This capability is essential for analyzing trends and making predictions based on past performance. The API's focus on innovation and technological advancement positions it as a leader in the field of metals data.
API Description
The Metals-API is designed to provide developers with the tools necessary to access and manipulate metals data effectively. Its capabilities include real-time exchange rates, historical price data, and various endpoints that cater to different needs. By offering a comprehensive suite of features, the Metals-API enables developers to create applications that can track market fluctuations, convert currencies, and analyze historical trends.
For detailed information on how to use the API, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on implementation and usage.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or every 10 minutes. This feature is crucial for traders who need the most current prices to make informed decisions.
- 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, which is essential for trend analysis.
- Bid And Ask Endpoint: This powerful feature allows 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 endpoint, enabling users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This endpoint retrieves information about gold rates by carat, allowing users to understand pricing variations based on purity.
- Lowest/Highest Price Endpoint: This feature allows users to query the API to get the lowest and highest prices for a specified date, which is useful for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a broader perspective on 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 by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API comes with multiple endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- 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: This feature allows users to access the latest news articles related to various metals, keeping them 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
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1746248504,
"base": "USD",
"date": "2025-05-03",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1746162104,
"base": "USD",
"date": "2025-05-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2025-04-26",
"end_date": "2025-05-03",
"base": "USD",
"rates": {
"2025-04-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
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": 1746248504,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-26",
"end_date": "2025-05-03",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1746248504,
"base": "USD",
"date": "2025-05-03",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1746248504,
"base": "USD",
"date": "2025-05-03",
"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"
}
Conclusion
The Metals-API offers a comprehensive solution for developers seeking to access historical prices and real-time data for precious metals like gold. By leveraging its various endpoints, users can gain valuable insights into market trends, perform detailed analyses, and make informed trading decisions. The API's focus on innovation and technological advancement positions it as a vital tool in the digital transformation of precious metals trading.
For further exploration of the API's capabilities, developers are encouraged to visit the Metals-API Documentation for detailed guidance. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available symbols, ensuring that users can access the data they need. With the Metals-API, the future of precious metals trading is at your fingertips.