The Easiest Way to Get Chandigarh Gold 24k (CHAN-24k) Historical Rates from API Providers
The Easiest Way to Get Chandigarh Gold 24k (CHAN-24k) Historical Rates from API Providers
In the ever-evolving landscape of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. For developers and traders looking to obtain historical prices for Gold (XAU), the Metals-API offers a robust solution. This blog post will delve into how to leverage the Metals-API to access historical Gold prices, including detailed explanations of various endpoints, parameters, and data formats. By the end of this guide, you will have a comprehensive understanding of how to effectively utilize this powerful API.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a popular investment choice. As digital transformation sweeps through the financial sector, the integration of technology in trading precious metals is becoming increasingly important. The Metals-API stands at the forefront of this transformation, providing developers with the tools needed to access real-time and historical data analytics.
With the rise of data analytics and market insights, traders can now utilize advanced technology to enhance their trading strategies. The Metals-API not only facilitates price discovery but also offers innovative digital asset solutions that empower developers to build next-generation applications. This API is designed to provide seamless access to precious metals data, making it an invaluable resource for anyone involved in the trading of Gold and other metals.
API Description
The Metals-API is a comprehensive JSON API that provides real-time and historical data for various metals, including Gold (XAU). It allows developers to integrate metals pricing into their applications, enabling them to access critical market data with ease. The API is designed with innovation in mind, offering a range of endpoints that cater to different data needs.
For more information, you can visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, each designed to cater to specific data requirements. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for Gold and other metals, updated based on your subscription plan. Depending on your plan, you can receive updates every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: Access historical rates for Gold dating back to 2019. By appending a specific date in the format YYYY-MM-DD, you can retrieve historical data for any given day.
- Bid and Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for Gold and other metals, providing insights into market dynamics.
- Convert Endpoint: Easily convert amounts from one currency to another, including conversions between Gold and other metals.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price trends over time.
- Fluctuation Endpoint: Retrieve information about how Gold prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Get information about Gold rates by carat, which is particularly useful for jewelers and traders dealing in various purities.
- Lowest/Highest Price Endpoint: Query the API to find the lowest and highest prices for Gold over a specified period.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for Gold, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a broader context for market analysis.
- 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, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 endpoints, each offering distinct functionalities to meet various data needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals supported by the API.
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
To illustrate how to use the Metals-API effectively, letβs explore some example endpoints and their corresponding JSON responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1779815322,
"base": "USD",
"date": "2026-05-26",
"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": 1779728922,
"base": "USD",
"date": "2026-05-25",
"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-05-19",
"end_date": "2026-05-26",
"base": "USD",
"rates": {
"2026-05-19": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-21": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-26": {
"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": 1779815322,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-19",
"end_date": "2026-05-26",
"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": 1779815322,
"base": "USD",
"date": "2026-05-26",
"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": 1779815322,
"base": "USD",
"date": "2026-05-26",
"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
Accessing historical Gold prices through the Metals-API is a straightforward process that can significantly enhance your trading strategies. By utilizing the various endpoints provided by the API, developers can retrieve real-time and historical data, enabling them to make informed decisions based on accurate market insights.
With features such as the Latest Rates, Historical Rates, and Time-Series endpoints, the Metals-API empowers developers to build applications that can analyze price trends, track fluctuations, and convert currencies seamlessly. The comprehensive documentation available on the Metals-API Documentation site ensures that developers have all the resources they need to implement these features effectively.
In summary, the Metals-API is an essential tool for anyone looking to engage with the precious metals market. By understanding how to utilize its capabilities, you can unlock the potential of historical data and enhance your trading strategies in the dynamic world of Gold trading.