Collect Kolkata Gold 24k (KOLK-24k) Historical Prices from this API

Collect Kolkata Gold 24k (KOLK-24k) Historical Prices from this API
About Gold (XAU)
Metals-API Overview
Metals-API Website or explore the Metals-API Documentation for detailed guidance on implementation.
Key Features of Metals-API
- 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 traders who require up-to-the-minute information on gold prices.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a specific date to the API request, users can retrieve historical prices for gold and other metals, enabling them to analyze trends over time.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, allowing traders to track volatility and make informed decisions.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and consumers looking to understand the value of gold jewelry.
- Lowest/Highest Price Endpoint: This feature allows users to query the API to get the lowest and highest price for a specific date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a comprehensive view of market trends.
- API Key: The API Key is a unique identifier that must be included in API requests to authenticate and authorize access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency and ease of use.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: The Metals-API allows users to retrieve the latest news articles related to various metals, keeping traders informed about market developments.
Understanding API Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1754661631,
"base": "USD",
"date": "2025-08-08",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1754575231,
"base": "USD",
"date": "2025-08-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-08-01",
"end_date": "2025-08-08",
"base": "USD",
"rates": {
"2025-08-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1754661631,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-01",
"end_date": "2025-08-08",
"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) Price Endpoint
{
"success": true,
"timestamp": 1754661631,
"base": "USD",
"date": "2025-08-08",
"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
{
"success": true,
"timestamp": 1754661631,
"base": "USD",
"date": "2025-08-08",
"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"
}
Practical Use Cases and Integration Strategies
- Trading Platforms: Developers can integrate the Metals-API into trading platforms to provide users with real-time price updates, historical data analysis, and market insights.
- Investment Apps: Investment applications can leverage the API to offer users personalized insights based on their investment portfolios, including alerts for price changes and historical performance analysis.
- Market Analysis Tools: Analysts can use the API to build tools that aggregate data from multiple sources, providing comprehensive market analysis and predictive modeling based on historical trends.
- Financial News Aggregators: News platforms can utilize the Metals-API to provide users with the latest news and updates related to precious metals, enhancing their understanding of market dynamics.
Performance Optimization and Scaling
- Rate Limiting: Be aware of the API's rate limits based on your subscription plan. Implement caching mechanisms to reduce the number of API calls and improve response times.
- Data Aggregation: Aggregate data from multiple API calls to minimize the number of requests. This can be particularly useful for applications that require historical data analysis.
- Error Handling: Implement robust error handling to manage API response errors gracefully. This includes retry mechanisms for transient errors and fallback strategies for critical operations.
- Security Best Practices: Ensure that your API key is securely stored and not exposed in client-side code. Use HTTPS for all API requests to protect data in transit.
Conclusion
Metals-API Documentation and the Metals-API Supported Symbols page for a comprehensive list of available symbols. Embrace the future of precious metals trading with the Metals-API and unlock the potential of data-driven decision-making.