How to retrieve Cobalt Sulphate (CO-SO4) prices using this API
Introduction
In today's rapidly evolving metal markets, staying informed about the latest prices and trends is crucial for businesses and developers alike. One of the key players in this space is Cobalt Sulphate (CO-SO4), a compound that has gained significant attention due to its applications in batteries and other technologies. To effectively retrieve Cobalt Sulphate prices and other metal data, developers can leverage the Metals-API, a powerful tool that provides real-time and historical data on various metals.
Metals-API Information
About Cobalt (LCO)
Cobalt is a critical metal in the modern economy, particularly in the production of rechargeable batteries for electric vehicles and portable electronics. As industries shift towards sustainable energy solutions, the demand for cobalt is expected to rise. The digital transformation in metal markets is being driven by technological innovations that allow for better data analytics and insights. With the integration of smart technologies, businesses can now access real-time data, enabling them to make informed decisions quickly.
As we look towards the future, the possibilities for cobalt and its applications are vast. The integration of advanced data analytics will empower businesses to predict market trends, optimize supply chains, and enhance product development. The Metals-API plays a pivotal role in this transformation by providing developers with the tools they need to build next-generation applications that harness the power of real-time metals data.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals pricing data. This API offers a variety of endpoints that allow users to retrieve the latest rates, historical data, and even perform conversions between different metals and currencies. The API's capabilities are not just limited to retrieving prices; it also empowers developers to create applications that can analyze trends, track fluctuations, and provide insights into market dynamics.
With the Metals-API, developers can build applications that are not only responsive to current market conditions but also predictive in nature. This is achieved through the API's robust data analytics features, which can process vast amounts of information and deliver actionable insights. The potential for innovation is immense, as businesses can leverage this data to enhance their operational efficiency and strategic planning.
Key Features and Endpoints
The Metals-API comes equipped with a range of features that cater to the diverse needs of developers. Here are some of the key endpoints and their functionalities:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes, ensuring that users have access to the most current pricing information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the API for past prices, allowing for comprehensive market analysis.
- Bid And Ask Endpoint: This powerful feature enables users 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 endpoint, allowing users to convert amounts between different metals or from/to USD. This is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates, facilitating trend analysis over time.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, helping businesses understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Developers can access OHLC data for specific time periods, which is crucial for traders looking to analyze price movements.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a long-term perspective on metal prices.
- API Key: Each user is assigned a unique API key, which is required to access the API's features. This key ensures secure access to the data.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available metal symbols, allowing users to stay informed about the latest additions.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them updated on market developments.
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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are examples of various API endpoints along with their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1772669399,
"base": "USD",
"date": "2026-03-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
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1772582999,
"base": "USD",
"date": "2026-03-04",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-02-26",
"end_date": "2026-03-05",
"base": "USD",
"rates": {
"2026-02-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-05": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772669399,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-26",
"end_date": "2026-03-05",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1772669399,
"base": "USD",
"date": "2026-03-05",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1772669399,
"base": "USD",
"date": "2026-03-05",
"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"
}
Conclusion
The Metals-API is an invaluable resource for developers looking to access real-time and historical data on metals, including Cobalt Sulphate prices. With its extensive range of endpoints, the API empowers users to build applications that can analyze market trends, track fluctuations, and provide insights that drive business decisions. As the demand for metals continues to grow, leveraging such innovative technologies will be essential for staying competitive in the market.
For more information on how to implement the Metals-API in your projects, refer to the Metals-API Documentation. Additionally, to explore the full list of supported symbols, visit the Metals-API Supported Symbols page. By utilizing these resources, developers can unlock the full potential of real-time metals data and drive innovation in their applications.