Retrieve Vijayawada Gold 24k (VIJA-24k) Historical Prices with this API

Retrieve Vijayawada Gold 24k (VIJA-24k) Historical Prices with this API
In the ever-evolving landscape of precious metals trading, having access to accurate and timely data is paramount. For those interested in the historical prices of Gold, particularly the 24k variant in Vijayawada, the Metals-API offers a robust solution. This API not only provides real-time data but also empowers developers to retrieve historical prices, analyze trends, and make informed trading decisions. In this blog post, we will delve into the capabilities of the Metals-API, focusing on how to effectively retrieve historical prices for Gold (XAU) and explore the innovative features that make this API a powerful tool for developers.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. Its intrinsic value and universal acceptance make it a preferred choice for investors. With the digital transformation in precious metals trading, the integration of technology has revolutionized how market participants access and analyze data. The Metals-API stands at the forefront of this transformation, offering developers the ability to harness data analytics and market insights to enhance their trading strategies.
As the demand for digital asset solutions grows, the need for accurate price discovery becomes increasingly important. The Metals-API facilitates this by providing real-time and historical data, allowing traders to make informed decisions based on comprehensive market analysis. By leveraging the power of technology, developers can create next-generation applications that cater to the needs of modern investors.
API Description
The Metals-API is designed to provide developers with a seamless experience when accessing metals data. With its user-friendly interface and comprehensive documentation, developers can easily integrate the API into their applications. The API supports a wide range of functionalities, including retrieving the latest rates, historical prices, and even bid and ask prices for various metals.
One of the standout features of the Metals-API is its ability to deliver real-time data. Depending on the subscription plan, users can receive updates every 60 minutes or even every 10 minutes. This level of granularity ensures that traders have access to the most current information, enabling them to react swiftly to market changes.
For those interested in historical data, the Metals-API offers a dedicated endpoint that allows users to query historical rates dating back to 2019. This feature is particularly useful for analyzing trends and making predictions based on past performance. By appending a specific date to the API request, developers can retrieve the historical price of Gold (XAU) for any given day.
To explore the full capabilities of the Metals-API, developers can refer to the Metals-API Documentation, which provides detailed information on each endpoint and its functionalities.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for all available metals. Depending on the subscription plan, users can receive updates every 60 minutes or more frequently. The response includes the latest rates for Gold (XAU) and other metals, allowing traders to stay informed.
- Historical Rates Endpoint: Users can access historical exchange rates for any date since 2019. By appending a specific date to the API request, developers can retrieve the historical price of Gold (XAU) and analyze trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals. Understanding the bid-ask spread is crucial for traders looking to optimize their entry and exit points.
- 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 feature is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice. It is ideal for analyzing price movements over specific periods.
- Fluctuation Endpoint: Users can track rate fluctuations between two dates, providing insights into how prices change over time. This information is valuable for identifying trends and making informed trading decisions.
- Carat Endpoint: This feature allows users to retrieve information about Gold rates by carat. By appending a base currency and carat value, developers can access specific pricing information.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of Gold (XAU) over a specified period, assisting traders in identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve open, high, low, and close prices for Gold (XAU) over a specific time period, providing a comprehensive view of price movements.
- Historical LME Endpoint: This endpoint allows users to access historical rates for LME symbols dating back to 2008, providing additional context for market analysis.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API offers a comprehensive list of endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals supported by the API, allowing users to explore their options.
- Gold Price India Endpoint: This dedicated endpoint retrieves the latest gold price in India, making it easier for traders in the region to access relevant data.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, let's explore some example responses for key endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1747188077,
"base": "USD",
"date": "2025-05-14",
"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"
}
The response indicates a successful request, providing the latest exchange rates for various metals, including Gold (XAU). The rates are presented per troy ounce, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1747101677,
"base": "USD",
"date": "2025-05-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for Gold (XAU) on a specific date, allowing developers to analyze past performance and trends.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-07",
"end_date": "2025-05-14",
"base": "USD",
"rates": {
"2025-05-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for Gold (XAU) over a specified period, enabling developers to visualize price movements and trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1747188077,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates the conversion of an amount from USD to Gold (XAU), providing the equivalent value in troy ounces. This feature is particularly useful for traders who need to convert between currencies and metals.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-07",
"end_date": "2025-05-14",
"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 response provides insights into how Gold (XAU) and other metals have changed over a specified period, highlighting both absolute and percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1747188077,
"base": "USD",
"date": "2025-05-14",
"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 open, high, low, and close prices for Gold (XAU) and other metals, offering a comprehensive view of price movements within a specific timeframe.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1747188077,
"base": "USD",
"date": "2025-05-14",
"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 response provides current bid and ask prices for Gold (XAU) and other metals, along with the spread, which is crucial for traders looking to optimize their trades.
Conclusion
The Metals-API is an invaluable resource for developers seeking to access real-time and historical data on precious metals, particularly Gold (XAU). With its extensive range of endpoints, the API empowers users to analyze market trends, make informed trading decisions, and develop innovative applications that cater to the needs of modern investors.
By leveraging the capabilities of the Metals-API, developers can create solutions that enhance the trading experience, from real-time price tracking to historical analysis. The comprehensive documentation available at the Metals-API Documentation ensures that developers have the resources they need to implement these features effectively.
As the demand for accurate and timely data continues to grow, the Metals-API stands ready to support developers in their quest for excellence in precious metals trading. For more information and to explore the full range of supported symbols, visit the Metals-API Website and discover how this powerful tool can transform your trading strategies.