Get Kochi Gold 22k (KOCH-22k) Historical Prices for Financial Models using this API
Introduction
Gold (XAU) has long been a cornerstone of financial markets, serving as a safe haven asset and a hedge against inflation. In today's digital age, the ability to access historical prices for gold is crucial for financial modeling, investment strategies, and market analysis. The Metals-API offers a powerful solution for developers looking to integrate real-time and historical gold price data into their applications. This blog post will explore the innovative capabilities of the Metals-API, focusing on how to retrieve historical prices for Kochi Gold 22k (KOCH-22k) and other precious metals.
About Gold (XAU)
Gold is not just a commodity; it is a symbol of wealth and stability. As the world transitions into a more digital economy, the integration of technology in trading and investment practices has become essential. The digital transformation in precious metals trading is characterized by the use of data analytics and market insights to make informed decisions. Developers can leverage the Metals-API to gain access to real-time data, enabling them to build applications that provide innovative solutions for price discovery and trading.
With the rise of digital asset solutions, the demand for accurate and timely data has never been higher. The Metals-API empowers developers to create next-generation applications that can analyze market trends, track fluctuations, and provide insights into the gold market. By utilizing this API, developers can enhance their applications with features that allow users to make data-driven decisions.
API Description
The Metals-API is a comprehensive JSON API that provides access to real-time and historical prices for various metals, including gold, silver, platinum, and palladium. It is designed to be user-friendly and efficient, allowing developers to easily integrate metal price data into their applications. The API supports a wide range of functionalities, making it a versatile tool for financial modeling and analysis.
For detailed information on how to use the API, developers can refer to the Metals-API Documentation, which outlines the various endpoints, parameters, and response formats. Additionally, the Symbols List provides a comprehensive overview of all supported metal symbols, ensuring that developers have access to the data they need.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different data needs. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates endpoint provides real-time exchange rate data for metals. Depending on the subscription plan, this endpoint can return updates every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
{
"success": true,
"timestamp": 1776903432,
"base": "USD",
"date": "2026-04-23",
"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
For developers interested in analyzing trends over time, the Historical Rates endpoint allows access to historical rates dating back to 2019. By appending a specific date to the API request, users can retrieve past price data, which is invaluable for financial modeling and backtesting strategies.
{
"success": true,
"timestamp": 1776817032,
"base": "USD",
"date": "2026-04-22",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask endpoint is a powerful feature that provides real-time bid and ask prices for metals. This is particularly useful for traders who need to make quick decisions based on current market conditions.
{
"success": true,
"timestamp": 1776903432,
"base": "USD",
"date": "2026-04-23",
"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"
}
Convert Endpoint
The Convert endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require currency conversion for pricing or reporting purposes.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1776903432,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series endpoint enables users to query the API for daily historical rates between two specified dates. This is particularly beneficial for analyzing trends and fluctuations over a defined period.
{
"success": true,
"timeseries": true,
"start_date": "2026-04-16",
"end_date": "2026-04-23",
"base": "USD",
"rates": {
"2026-04-16": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-18": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-23": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation endpoint provides insights into how currencies fluctuate on a day-to-day basis. This feature is essential for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-16",
"end_date": "2026-04-23",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC endpoint provides detailed price information for a specific time period, including the opening, highest, lowest, and closing prices. This data is crucial for traders who rely on technical analysis to make informed decisions.
{
"success": true,
"timestamp": 1776903432,
"base": "USD",
"date": "2026-04-23",
"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"
}
Historical LME Endpoint
The Historical LME endpoint provides access to historical rates for LME symbols dating back to 2008. This is particularly useful for developers working with industrial metals and seeking long-term data for analysis.
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 Symbols page. This resource is invaluable for developers who need to ensure they are using the correct symbols in their API requests.
Conclusion
In conclusion, the Metals-API offers a robust and versatile solution for accessing historical prices for gold and other precious metals. With its wide range of endpoints, developers can easily integrate real-time and historical data into their applications, enabling them to make informed decisions based on accurate market insights. By leveraging the power of the Metals-API, developers can create innovative applications that enhance trading strategies and financial modeling.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the extensive Metals-API Documentation. By utilizing these resources, developers can unlock the full potential of the API and stay ahead in the ever-evolving world of precious metals trading.