Get Kolkata Gold 22k (KOLK-22k) Historical Prices for your trading app using this API

Get Kolkata Gold 22k (KOLK-22k) Historical Prices for Your Trading App Using This API
In the ever-evolving landscape of financial technology, the demand for accurate and real-time data has never been more critical, especially in the realm of precious metals trading. For developers looking to integrate historical prices of gold, specifically Kolkata Gold 22k (KOLK-22k), into their trading applications, the Metals-API offers a robust solution. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices and other essential data related to gold (XAU) and its significance in the trading ecosystem.
Metals-API Information
The Metals-API is a powerful tool designed for developers who need access to real-time and historical data on various metals, including gold, silver, platinum, and palladium. With its comprehensive endpoints, the API allows users to obtain the latest rates, historical prices, and even perform conversions between different metals and currencies. This flexibility makes it an invaluable resource for trading applications, financial analysis, and market research.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As a precious metal, it plays a crucial role in the global economy, serving as a hedge against inflation and currency fluctuations. The digital transformation in precious metals trading has opened new avenues for investors and developers alike. With the integration of data analytics and market insights, traders can make informed decisions based on real-time data and historical trends.
Technology integration in trading has revolutionized how investors interact with the market. The Metals-API exemplifies this innovation by providing seamless access to gold prices and other metal data. Developers can leverage this API to build applications that not only track prices but also analyze trends, perform predictive analytics, and offer insights into market movements.
Moreover, the API's capabilities extend beyond mere price tracking. It empowers developers to create digital asset solutions that can enhance user experience and engagement. By utilizing the Metals-API, applications can provide users with timely updates on gold prices, historical data analysis, and even alerts on significant market changes.
API Description
The Metals-API is designed with innovation and technological advancement at its core. It offers a suite of features that enable developers to build next-generation applications capable of handling real-time metals data. The API's architecture is optimized for performance, ensuring that users can access the information they need without delays.
For developers looking to get started, the Metals-API Documentation provides comprehensive guidance on how to implement the API effectively. The documentation covers everything from authentication to endpoint usage, ensuring that developers have all the information they need to integrate the API into their applications.
Additionally, the API supports a wide range of symbols, which can be explored in detail on the Metals-API Supported Symbols page. This resource is invaluable for developers who need to understand the various metals and their corresponding codes.
Key Features and Endpoints
The Metals-API is equipped with several key features that enhance its functionality. Below are some of the most notable endpoints and their potential applications:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. Developers can query the Metals-API for historical rates by appending a specific date to the endpoint. This is particularly useful for analyzing price trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for various metals. Understanding the bid-ask spread is crucial for traders looking to make informed decisions.
- Convert Endpoint: The API includes a separate currency conversion endpoint, allowing users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that deal with multiple currencies.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two dates of their choice. It is ideal for applications that require detailed historical analysis.
- Fluctuation Endpoint: Users can retrieve information about how currencies fluctuate on a day-to-day basis. This feature is essential for understanding market volatility.
- Carat Endpoint: This endpoint provides information about gold rates by carat. Developers can use this feature to cater to specific market segments that deal with different carat values.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest price for a specified date range. It is useful for identifying price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specified date. It is essential for traders who analyze price movements over specific periods.
- Historical LME Endpoint: This endpoint provides access to 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 that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Available Endpoints: The Metals-API offers a variety of endpoints, each providing different functionalities tailored to user needs.
- Gold Price India Endpoint: This dedicated endpoint retrieves the latest gold price in India, catering to a specific regional market.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints along with their JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1749434743,
"base": "USD",
"date": "2025-06-09",
"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 request was successful, providing the latest rates for various metals, including gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1749348343,
"base": "USD",
"date": "2025-06-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date, allowing developers to analyze past market behavior.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-02",
"end_date": "2025-06-09",
"base": "USD",
"rates": {
"2025-06-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates for gold and other metals over a specified period, enabling detailed analysis of price trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1749434743,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert a specified amount from USD to gold (XAU), providing the conversion rate and resulting value.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-02",
"end_date": "2025-06-09",
"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 insights into how metal prices fluctuate over a specified period, which is crucial for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1749434743,
"base": "USD",
"date": "2025-06-09",
"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 critical price data for traders, allowing them to analyze market performance over a specific timeframe.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1749434743,
"base": "USD",
"date": "2025-06-09",
"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 metals, which is essential for traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API is an indispensable tool for developers looking to integrate historical prices and real-time data of gold and other metals into their trading applications. With its comprehensive endpoints and robust features, the API empowers developers to create innovative solutions that enhance user experience and provide valuable market insights.
By leveraging the capabilities of the Metals-API, developers can build applications that not only track the latest prices but also analyze historical trends, perform conversions, and monitor fluctuations. This level of detail and functionality is crucial for traders who rely on accurate data to make informed decisions.
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 implementation. Additionally, check the Metals-API Supported Symbols page to familiarize yourself with the various metal symbols available for use.