API Instructions to Get Kolkata Gold 22k (KOLK-22k) Historical Prices
API Instructions to Get Kolkata Gold 22k (KOLK-22k) Historical Prices
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. For developers and traders interested in tracking the historical prices of Gold, particularly the Kolkata Gold 22k (KOLK-22k), 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 valuable data related to Gold (XAU). We will explore the transformative potential of real-time metals data, the innovative features of the API, and practical use cases that can enhance trading strategies.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and a critical asset in financial markets. As digital transformation sweeps across various sectors, the precious metals market is no exception. The integration of technology in trading has revolutionized how investors access and analyze market data. With the rise of data analytics, traders can now gain insights into market trends, price movements, and fluctuations in real-time.
Moreover, the innovation in price discovery mechanisms has made it easier for traders to make informed decisions. Digital asset solutions are now available, allowing for seamless transactions and conversions between different currencies and metals. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to build next-generation applications that leverage real-time data.
API Description
The Metals-API is a powerful tool designed for developers who need access to real-time and historical data on precious metals. It empowers users to create applications that can track prices, analyze trends, and convert currencies with ease. The API's capabilities include retrieving the latest rates, historical prices, bid and ask prices, and much more. By utilizing the Metals-API, developers can integrate comprehensive metals data into their applications, enhancing user experience and decision-making processes.
For more detailed information, you can visit the Metals-API Documentation, which provides extensive guidance on how to implement the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that serve different purposes, each designed to provide specific functionalities that cater to the needs of traders and developers alike. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that you have the most current data at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to your query, you can retrieve the price of Gold (XAU) or other metals for any given day.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint enables you to convert amounts from one currency to another, facilitating transactions and analysis across different markets.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price trends over time.
- Fluctuation Endpoint: Track how prices fluctuate on a day-to-day basis, providing insights into market volatility and helping traders make informed decisions.
- Carat Endpoint: Retrieve information about Gold rates by carat, which is particularly useful for jewelers and traders dealing in specific gold purities.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API for the lowest and highest prices of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, which is essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring you have access to the latest symbols.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
For a complete list of all supported symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of various API endpoints and their responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1766455227,
"base": "USD",
"date": "2025-12-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
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1766368827,
"base": "USD",
"date": "2025-12-22",
"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": "2025-12-16",
"end_date": "2025-12-23",
"base": "USD",
"rates": {
"2025-12-16": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-18": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-23": {
"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": 1766455227,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-16",
"end_date": "2025-12-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1766455227,
"base": "USD",
"date": "2025-12-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1766455227,
"base": "USD",
"date": "2025-12-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"
}
Conclusion
The Metals-API provides a comprehensive suite of tools for developers and traders looking to access real-time and historical data on precious metals, including Gold (XAU). By leveraging the various endpoints available, users can gain valuable insights into market trends, price fluctuations, and trading opportunities. Whether you are interested in the latest rates, historical data, or bid and ask prices, the Metals-API offers the functionality needed to enhance your trading strategies.
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. With the right tools and data at your disposal, you can navigate the precious metals market with confidence.