Get Osmium (OSMIUM) Historical Prices using this API

Get Osmium (OSMIUM) Historical Prices using this API
In the rapidly evolving landscape of metal markets, the demand for accurate and real-time data has never been more critical. As a developer, accessing historical prices for metals like Osmium (OSMIUM) can empower you to create innovative applications that leverage data analytics and insights. This blog post will explore how to obtain historical prices for Osmium using the Metals-API, a powerful tool designed for developers looking to integrate metal pricing data into their applications.
Metals-API Information
About Osmium (OSMIUM)
Osmium, represented by the symbol OSMIUM, is one of the rarest and densest metals known to man. Its unique properties make it valuable in various applications, including electronics, fountain pen nibs, and as a catalyst in chemical reactions. The digital transformation in metal markets has opened new avenues for trading and investment, making it essential for developers to access reliable historical data.
Technological innovation has revolutionized how we interact with metal markets. With the integration of smart technologies and data analytics, developers can now harness the power of real-time data to make informed decisions. The Metals-API provides a comprehensive solution for accessing historical prices, enabling developers to build next-generation applications that can analyze trends and predict future movements in the market.
API Description
The Metals-API is a robust API that offers a wide range of functionalities for accessing metal prices and historical data. This API is designed to empower developers with the tools they need to create applications that can analyze market trends, perform currency conversions, and retrieve real-time pricing data. The transformative potential of real-time metals data cannot be overstated, as it allows developers to build applications that can respond to market changes instantaneously.
With the Metals-API, developers can access various endpoints that cater to different needs, including:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on your plan, you can receive updates every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to your query. This feature is crucial for developers looking to analyze past performance and trends.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals, allowing for precise trading and investment strategies.
- Convert Endpoint: This endpoint allows you to convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling in-depth analysis over specific periods.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping you identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API offers a comprehensive list of endpoints, each providing different functionalities tailored to developers' needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- Gold Price India Endpoint: Retrieve the latest gold price in India using a dedicated endpoint.
- News Endpoint: Get the latest news articles related to various metals, keeping you informed about market developments.
Key Features and Endpoints
The Metals-API provides a plethora of features that can be leveraged for various applications. Below, we will delve into some of the key endpoints and their functionalities, along with example responses to illustrate their usage.
Latest Rates Endpoint
The Latest Rates Endpoint allows developers to retrieve real-time exchange rates for all available metals. This endpoint is crucial for applications that require up-to-the-minute pricing information.
{
"success": true,
"timestamp": 1747278228,
"base": "USD",
"date": "2025-05-15",
"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 rates
object contains the current exchange rates for various metals, with the base currency being USD. The unit
indicates that the rates are expressed per troy ounce.
Historical Rates Endpoint
Accessing historical rates is essential for analyzing trends over time. The Historical Rates Endpoint allows you to query the API for historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1747191828,
"base": "USD",
"date": "2025-05-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for the specified date, allowing developers to analyze past market behavior and make informed predictions about future trends.
Time-Series Endpoint
The Time-Series Endpoint enables developers to query the API for daily historical rates between two dates of their choice. This is particularly useful for applications that require a comprehensive view of price movements over a specified period.
{
"success": true,
"timeseries": true,
"start_date": "2025-05-08",
"end_date": "2025-05-15",
"base": "USD",
"rates": {
"2025-05-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily rates for the specified date range, allowing developers to visualize trends and fluctuations in metal prices over time.
Convert Endpoint
The Convert Endpoint is a powerful feature that allows developers to convert any amount from one metal to another or to/from USD. This functionality is essential for applications that require seamless transactions and conversions.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1747278228,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
In this example, the API converts 1000 USD to its equivalent in troy ounces of gold (XAU), providing both the conversion rate and the result.
Fluctuation Endpoint
The Fluctuation Endpoint allows developers to track how metal prices fluctuate between two dates. This is particularly useful for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-08",
"end_date": "2025-05-15",
"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 price fluctuations for each metal, including the start and end rates, the change in value, and the percentage change.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows developers to access open, high, low, and close prices for a specific date. This data is vital for technical analysis and understanding market trends.
{
"success": true,
"timestamp": 1747278228,
"base": "USD",
"date": "2025-05-15",
"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 view of the price movements for each metal throughout the day, allowing developers to analyze market behavior effectively.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals, which is essential for traders looking to make informed decisions based on real-time market data.
{
"success": true,
"timestamp": 1747278228,
"base": "USD",
"date": "2025-05-15",
"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 each metal, along with the spread, which is crucial for traders looking to optimize their transactions.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page. This resource is invaluable for developers looking to understand the various metals available for querying and analysis.
Conclusion
In conclusion, the Metals-API offers a powerful suite of tools for developers looking to access historical prices for metals like Osmium. By leveraging the various endpoints available, developers can create applications that provide real-time data, analyze trends, and make informed decisions based on historical performance. The integration of smart technology and data analytics into metal markets is transforming how we interact with these valuable resources.
As the demand for accurate and timely data continues to grow, utilizing APIs like the Metals-API will be essential for developers aiming to stay ahead in the competitive landscape of metal trading and investment. For more information on how to get started, visit the Metals-API Documentation and explore the endless possibilities that await.