Get Chennai Gold 22k (CHEN-22k) Historical Prices from this API for academic studies
Get Chennai Gold 22k (CHEN-22k) Historical Prices from this API for Academic Studies
Gold (XAU) has always been a significant asset in the financial markets, serving as a safe haven during economic uncertainty and a hedge against inflation. For researchers and developers alike, accessing accurate historical prices of gold is crucial for academic studies, market analysis, and investment strategies. The Metals-API provides a robust solution for retrieving historical gold prices, including the specific rates for Chennai Gold 22k (CHEN-22k). In this blog post, we will explore the capabilities of the Metals-API, focusing on how to obtain historical prices and the various endpoints that facilitate this process.
About Gold (XAU)
Gold has undergone a digital transformation in recent years, with technology playing a pivotal role in trading and price discovery. The integration of data analytics and market insights has empowered traders and investors to make informed decisions based on real-time data. The Metals-API stands at the forefront of this innovation, offering developers the tools necessary to build next-generation applications that leverage real-time metals data.
With the rise of digital asset solutions, understanding the historical prices of gold has become increasingly important. The Metals-API allows users to access a wealth of information, including historical rates dating back to 2019, enabling comprehensive analysis and research. By utilizing this API, developers can create applications that provide insights into market trends, price fluctuations, and investment opportunities.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical metals data. Its capabilities extend beyond just retrieving prices; it empowers users to build applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. The API is designed with innovation in mind, allowing for the integration of advanced features that enhance the user experience.
For more detailed information, you can refer to the Metals-API Documentation, which outlines the various endpoints and their functionalities.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated every 60 minutes or more frequently based on your subscription plan. It is essential for developers looking to integrate live data into their applications.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API call, developers can retrieve historical prices for analysis.
- Bid and Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint enables users to convert amounts from one currency to another, facilitating seamless transactions and calculations.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two chosen dates, making it ideal for trend analysis.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is particularly useful for jewelers and traders.
- Lowest/Highest Price Endpoint: Users can 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: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for comprehensive market studies.
- API Key: The unique API key is required for authentication and is passed into the API base URL's access_key parameter.
- API Response: Exchange rates are delivered relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 14 endpoints, each providing distinct functionalities to cater to diverse user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring users have access to the latest symbols.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, ideal for high-frequency trading applications.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1787184886,
"base": "USD",
"date": "2026-08-20",
"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": 1787098486,
"base": "USD",
"date": "2026-08-19",
"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-08-13",
"end_date": "2026-08-20",
"base": "USD",
"rates": {
"2026-08-13": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-15": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-20": {
"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": 1787184886,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-13",
"end_date": "2026-08-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1787184886,
"base": "USD",
"date": "2026-08-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1787184886,
"base": "USD",
"date": "2026-08-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"
}
Conclusion
In conclusion, the Metals-API provides a comprehensive solution for accessing historical gold prices, including specific rates for Chennai Gold 22k (CHEN-22k). By leveraging the various endpoints offered by the API, developers can create applications that analyze market trends, track price fluctuations, and facilitate currency conversions. The detailed API documentation, along with the extensive features available, makes it an invaluable resource for researchers and developers in the financial sector.
For further exploration of the API's capabilities, visit the Metals-API Website and start building your applications today. Whether you are looking to analyze historical data or integrate real-time pricing into your projects, the Metals-API is equipped to meet your needs.