Access Kochi Gold (XAU-KOCH) Exchange Rates API Documentation in JSON Format
Access Kochi Gold (XAU-KOCH) Exchange Rates API Documentation in JSON Format
In today's fast-paced financial landscape, the ability to access real-time exchange rates for precious metals like gold (XAU) is crucial for developers and traders alike. The Metals-API provides a powerful solution for retrieving exchange rates in JSON format, enabling seamless integration into various applications. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve exchange rates for gold and other metals, along with sample API responses and integration tips.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of the global financial system. As a digital asset, it is increasingly being integrated into trading platforms, financial applications, and investment tools. The digital transformation in precious metals trading is driven by data analytics and market insights, allowing traders to make informed decisions based on real-time data.
With the rise of technology integration in trading, the Metals-API empowers developers to build next-generation applications that leverage real-time metals data. This API not only facilitates innovation in price discovery but also offers digital asset solutions that enhance trading strategies. By utilizing the Metals-API, developers can access a wealth of information that can be used to analyze market trends, track fluctuations, and optimize trading strategies.
API Description
The Metals-API is a comprehensive JSON API that provides access to real-time and historical exchange rates for various metals, including gold, silver, platinum, and palladium. With a focus on innovation and technological advancement, the API allows developers to create applications that can respond to market changes in real-time. The API offers a variety of endpoints, each designed to meet specific needs, from retrieving the latest rates to accessing historical data.
For more information, visit the Metals-API Documentation, which provides detailed guidance on how to utilize the API effectively.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different functionalities. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. It allows developers to access the most current rates for gold and other metals.
- Historical Rates Endpoint: Access historical exchange rates dating back to 2019 by appending a specific date to your query. This feature is invaluable for analyzing trends and making informed decisions based on past performance.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals, which is essential for traders looking to execute buy or sell orders at optimal prices.
- Convert Endpoint: This endpoint allows for currency conversion between different metals or to/from USD, making it easy to calculate values based on current exchange rates.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing insights into price movements over time.
- Fluctuation Endpoint: Track how exchange rates fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, allowing for precise calculations in jewelry and investment contexts.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, which can help traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period, providing a comprehensive view of price movements.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for analyzing long-term trends.
- API Key: Your unique API key is essential for accessing the API and must be included in your requests.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring you have the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1768219664,
"base": "USD",
"date": "2026-01-12",
"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": 1768133264,
"base": "USD",
"date": "2026-01-11",
"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-01-05",
"end_date": "2026-01-12",
"base": "USD",
"rates": {
"2026-01-05": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-07": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-12": {
"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": 1768219664,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-05",
"end_date": "2026-01-12",
"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": 1768219664,
"base": "USD",
"date": "2026-01-12",
"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": 1768219664,
"base": "USD",
"date": "2026-01-12",
"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
The Metals-API provides a robust and flexible solution for accessing real-time and historical exchange rates for precious metals like gold (XAU). By leveraging the various endpoints offered by the API, developers can create innovative applications that respond to market changes and provide valuable insights into trading strategies. Whether you are looking to track fluctuations, convert currencies, or analyze historical data, the Metals-API has the tools you need.
For further exploration of the API's capabilities, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page. With the right integration strategies and a clear understanding of the API's features, you can unlock the full potential of real-time metals data in your applications.