Download Kochi Gold (XAU-KOCH) Historical Prices with the help of this API
Download Kochi Gold (XAU-KOCH) Historical Prices with the help of this API
In the ever-evolving landscape of financial technology, the demand for accurate and real-time data has never been more critical. For developers and traders in the precious metals market, having access to historical prices of gold (XAU) is essential for making informed decisions. The Metals-API provides a robust solution for accessing historical prices, enabling users to harness the power of data analytics and market insights. This blog post delves into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Kochi Gold (XAU-KOCH) and the transformative potential of real-time metals data.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. As a digital asset, gold is undergoing a transformation driven by technology and innovation. The integration of data analytics into trading strategies allows investors to gain deeper insights into market trends and price movements. With the rise of digital asset solutions, gold trading is becoming more accessible, enabling a broader audience to participate in this lucrative market.
The digital transformation in precious metals is not just about trading; it encompasses a wide range of applications, from price discovery to risk management. By leveraging advanced technologies, traders can optimize their strategies and make data-driven decisions. The Metals-API plays a crucial role in this ecosystem, providing developers with the tools they need to build next-generation applications that can analyze and interpret gold price movements effectively.
Metals-API Overview
The Metals-API is a powerful JSON API that offers real-time and historical data for various metals, including gold, silver, platinum, and palladium. With its extensive range of endpoints, the API empowers developers to create applications that can access and analyze metal prices seamlessly. The API's capabilities include retrieving the latest rates, historical rates, bid and ask prices, and much more.
One of the standout features of the Metals-API is its ability to provide real-time data updated at intervals depending on the subscription plan. This ensures that users have access to the most current market information, which is vital for making timely trading decisions. Additionally, the API supports a variety of endpoints that cater to different needs, from converting currencies to tracking fluctuations over time.
Key Features and Endpoints
The Metals-API offers a comprehensive suite of endpoints designed to meet the diverse needs of developers and traders. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or more frequently, depending on your subscription plan. It allows users to access the most current prices for gold and other metals.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for gold, enabling them to analyze trends over time.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals. This information is crucial for traders looking to execute buy or sell orders at optimal prices.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD. This feature is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: This endpoint enables users to query the API for daily historical rates between two dates of their choice. It is ideal for analyzing price movements over specific periods.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility and helps traders make informed decisions.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, catering to those interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period, providing valuable insights into market extremes.
- 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: Users can access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate and authorize access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
To illustrate the functionality of the Metals-API, here are examples of JSON responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1770250710,
"base": "USD",
"date": "2026-02-05",
"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"
}
The response indicates a successful request, providing the latest exchange rates for various metals relative to USD. The rates are expressed per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1770164310,
"base": "USD",
"date": "2026-02-04",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful response for historical rates, allowing users to analyze past prices for gold and other metals. The ability to access historical data is crucial for trend analysis and forecasting.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-01-29",
"end_date": "2026-02-05",
"base": "USD",
"rates": {
"2026-01-29": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-31": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-05": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint provides a detailed view of how gold prices have changed over a specific period. This data is invaluable for traders looking to identify patterns and make predictions based on historical performance.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1770250710,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates the conversion of USD to gold (XAU). The result indicates how much gold can be purchased with a specified amount of USD, providing traders with essential information for making investment decisions.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-29",
"end_date": "2026-02-05",
"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"
}
The fluctuation endpoint provides insights into how prices have changed over a specified period, including both absolute changes and percentage changes. This information is critical for traders looking to understand market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1770250710,
"base": "USD",
"date": "2026-02-05",
"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 price action for a specific date, including the opening, highest, lowest, and closing prices. This data is essential for technical analysis and helps traders assess market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1770250710,
"base": "USD",
"date": "2026-02-05",
"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"
}
The bid/ask endpoint provides current bid and ask prices for metals, along with the spread. This information is crucial for traders looking to execute trades at the best possible prices.
Conclusion
The Metals-API is an invaluable resource for developers and traders seeking to access historical prices and real-time data for precious metals like gold (XAU). By leveraging the API's extensive features, users can gain insights into market trends, optimize their trading strategies, and make informed decisions. The ability to retrieve historical prices, track fluctuations, and access real-time data empowers traders to navigate the complexities of the metals market effectively.
For those interested in exploring the full capabilities of the Metals-API, I encourage you to visit the Metals-API Documentation for detailed information on each endpoint and its functionalities. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of all available metal symbols, ensuring you have access to the latest data.
In a world where data drives decision-making, the Metals-API stands out as a powerful tool for anyone involved in the precious metals market. By embracing the digital transformation and utilizing advanced data analytics, traders can unlock new opportunities and enhance their trading performance.