Query Chandigarh Gold 18k (CHAN-18k) Historical Prices via this API
Query Chandigarh Gold 18k (CHAN-18k) Historical Prices via this API
In today's digital age, the demand for real-time data and analytics has transformed the way traders and investors approach precious metals, particularly gold. The ability to query historical prices for gold, such as the Chandigarh Gold 18k (CHAN-18k), has become essential for making informed decisions. This blog post will delve into the capabilities of the Metals-API, focusing on how developers can leverage this powerful tool to access historical prices and gain insights into market trends.
About Gold (XAU)
Gold, represented by the symbol XAU, is one of the most sought-after precious metals in the world. Its value is influenced by various factors, including economic stability, inflation rates, and geopolitical events. As digital transformation continues to reshape financial markets, the integration of data analytics and technology in trading has become paramount. The Metals-API provides a robust platform for accessing real-time and historical data on gold prices, enabling developers to create innovative applications that enhance price discovery and market analysis.
With the rise of digital asset solutions, the demand for accurate and timely data has never been higher. The Metals-API empowers developers to build next-generation applications that can analyze market trends, track fluctuations, and provide insights into gold pricing. By utilizing advanced data analytics, traders can make more informed decisions, optimizing their investment strategies in the ever-changing landscape of precious metals.
API Description
The Metals-API is a comprehensive JSON API that provides access to real-time and historical prices for various metals, including gold, silver, platinum, and palladium. This API is designed to facilitate seamless integration into applications, allowing developers to harness the power of real-time metals data. With its innovative features, the Metals-API enables users to query historical prices, track fluctuations, and convert currencies with ease.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on the subscription plan, users can receive updates every 60 minutes, every 10 minutes, or even more frequently. This level of granularity allows traders to stay ahead of market trends and make timely decisions based on the latest information.
For developers looking to access historical prices, the Metals-API offers a dedicated endpoint that allows users to query historical rates by appending a specific date to the API request. This feature is invaluable for analyzing past market performance and understanding price trends over time.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to cater to different needs and use cases. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for all available metals. Users can access the latest rates for gold and other metals, allowing them to make informed trading decisions.
- Historical Rates Endpoint: Users can access historical rates 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 market analysis.
- 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 Metals-API includes a currency conversion endpoint, allowing users to convert amounts between different metals or to/from USD. This feature is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and price movements.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, catering to jewelers and consumers interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specific date, aiding in market analysis and decision-making.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, allowing traders to analyze price movements throughout the trading day.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering valuable data for traders focused on industrial metals.
- API Key: Each user is assigned a unique API key, which is required for accessing the API. This key ensures secure and authorized access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API features 14 different endpoints, each providing unique functionalities to cater to various 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.
- News Endpoint: Users can retrieve 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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are examples of various endpoint responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1765587629,
"base": "USD",
"date": "2025-12-13",
"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"
}
This response indicates that the latest exchange rate for gold (XAU) is 0.000482 per troy ounce, relative to USD.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1765501229,
"base": "USD",
"date": "2025-12-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical exchange rate for gold on December 12, 2025, allowing users to analyze past market performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-12-06",
"end_date": "2025-12-13",
"base": "USD",
"rates": {
"2025-12-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily exchange rates for gold over a specified time period, enabling users to track price trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1765587629,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of 1000 USD to gold (XAU), resulting in 0.482 troy ounces based on the current exchange rate.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-06",
"end_date": "2025-12-13",
"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"
}
This response details the fluctuations in gold prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1765587629,
"base": "USD",
"date": "2025-12-13",
"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 response provides the open, high, low, and close prices for gold on December 13, 2025, allowing traders to analyze daily price movements.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1765587629,
"base": "USD",
"date": "2025-12-13",
"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"
}
This response provides the current bid and ask prices for gold, offering insights into market liquidity and pricing dynamics.
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time and historical data on precious metals, particularly gold. By leveraging its various endpoints, developers can create innovative applications that enhance market analysis, price discovery, and trading strategies. The ability to query historical prices, track fluctuations, and convert currencies empowers users to make informed decisions in the dynamic world of precious metals trading.
For more detailed information on how to implement these features, refer to the Metals-API Documentation. This resource provides comprehensive guidance on each endpoint, including parameter descriptions, response examples, and best practices for integration.
As the financial landscape continues to evolve, the integration of technology and data analytics in trading will remain crucial. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to succeed in the competitive world of precious metals.