Fetch Chandigarh Gold 18k (CHAN-18k) Historical Prices through this API
Introduction
In today's rapidly evolving financial landscape, the demand for precise and timely data on precious metals has never been greater. For developers and traders alike, accessing historical prices for gold, specifically the Chandigarh Gold 18k (CHAN-18k), is crucial for making informed decisions. The Metals-API provides a robust solution for fetching historical prices and real-time data on various metals, including gold (XAU). This blog post will delve into the capabilities of the Metals-API, exploring how it empowers developers to harness the power of data analytics and technology integration in trading precious metals.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a critical asset in financial markets. As digital transformation reshapes the landscape of precious metals trading, the integration of data analytics and technology has become paramount. The Metals-API stands at the forefront of this transformation, offering developers the tools necessary to innovate price discovery and enhance trading strategies.
With the rise of digital asset solutions, the ability to access real-time and historical data on gold prices is essential. The Metals-API not only provides this data but also enables developers to build next-generation applications that can analyze market trends, forecast price movements, and optimize trading strategies. By leveraging the API's capabilities, developers can gain valuable market insights that drive informed decision-making.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API is built with innovation and technological advancement in mind, allowing developers to access a wealth of information that can transform their trading applications.
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 ensures that developers have access to the most current information, enabling them to make timely decisions in a fast-paced market. Additionally, the API offers historical rates dating back to 2019, allowing for comprehensive analysis of price trends over time.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs, each offering unique functionalities that can be leveraged in various applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. Developers can easily access the latest gold prices and other metal rates, ensuring they are always informed.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for gold and other metals, facilitating in-depth analysis of market trends.
- Bid And Ask Endpoint: This powerful feature allows developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and trading opportunities.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, allowing for comprehensive time-series analysis of gold prices.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, offering valuable insights into market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and traders dealing in various gold purities.
- Lowest/Highest Price Endpoint: This feature allows developers to query the API for the lowest and highest prices of gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Developers can access open, high, low, and close prices for gold, providing a comprehensive view of market performance over time.
- Historical LME Endpoint: This endpoint offers access to historical rates for LME symbols, dating back to 2008, allowing for extensive analysis of market trends.
- API Key: Each user is assigned a unique API key, which is essential for authentication and authorization when making requests to the API.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API features 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing developers to stay informed about the latest symbols supported by the API.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them updated on market developments.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, let's explore some example responses for key endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1764298990,
"base": "USD",
"date": "2025-11-28",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1764212590,
"base": "USD",
"date": "2025-11-27",
"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-11-21",
"end_date": "2025-11-28",
"base": "USD",
"rates": {
"2025-11-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-28": {
"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": 1764298990,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-21",
"end_date": "2025-11-28",
"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": 1764298990,
"base": "USD",
"date": "2025-11-28",
"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": 1764298990,
"base": "USD",
"date": "2025-11-28",
"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 accessing historical prices and real-time data on precious metals, including gold. By utilizing the various endpoints available, developers can create powerful applications that leverage data analytics and technology to enhance trading strategies and market insights.
With features such as the Latest Rates Endpoint, Historical Rates Endpoint, and the ability to convert between different metals and currencies, the Metals-API stands out as a vital tool for anyone involved in the trading of precious metals. The API's capabilities not only facilitate real-time decision-making but also empower developers to innovate and optimize their trading applications.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols to understand the full range of available data. Embrace the future of precious metals trading with the transformative potential of the Metals-API.