Get Raipur Gold 24k (RAIP-24k) Daily Average Historical Prices using this API

Introduction
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 gold, the Raipur Gold 24k (RAIP-24k) symbol represents a significant asset. This blog post will explore how to obtain historical prices for Raipur Gold 24k using the Metals-API, a powerful tool that provides real-time and historical data for various metals, including gold (XAU).
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a popular choice for investors and traders alike. The digital transformation in the precious metals market has led to the integration of advanced technologies that enhance trading efficiency and data accuracy. With the rise of data analytics, market insights have become more accessible, enabling traders to make better-informed decisions based on historical trends and real-time data.
The integration of technology in trading has revolutionized price discovery, allowing for innovative digital asset solutions. By leveraging APIs like Metals-API, developers can create applications that provide users with up-to-date information on gold prices, historical data, and market fluctuations.
API Description
The Metals-API is designed to empower developers with the tools needed to build next-generation applications that require real-time metals data. This API offers a wide range of features, including the ability to retrieve the latest rates, historical prices, and detailed market insights. By utilizing the Metals-API, developers can create applications that cater to the needs of traders, investors, and financial analysts.
Key Features and Endpoints
The Metals-API provides several endpoints that allow users to access various functionalities. Depending on your subscription plan, you can retrieve real-time exchange rate data updated at different intervals. The Latest Rates Endpoint is particularly useful for obtaining the most current prices for metals, including gold. This endpoint returns data that is refreshed every 60 minutes, every 10 minutes, or even more frequently, depending on your plan.
For those interested in historical data, the Historical Rates Endpoint allows users to query prices dating back to 2019. By appending a specific date to the API request, developers can access gold prices for any given day, providing valuable insights into market trends over time.
The Bid and Ask Endpoint is another powerful feature that enables users to retrieve real-time bid and ask prices for gold and other metals. This information is crucial for traders looking to execute buy or sell orders at optimal prices.
Additionally, the Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who deal with multiple currencies and need to quickly assess the value of their holdings.
The Time-Series Endpoint provides the ability to query daily historical rates between two dates of your choice, making it easier to analyze price movements over specific periods. This endpoint is invaluable for conducting technical analysis and identifying trends.
For those interested in understanding market fluctuations, the Fluctuation Endpoint allows users to track rate changes between two dates. This can help traders gauge market volatility and make informed decisions based on historical performance.
The Carat Endpoint provides information about gold rates by carat, which is essential for jewelers and consumers looking to understand the value of gold jewelry. By appending a base currency to the request, users can retrieve carat-specific pricing data.
To assist traders in making informed decisions, the Lowest/Highest Price Endpoint allows users to query the API for the lowest and highest prices of gold over a specified period. This information can be critical for identifying potential entry and exit points in the market.
The Open/High/Low/Close (OHLC) Price Endpoint provides comprehensive data on the open, high, low, and close prices for gold, enabling traders to analyze market performance over a specific timeframe.
For those interested in the London Metal Exchange (LME), the Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008, offering a wealth of data for analysis.
To access the Metals-API, users must obtain an API Key, which is passed into the API base URL's access_key parameter. This unique key is essential for authenticating requests and ensuring secure access to the API's features.
The API response delivers exchange rates relative to USD by default, with all data returned in a structured JSON format. This makes it easy for developers to parse and utilize the data in their applications.
For a complete list of all supported symbols, including gold, silver, platinum, and palladium, developers can refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers looking to integrate its features into their applications. Below are examples of various API endpoints, along with detailed explanations of their responses.
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rates for all available metals. Here is an example response:
{
"success": true,
"timestamp": 1746241307,
"base": "USD",
"date": "2025-05-03",
"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"
}
In this response, the success
field indicates whether the request was successful. The timestamp
provides the time of the response, while the base
indicates the base currency (USD in this case). The rates
object contains the exchange rates for various metals, including gold (XAU), silver (XAG), and others, measured in troy ounces.
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. Here is an example response:
{
"success": true,
"timestamp": 1746154907,
"base": "USD",
"date": "2025-05-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response structure is similar to the Latest Rates Endpoint, but it includes historical data for a specific date. The date
field indicates the date for which the rates are provided, allowing developers to analyze past market performance.
Time-Series Endpoint
The Time-Series Endpoint enables users to retrieve exchange rates for a specific time period. Here is an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-04-26",
"end_date": "2025-05-03",
"base": "USD",
"rates": {
"2025-04-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of exchange rates for the specified date range. Each date is associated with its corresponding rates, allowing developers to visualize trends and fluctuations over time.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here is an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1746241307,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
In this response, the query
object shows the conversion request details, including the source currency, target currency, and amount. The info
object provides the conversion rate at the time of the request, while the result
field shows the converted amount in troy ounces.
Fluctuation Endpoint
The Fluctuation Endpoint tracks rate fluctuations between two dates. Here is an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-26",
"end_date": "2025-05-03",
"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 detailed information about the fluctuations in rates for the specified period. The start_rate
and end_rate
fields indicate the rates at the beginning and end of the period, while the change
and change_pct
fields show the absolute and percentage changes, respectively.
OHLC (Open/High/Low/Close) Price Endpoint
The OHLC Price Endpoint provides open, high, low, and close prices for a specific time period. Here is an example response:
{
"success": true,
"timestamp": 1746241307,
"base": "USD",
"date": "2025-05-03",
"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 response provides a comprehensive overview of the price movements for gold and other metals during the specified period. The open
, high
, low
, and close
fields are essential for traders conducting technical analysis.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here is an example response:
{
"success": true,
"timestamp": 1746241307,
"base": "USD",
"date": "2025-05-03",
"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 gold and other metals, along with the spread, which is the difference between the bid and ask prices. This information is crucial for traders looking to execute transactions efficiently.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for developers and traders interested in precious metals, particularly gold. By utilizing the various endpoints available, users can access real-time and historical data, enabling them to make informed trading decisions. The API's capabilities, such as the Latest Rates Endpoint, Historical Rates Endpoint, and Time-Series Endpoint, provide valuable insights into market trends and fluctuations.
As the digital transformation in the precious metals market continues, APIs like Metals-API will play a crucial role in shaping the future of trading and investment. By leveraging the power of data analytics and technology integration, developers can create innovative applications that enhance the trading experience for users.
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 page for a complete list of available metal symbols. With the right tools and knowledge, you can harness the potential of real-time metals data to drive your trading strategies forward.