Get Real-Time Kochi Gold (XAU-KOCH) Historical Prices using this API
Get Real-Time Kochi Gold (XAU-KOCH) Historical Prices using this API
In today's digital age, the demand for real-time data has transformed the way we interact with financial markets, especially in the realm of precious metals. For developers and traders alike, having access to accurate and timely information is crucial for making informed decisions. This is where the Metals-API comes into play, offering a robust solution for obtaining historical prices of gold (XAU) and other metals. In this blog post, we will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for Kochi Gold (XAU-KOCH) and explore the innovative features that make this API a game-changer in the world of precious metals trading.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a symbol of wealth and stability. In recent years, the digital transformation of precious metals has opened up new avenues for trading and investment. The integration of data analytics and market insights has enabled traders to make more informed decisions based on real-time data. With the rise of technology in trading, the innovation in price discovery has become more accessible, allowing for the development of digital asset solutions that cater to a global audience.
The Metals-API stands at the forefront of this transformation, providing developers with the tools they need to build next-generation applications that leverage real-time metals data. By utilizing the Metals-API, developers can access a wealth of information about gold prices, including historical rates, fluctuations, and conversion capabilities. This empowers them to create applications that can analyze market trends, forecast prices, and provide valuable insights to traders and investors.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data for various metals, including gold, silver, platinum, and palladium. With its user-friendly interface and comprehensive documentation, developers can easily integrate the API into their applications. The API offers a range of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data dating back to 2019.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated at intervals depending on the subscription plan. This ensures that users have access to the most current information available, which is essential for making timely trading decisions. Additionally, the API provides historical rates, allowing users to analyze past performance and trends, which can be invaluable for forecasting future movements in the market.
For developers looking to build applications that require currency conversion, the Metals-API offers a dedicated endpoint for converting amounts between different metals and currencies. This feature is particularly useful for traders who operate in multiple markets and need to quickly assess the value of their holdings in different currencies.
To explore the full capabilities of the Metals-API, developers can refer to the Metals-API Documentation, which provides detailed information on each endpoint and its functionality.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to serve specific purposes. Here are some of the key features and their potential applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for all available metals. Depending on the subscription plan, users can receive updates every 60 minutes, every 10 minutes, or even more frequently. This is crucial for traders who need to make quick decisions based on the latest market movements.
- 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 past prices, enabling them to conduct thorough market analyses and identify 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 essential for traders looking to execute orders at the best possible prices.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that allows users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders who need to assess the value of their holdings in different currencies quickly.
- Time-Series Endpoint: This endpoint enables users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses of price movements over specific periods.
- Fluctuation Endpoint: Users can track how metals fluctuate on a day-to-day basis using this endpoint. By providing information about the changes in rates between two dates, traders can better understand market volatility.
- Carat Endpoint: This unique feature allows users to retrieve information about gold rates by carat. By appending a base carat value to the API request, developers can access specific pricing information relevant to different carat weights.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specified date range. This information can help traders identify key support and resistance levels in the market.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve open, high, low, and close prices for a specific date. This data is essential for technical analysis and understanding market trends.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends in the metals market.
- API Key: Each user is assigned a unique API key that must be included in the API requests to authenticate access. This ensures secure and controlled access to the API's features.
- API Response: The Metals-API delivers exchange rates relative to USD by default, and all data is returned in a structured JSON format, making it easy for developers to parse and utilize the information.
- Available Endpoints: The API includes 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, allowing users to stay informed about the latest offerings.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them updated on market developments and trends.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols.
API Endpoint Examples and Responses
To illustrate the functionality of the Metals-API, here are some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1765170056,
"base": "USD",
"date": "2025-12-08",
"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 exchange rate for gold (XAU) is 0.000482 per troy ounce, providing a snapshot of the current market conditions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1765083656,
"base": "USD",
"date": "2025-12-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical exchange rates for gold and other metals on December 7, 2025, allowing users to analyze past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-12-01",
"end_date": "2025-12-08",
"base": "USD",
"rates": {
"2025-12-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of exchange rates for gold over a specified period, enabling users to track price movements and trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1765170056,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates the conversion of 1000 USD to gold (XAU), resulting in 0.482 troy ounces. This feature is particularly useful for traders assessing their holdings in different currencies.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-01",
"end_date": "2025-12-08",
"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 information about the fluctuations in gold prices over a specified period, helping traders understand market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1765170056,
"base": "USD",
"date": "2025-12-08",
"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 the open, high, low, and close prices for gold on a specific date, which is essential for technical analysis and understanding market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1765170056,
"base": "USD",
"date": "2025-12-08",
"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 orders at the best possible prices.
Conclusion
The Metals-API is a powerful tool for developers and traders looking to access real-time and historical data for precious metals like gold. With its comprehensive range of endpoints, the API empowers users to build applications that can analyze market trends, forecast prices, and provide valuable insights into the metals market. By leveraging the capabilities of the Metals-API, developers can create innovative solutions that enhance trading strategies and improve decision-making processes.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on each endpoint. Whether you're a seasoned trader or a developer looking to integrate metals data into your applications, the Metals-API offers the tools you need to succeed in the dynamic world of precious metals trading.