Learn to Get Chennai Gold 22k (CHEN-22k) Historical Prices via API
Introduction
In the ever-evolving landscape of precious metals trading, understanding the historical prices of gold is crucial for investors and developers alike. The Chennai Gold 22k (CHEN-22k) symbol represents a significant aspect of the gold market, particularly in India, where gold holds cultural and economic importance. To effectively track and analyze the historical prices of gold, developers can leverage the capabilities of the Metals-API. This API provides real-time and historical data, enabling developers to create innovative applications that cater to the needs of traders and investors.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, is not just a precious metal; it is a digital asset that has undergone a transformation in how it is traded and analyzed. The digital transformation in precious metals has led to the integration of data analytics and market insights, allowing traders to make informed decisions based on real-time data. With the rise of technology in trading, the innovation in price discovery has become paramount. The Metals-API empowers developers to harness this data, providing them with the tools necessary to build next-generation applications that can analyze trends, predict market movements, and offer digital asset solutions.
API Description
The Metals-API is designed to provide developers with access to comprehensive metals data, including real-time and historical prices. This API is a game-changer for those looking to integrate metals data into their applications. With its robust features, developers can create applications that not only track prices but also analyze fluctuations, convert currencies, and retrieve historical data dating back to 2019.
The API's capabilities include:
- Real-time exchange rates: Get the latest rates for various metals, including gold, silver, platinum, and palladium.
- Historical data: Access historical prices for metals, allowing for in-depth analysis and trend tracking.
- Conversion capabilities: Convert amounts between different metals and currencies seamlessly.
- Time-series data: Analyze price movements over specific periods to identify trends and patterns.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs:
- 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 essential for traders who need up-to-the-minute information to make quick decisions.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. You can query the Metals-API for historical rates by appending a date to the endpoint. This is particularly useful for analyzing trends over time.
- Bid and Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices, allowing traders to understand market sentiment and make informed decisions.
- Convert Endpoint: The API includes a currency conversion endpoint, which can be used to convert any amount from one currency to another, facilitating seamless transactions.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Get information about gold rates by carat, which is essential for jewelers and traders dealing in various gold purities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is beneficial for those tracking industrial metals.
- API Key: Your API key is essential for accessing the API and must be included in your requests.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API comes with 14 endpoints, each providing different functionalities to cater to various needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring you have access to the latest symbols.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
List of Symbols
The 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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1771719427,
"base": "USD",
"date": "2026-02-22",
"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 provides the latest rates for various metals, allowing developers to display current market conditions in their applications.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1771633027,
"base": "USD",
"date": "2026-02-21",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint is crucial for analyzing past performance and making predictions based on historical data.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-02-15",
"end_date": "2026-02-22",
"base": "USD",
"rates": {
"2026-02-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-22": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response allows developers to visualize trends over time, making it easier to identify patterns in price movements.
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": 1771719427,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint is particularly useful for traders who need to quickly convert values between different metals and currencies.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-15",
"end_date": "2026-02-22",
"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 endpoint provides insights into market volatility, which is essential for risk management and strategic planning.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1771719427,
"base": "USD",
"date": "2026-02-22",
"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"
}
OHLC data is crucial for traders who rely on technical analysis to make informed decisions.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1771719427,
"base": "USD",
"date": "2026-02-22",
"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 endpoint is essential for traders looking to understand market dynamics and make strategic trades based on current market conditions.
Conclusion
The Metals-API offers a comprehensive suite of tools for developers looking to track and analyze the historical prices of gold and other precious metals. By leveraging its various endpoints, developers can create applications that provide real-time data, historical analysis, and conversion capabilities. The ability to access detailed information about fluctuations, bid and ask prices, and OHLC data empowers traders to make informed decisions in a fast-paced market.
As the digital landscape continues to evolve, integrating advanced data analytics and market insights into trading applications will be crucial. The Metals-API stands at the forefront of this transformation, providing the necessary tools to harness the power of real-time metals data. For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation and usage.