Get Kochi Gold (XAU-KOCH) prices using this API

Get Kochi Gold (XAU-KOCH) Prices Using This API
Metals-API, a powerful tool that provides real-time and historical data on various metals, including gold. We will explore how this API works, its key features, and how developers can leverage it to create innovative applications in the realm of precious metals trading.
About Gold (XAU)
Metals-API provides developers with the tools to access real-time gold prices, enabling them to build applications that can analyze market trends, track price fluctuations, and make informed trading decisions. By harnessing the power of data analytics, developers can create innovative solutions that enhance the trading experience and improve price discovery.
API Description
Key Features and Endpoints
Latest Rates Endpoint
{
"success": true,
"timestamp": 1745384416,
"base": "USD",
"date": "2025-04-23",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1745298016,
"base": "USD",
"date": "2025-04-22",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
{
"success": true,
"timestamp": 1745384416,
"base": "USD",
"date": "2025-04-23",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1745384416,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-04-16",
"end_date": "2025-04-23",
"base": "USD",
"rates": {
"2025-04-16": {
"XAU": 0.000485
},
"2025-04-23": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-16",
"end_date": "2025-04-23",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
{
"success": true,
"timestamp": 1745384416,
"base": "USD",
"date": "2025-04-23",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Lowest/Highest Price Endpoint
{
"success": true,
"timestamp": 1745384416,
"base": "USD",
"date": "2025-04-23",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
{
"success": true,
"timestamp": 1745298016,
"base": "USD",
"date": "2025-04-22",
"rates": {
"XAU": 0.000485
},
"unit": "per troy ounce"
}
List of Symbols
Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate various metals into their applications.
Conclusion
Metals-API Documentation. This resource provides detailed guidance on using the API effectively, including endpoint descriptions, response examples, and best practices for integration.