Implementing API to get Iridium (IRD) prices
Implementing API to Get Iridium (IRD) Prices
In the rapidly evolving landscape of financial technology, the ability to access real-time data is paramount for developers and businesses alike. One such innovative solution is the Metals-API, which provides comprehensive access to metal prices, including Iridium (IRD). This blog post delves into the capabilities of the Metals-API, exploring its features, endpoints, and how it can be leveraged to obtain accurate and timely pricing information for Iridium and other metals.
Metals-API Information
The Metals-API is a powerful tool designed for developers seeking to integrate real-time metal pricing data into their applications. By utilizing this API, developers can access a wealth of information, including current prices, historical data, and market trends. The API supports a wide range of metals, making it an invaluable resource for those involved in trading, investment, and market analysis.
About Iridium (IRD)
Iridium is one of the rarest and most valuable metals in the world, known for its high density and resistance to corrosion. As industries increasingly turn to advanced materials, the demand for Iridium is expected to rise. The Metals-API allows developers to tap into this growing market by providing real-time pricing data, enabling informed decision-making and strategic planning.
API Description
The Metals-API is designed to empower developers with the tools necessary to build next-generation applications that require real-time metals data. With its robust infrastructure, the API offers a variety of endpoints that cater to different data needs, from the latest rates to historical trends. This flexibility allows developers to create applications that can analyze market movements, forecast trends, and optimize trading strategies.
For more information on the API's capabilities, visit the Metals-API Website or check out the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that cater to the needs of developers:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. Developers can easily access the latest prices for Iridium and other metals.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can retrieve past pricing data, which is essential for trend analysis and forecasting.
- Bid and Ask Endpoint: This feature allows developers to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts between different metals or from/to USD, facilitating seamless transactions.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, helping developers understand market volatility.
- Carat Endpoint: For those interested in gold, this endpoint allows users to retrieve gold rates by carat, which is particularly useful for jewelers and traders.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, offering insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for those tracking industrial metals.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 14 endpoints, each providing distinct functionalities to cater to various data needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, allowing developers to stay informed about the latest offerings.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including Iridium (IRD). For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1783210152,
"base": "USD",
"date": "2026-07-05",
"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,
"IRD": 0.000123 // Example for Iridium
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1783123752,
"base": "USD",
"date": "2026-07-04",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748,
"IRD": 0.000120 // Example for Iridium
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-28",
"end_date": "2026-07-05",
"base": "USD",
"rates": {
"2026-06-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"IRD": 0.000121 // Example for Iridium
},
"2026-06-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913,
"IRD": 0.000122 // Example for Iridium
},
"2026-07-05": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"IRD": 0.000123 // Example for Iridium
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "IRD",
"amount": 1000
},
"info": {
"timestamp": 1783210152,
"rate": 0.000123 // Example for Iridium
},
"result": 0.123,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-28",
"end_date": "2026-07-05",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"IRD": {
"start_rate": 0.000121,
"end_rate": 0.000123,
"change": 2.0e-6,
"change_pct": 1.65 // Example for Iridium
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1783210152,
"base": "USD",
"date": "2026-07-05",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"IRD": {
"open": 0.000120,
"high": 0.000125,
"low": 0.000119,
"close": 0.000123 // Example for Iridium
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1783210152,
"base": "USD",
"date": "2026-07-05",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"IRD": {
"bid": 0.000122,
"ask": 0.000124,
"spread": 2.0e-6 // Example for Iridium
}
},
"unit": "per troy ounce"
}
Conclusion
The Metals-API is an essential tool for developers looking to access real-time pricing data for Iridium and other metals. With its extensive range of endpoints and capabilities, the API empowers users to build applications that can analyze market trends, convert currencies, and track fluctuations. By integrating the Metals-API into your projects, you can leverage the power of real-time data to make informed decisions and stay ahead in the competitive metals market.
For further exploration of the API's features, refer to the Metals-API Documentation and stay updated with the latest symbols on the Metals-API Supported Symbols page. Embrace the future of metal trading with the Metals-API and unlock the potential of real-time data in your applications.