Fetch Indore Gold 22k (INDO-22k) Historical Prices with this API

Fetch Indore Gold 22k (INDO-22k) Historical Prices with this API
In the rapidly evolving landscape of precious metals trading, having access to accurate and real-time data is crucial for making informed decisions. One of the most sought-after metals is gold, particularly in its 22k form, known as Indore Gold 22k (INDO-22k). With the help of the Metals-API, developers can easily fetch historical prices and gain insights into market trends. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for gold and other metals, while exploring the digital transformation in precious metals trading.
About Gold (XAU)
Gold has long been a symbol of wealth and a reliable store of value. In recent years, the digital transformation of precious metals has opened new avenues for trading and investment. The integration of technology in trading platforms has enabled real-time data analytics, allowing traders to make quicker and more informed decisions. The Metals-API stands at the forefront of this transformation, providing developers with the tools needed to access and analyze gold prices efficiently.
With the rise of digital asset solutions, gold trading has become more accessible to a broader audience. The ability to track historical prices and fluctuations in real-time empowers investors to strategize effectively. By leveraging data analytics and market insights, traders can identify trends and make predictions about future price movements. The Metals-API facilitates this by offering a comprehensive suite of endpoints designed to meet the needs of developers and traders alike.
API Description
The Metals-API is a powerful tool that provides real-time and historical data for various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). This API is designed to empower developers to build next-generation applications that require accurate metal pricing data. With its innovative features, the Metals-API transforms how traders access and utilize metals data.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rates, updated frequently based on the user's subscription plan. This ensures that traders have access to the most current pricing information, which is essential for making timely trading decisions. Additionally, the API provides historical rates dating back to 2019, allowing users to analyze price trends over time.
Moreover, the Metals-API supports a variety of endpoints that cater to different needs. For instance, the Bid and Ask endpoint allows users to retrieve real-time bid and ask prices, while the Convert endpoint enables currency conversion between metals and fiat currencies. The Time-Series endpoint is particularly useful for those looking to analyze price movements over specific periods, providing daily historical rates between two dates of the user's choice.
Key Features and Endpoints
The Metals-API offers a range of endpoints that enhance its functionality, making it a versatile tool for developers. Below are some of the key features:
- 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 ensures that traders have the most up-to-date information at their fingertips.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is invaluable for trend analysis.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for various metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that allows users to convert any amount from one currency to another, facilitating transactions and analysis across different currencies.
- Time-Series Endpoint: This endpoint enables users to query the API for daily historical rates between two dates of their choice, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: With this feature, users can retrieve information about how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This endpoint allows users to retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold purity levels.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is essential for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, allowing traders to analyze daily price movements effectively.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, which is beneficial for those interested in long-term price trends.
- API Key: Each user is assigned a unique API key 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 in data interpretation.
- Available Endpoints: The API comes with a comprehensive list of endpoints, each providing different functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, ensuring users can easily find the symbols they need for their queries.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: This feature allows users to access the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints, along with their expected responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1747368077,
"base": "USD",
"date": "2025-05-16",
"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 a successful request, providing the latest exchange rates for various metals, including gold (XAU). The rates are expressed per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1747281677,
"base": "USD",
"date": "2025-05-15",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example illustrates how to retrieve historical rates for a specific date. The response includes the rates for gold and other metals, allowing users to analyze past price movements.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-09",
"end_date": "2025-05-16",
"base": "USD",
"rates": {
"2025-05-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-16": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The Time-Series endpoint allows users to track price changes over a specified period. The response includes daily rates for each date within the range, enabling detailed analysis of trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1747368077,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates the Convert endpoint, which allows users to convert a specified amount from one currency to another. In this case, it shows the conversion of 1000 USD to gold (XAU).
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-09",
"end_date": "2025-05-16",
"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"
}
The Fluctuation endpoint provides insights into how metal prices have changed over a specified period. The response includes the starting and ending rates, as well as the percentage change, which is crucial for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1747368077,
"base": "USD",
"date": "2025-05-16",
"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 essential data for traders, showing the open, high, low, and close prices for a specific date. This information is vital for technical analysis and trading strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1747368077,
"base": "USD",
"date": "2025-05-16",
"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"
}
The Bid/Ask endpoint provides current bid and ask prices for metals, which is crucial for traders looking to execute orders at the best possible prices. The spread information also helps assess market liquidity.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for developers looking to access historical prices and real-time data for precious metals like gold. By leveraging the various endpoints available, developers can create applications that provide valuable insights into market trends and price movements. The API's capabilities, such as the Latest Rates, Historical Rates, and Time-Series endpoints, empower users to make informed trading decisions based on accurate data.
As the digital transformation of precious metals continues, the Metals-API stands out as a vital resource for traders and developers alike. By integrating this API into their applications, users can harness the power of real-time data analytics and market insights, ultimately enhancing their trading strategies and decision-making processes.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals. Visit the Metals-API Website to learn more about the innovative features and capabilities that can transform your approach to precious metals trading.