Access Chandigarh Gold 24k (CHAN-24k) Historical Data API in JSON Format
Access Chandigarh Gold 24k (CHAN-24k) Historical Data API in JSON Format
In the rapidly evolving world of finance and trading, the ability to access real-time data is crucial for making informed decisions. One of the most valuable resources for developers and traders alike is the Metals-API, which provides comprehensive access to precious metals data, including exchange rates in JSON format. This blog post will guide you through retrieving the exchange rates for Gold (XAU) using the Metals-API, showcasing its capabilities, sample API responses, and integration tips.
About Gold (XAU)
Gold has long been considered a safe-haven asset and a store of value. As digital transformation continues to reshape the financial landscape, the integration of technology in trading precious metals has become increasingly important. The Metals-API empowers developers to harness data analytics and market insights, allowing for innovative approaches to price discovery and trading strategies.
With the rise of digital asset solutions, understanding the dynamics of gold trading through real-time data is essential. The Metals-API provides a robust platform for accessing historical and current gold prices, enabling developers to create next-generation applications that can analyze trends, predict market movements, and optimize trading strategies.
API Description
The Metals-API is designed to provide developers with a powerful tool for accessing real-time and historical metals data. It offers a wide range of endpoints that cater to various needs, from retrieving the latest exchange rates to analyzing historical trends. The API is built with innovation in mind, allowing for seamless integration into applications and services.
For more detailed information, you can refer to the Metals-API Documentation, which outlines all available features and endpoints.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on your plan, updates can occur every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019 by appending a specific date to your request. This feature is invaluable for analyzing past market trends.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: This endpoint enables currency conversion between different metals and USD, making it easy to calculate values across various currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two chosen dates, providing insights into price movements over time.
- Fluctuation Endpoint: Track how exchange rates fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Retrieve gold rates by carat, which is essential for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those involved in industrial metals trading.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates are delivered relative to USD by default, with all data returned in JSON format for easy integration.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you 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
Understanding the structure of API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1770955631,
"base": "USD",
"date": "2026-02-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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1770869231,
"base": "USD",
"date": "2026-02-12",
"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": "2026-02-06",
"end_date": "2026-02-13",
"base": "USD",
"rates": {
"2026-02-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-13": {
"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": 1770955631,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-06",
"end_date": "2026-02-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1770955631,
"base": "USD",
"date": "2026-02-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1770955631,
"base": "USD",
"date": "2026-02-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"
}
Conclusion
The Metals-API provides a powerful and flexible solution for accessing real-time and historical data on precious metals, including Gold (XAU). By leveraging its various endpoints, developers can create applications that analyze market trends, optimize trading strategies, and provide valuable insights into the precious metals market.
With features like the Latest Rates, Historical Rates, and Time-Series endpoints, the API allows for comprehensive data analysis and integration into existing systems. The ability to convert between different metals and track fluctuations further enhances its utility for traders and analysts alike.
For those looking to delve deeper into the world of precious metals trading, the Metals-API is an invaluable resource. Explore the Metals-API Documentation for detailed information on each endpoint, and visit the Metals-API Supported Symbols page to familiarize yourself with the available metal symbols.
In summary, the Metals-API not only facilitates access to critical market data but also empowers developers to innovate and create solutions that can transform the way precious metals are traded and analyzed. Embrace the future of trading with the Metals-API and unlock the potential of real-time metals data.