How to Get Real-Time Rhodium (XRH) Prices with Metals-API

How to Get Real-Time Rhodium (XRH) Prices with Metals-API
Metals-API. We will explore the capabilities of the API, provide step-by-step instructions, and offer example API calls to help you integrate this powerful tool into your applications.
About Rhodium (XRH)
API Description
Metals-API is a powerful tool that provides access to real-time and historical market prices for various metals, including Rhodium. This API is designed for developers looking to integrate metals pricing data into their applications seamlessly. With its user-friendly interface and comprehensive documentation, the Metals-API enables developers to access a wide range of features, including:
- Latest Rates Endpoint: Get real-time exchange rate data updated at intervals based on your subscription plan.
- Historical Rates Endpoint: Access historical rates dating back to 2019 for most currencies.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals.
- Convert Endpoint: Convert any amount from one metal to another or to/from USD.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis.
- Carat Endpoint: Retrieve information about Gold rates by Carat.
- Lowest/Highest Price Endpoint: Get the lowest and highest price for a specified date.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008.
- API Key: Use your unique API key to access the API.
- API Response: Receive exchange rates relative to USD.
- Supported Symbols Endpoint: Get a constantly updated list of available currencies.
- Gold Price India Endpoint: Retrieve the latest gold price in India.
- News Endpoint: Access the latest news articles related to various metals.
Key Features and Endpoints
Latest Rates Endpoint allows you to retrieve real-time exchange rates for all available metals, including Rhodium. Depending on your subscription plan, this endpoint can provide updates every 60 minutes or even every 10 minutes. This feature is particularly useful for traders who need to stay informed about market fluctuations.
{
"success": true,
"timestamp": 1754787778,
"base": "USD",
"date": "2025-08-10",
"rates": {
"XRH": 0.000482,
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint is another valuable feature that allows you to access historical exchange rates for any date since 1999. This is particularly useful for analysts and traders who want to study past trends and make predictions based on historical data. By appending a specific date to the endpoint, you can retrieve the rates for that date. Here’s an example response:
{
"success": true,
"timestamp": 1754701378,
"base": "USD",
"date": "2025-08-09",
"rates": {
"XRH": 0.000485,
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid and Ask Endpoint is another powerful feature that enables you to retrieve real-time bid and ask prices for metals. This is crucial for traders who need to know the current market prices to make buying or selling decisions. The response from this endpoint will include the bid and ask prices along with the spread. Here’s an example:
{
"success": true,
"timestamp": 1754787778,
"base": "USD",
"date": "2025-08-10",
"rates": {
"XRH": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Convert Endpoint allows you to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who deal in multiple currencies and need to quickly calculate the equivalent value in another metal. Here’s an example of how the response looks:
{
"success": true,
"query": {
"from": "USD",
"to": "XRH",
"amount": 1000
},
"info": {
"timestamp": 1754787778,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint allows you to query the API for daily historical rates between two dates of your choice. This is particularly useful for analyzing trends over a specific period. The response will include the rates for each day within the specified range. Here’s an example:
{
"success": true,
"timeseries": true,
"start_date": "2025-08-03",
"end_date": "2025-08-10",
"base": "USD",
"rates": {
"2025-08-03": {
"XRH": 0.000485
},
"2025-08-05": {
"XRH": 0.000483
},
"2025-08-10": {
"XRH": 0.000482
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint allows you to track rate fluctuations between two dates. This is particularly useful for understanding market volatility and making strategic trading decisions. The response will include the start and end rates, as well as the percentage change. Here’s an example:
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-03",
"end_date": "2025-08-10",
"base": "USD",
"rates": {
"XRH": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint provides essential data for traders looking to analyze market trends. This endpoint returns the open, high, low, and close prices for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1754787778,
"base": "USD",
"date": "2025-08-10",
"rates": {
"XRH": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint provides access to rates dating back to 2008. This is particularly useful for analyzing long-term trends in the metals market.
Authentication and API Key
Common Pitfalls and Troubleshooting
- Invalid API Key: Ensure that your API key is correctly entered and has not expired.
- Rate Limiting: Be aware of the rate limits associated with your subscription plan to avoid exceeding the allowed number of requests.
- Incorrect Endpoint Usage: Double-check the endpoint you are using and ensure that you are passing the correct parameters.
Metals-API Documentation for detailed information on error codes and troubleshooting steps.
Conclusion
Metals-API Supported Symbols page. Whether you are a trader, analyst, or developer, the Metals-API is a valuable resource for accessing real-time metals data and unlocking the potential of the metals market.