Collect Chandigarh Gold 18k (CHAN-18k) Price History with this API
Collect Chandigarh Gold 18k (CHAN-18k) Price History with this API
In the ever-evolving landscape of precious metals trading, the ability to access historical price data is crucial for informed decision-making. The Chandigarh Gold 18k (CHAN-18k) symbol represents a significant asset in the gold market, and utilizing the Metals-API can empower developers and traders alike to harness the power of real-time and historical data. This blog post will delve into the intricacies of the Metals-API, exploring how to retrieve historical prices for gold and other precious metals, while also highlighting the transformative potential of technology in this sector.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. As digital transformation sweeps across various industries, the precious metals market is no exception. The integration of data analytics and market insights into trading practices has revolutionized how investors approach gold trading. With the rise of technology, traders can now leverage innovative price discovery methods and digital asset solutions to enhance their trading strategies.
In this digital age, the importance of real-time data cannot be overstated. The Metals-API provides developers with the tools necessary to build next-generation applications that can analyze market trends, track fluctuations, and make informed trading decisions. By utilizing the API, developers can access a wealth of information that can be used to create sophisticated trading platforms, investment analysis tools, and more.
API Description
The Metals-API is a powerful JSON API that provides access to real-time and historical prices for various metals, including gold, silver, platinum, and palladium. This API is designed with innovation and technological advancement in mind, allowing developers to create applications that can respond to market changes in real-time.
One of the key features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently depending on the subscription plan. This capability allows traders to stay ahead of market trends and make timely decisions based on the latest information. Furthermore, the API offers a comprehensive suite of endpoints that cater to various needs, from retrieving the latest rates to accessing historical data dating back to 2019.
Key Features and Endpoints
The Metals-API boasts a range of endpoints that provide valuable functionalities for developers and traders. Here are some of the most significant features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for traders who need to make quick decisions based on the latest market conditions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date in the YYYY-MM-DD format, users can query the Metals-API for historical rates, enabling them to analyze past market performance and trends.
- 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 Metals-API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD. This feature is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: This endpoint enables users to track how metal prices fluctuate on a day-to-day basis, offering insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping traders identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, allowing traders to analyze market trends effectively.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is invaluable for those trading in industrial metals.
- API Key: Each user is assigned a unique API key that must be included in the API requests, ensuring secure access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API offers a total of 14 endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metal symbols, allowing users to stay informed about the latest offerings.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping traders updated on market developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including but not limited to:
- XAU - Gold
- XAG - Silver
- XPT - Platinum
- XPD - Palladium
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 structure of API responses is crucial for effective integration. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1773966053,
"base": "USD",
"date": "2026-03-20",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
This response indicates a successful query, providing the latest exchange rates for gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD) relative to USD.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1773879653,
"base": "USD",
"date": "2026-03-19",
"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 users to analyze past market performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-13",
"end_date": "2026-03-20",
"base": "USD",
"rates": {
"2026-03-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-20": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series view of exchange rates for gold, silver, and platinum over a specified period, enabling users to identify trends and patterns.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1773966053,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates the conversion of an amount from USD to gold (XAU), providing the resulting value in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-13",
"end_date": "2026-03-20",
"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 provides insights into price fluctuations for gold, silver, and platinum over a specified period, highlighting both absolute changes and percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1773966053,
"base": "USD",
"date": "2026-03-20",
"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 essential market data, including the opening, highest, lowest, and closing prices for gold, silver, and platinum, allowing traders to analyze market performance effectively.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1773966053,
"base": "USD",
"date": "2026-03-20",
"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 current bid and ask prices for metals, which is crucial for traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API is an invaluable resource for developers and traders looking to access real-time and historical data for precious metals like gold. By leveraging the API's extensive features, including the ability to retrieve the latest rates, historical prices, and bid/ask information, users can make informed trading decisions and optimize their strategies.
As the precious metals market continues to evolve, the integration of technology and data analytics will play a pivotal role in shaping the future of trading. The Metals-API stands at the forefront of this transformation, providing the tools necessary for developers to create innovative applications that can respond to market changes in real-time.
For more information on how to utilize the Metals-API effectively, be sure to explore the Metals-API Documentation and familiarize yourself with the Metals-API Supported Symbols. By harnessing the power of this API, you can unlock the potential of precious metals trading and stay ahead in this dynamic market.