Fetch Chennai Gold 24k (CHEN-24k) Historical Prices with this API

Fetch Chennai Gold 24k (CHEN-24k) Historical Prices with this API
In today's digital age, the demand for accurate and real-time data has transformed the way we trade and invest in precious metals. One of the most sought-after metals is gold, represented by the symbol XAU. For developers and traders looking to fetch historical prices for Chennai Gold 24k (CHEN-24k), the Metals-API offers a robust solution. This blog post will delve into the capabilities of the Metals-API, focusing on how to access historical prices and other valuable data related to gold.
About Gold (XAU)
Gold has long been a symbol of wealth and stability. As a precious metal, it plays a crucial role in global finance and investment strategies. The digital transformation in precious metals trading has opened up new avenues for data analytics and market insights. With the integration of technology in trading, investors can now access real-time data, enabling them to make informed decisions.
One of the most significant innovations in the gold market is the development of digital asset solutions. These solutions allow for seamless trading and investment in gold, providing users with the ability to track prices, analyze trends, and make strategic decisions based on comprehensive data. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to build next-generation applications that leverage real-time metals data.
API Description
The Metals-API is a powerful tool designed for developers seeking to access real-time and historical data on precious metals. With its innovative features, the API empowers users to build applications that can track market trends, analyze price fluctuations, and convert currencies with ease. The API provides a comprehensive suite of endpoints that cater to various needs, from fetching the latest rates to accessing historical data dating back to 2019.
For more detailed information, you can visit the Metals-API Documentation, which outlines the capabilities and functionalities of the API. Additionally, the Metals-API Supported Symbols page provides a complete list of all available metal symbols, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD).
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for precious metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for traders who need up-to-the-minute information to make quick decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve the historical price of gold, allowing for in-depth analysis of market trends over time.
- 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 any amount from one metal to another or to/from USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for analyzing price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This endpoint allows users to retrieve information about gold rates by carat, which is essential for jewelers and consumers looking to understand the value of gold in different forms.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price of gold for a specified date, helping traders identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access the open, high, low, and close prices for gold, providing a comprehensive view of market performance over a specific period.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive analysis of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API offers a wide range of endpoints, each providing different functionalities tailored to user needs.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders and investors.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping users stay informed about market developments.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1752534016,
"base": "USD",
"date": "2025-07-14",
"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 rate for gold (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market conditions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1752447616,
"base": "USD",
"date": "2025-07-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical rate for gold on July 13, 2025, allowing users to analyze past market performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-07",
"end_date": "2025-07-14",
"base": "USD",
"rates": {
"2025-07-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series view of gold prices over a specified period, enabling users to identify trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1752534016,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert an amount from USD to gold (XAU), showing that $1000 is equivalent to 0.482 troy ounces of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-07",
"end_date": "2025-07-14",
"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 how gold prices fluctuated over a specific period, highlighting both the absolute change and percentage change.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1752534016,
"base": "USD",
"date": "2025-07-14",
"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 a comprehensive view of the open, high, low, and close prices for gold, allowing traders to assess market performance effectively.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1752534016,
"base": "USD",
"date": "2025-07-14",
"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, which is crucial for traders looking to execute buy or sell orders.
Conclusion
The Metals-API is an invaluable resource for developers and traders seeking to access real-time and historical data on precious metals like gold. With its comprehensive suite of endpoints, users can easily fetch the latest rates, analyze historical trends, and convert currencies, all while leveraging the power of real-time data analytics.
By utilizing the Metals-API, developers can build innovative applications that enhance trading strategies and provide users with the insights they need to navigate the complex world of precious metals. For more information on how to get started, visit the Metals-API Website and explore the extensive documentation available.
In summary, whether you are a seasoned trader or a developer looking to integrate precious metals data into your applications, the Metals-API offers the tools and resources necessary to succeed in today's dynamic market. Embrace the digital transformation in precious metals trading and unlock the potential of real-time data with the Metals-API.