Get Historical Prices for Brass Shell (BRSH) via this API
Get Historical Prices for Brass Shell (BRSH) via this API
In the rapidly evolving landscape of metal markets, the demand for accurate and timely data has never been more critical. Brass, represented by the symbol BRSH, is a versatile alloy that plays a significant role in various industries, from manufacturing to electronics. With the advent of digital transformation, the way we access and analyze metal prices has changed dramatically. This blog post will explore how to obtain historical prices for Brass using the Metals-API, a powerful tool that empowers developers to harness real-time data for innovative applications.
About Brass (BRASS)
Brass is an alloy primarily composed of copper and zinc, known for its excellent corrosion resistance and machinability. As industries continue to embrace technological innovation, the integration of smart technology in metal markets has become a focal point. The ability to analyze data effectively can lead to insights that drive decision-making and operational efficiency.
Data analytics plays a crucial role in understanding market trends and price fluctuations. By leveraging advanced analytics, businesses can gain insights into demand patterns, optimize inventory levels, and enhance pricing strategies. The future of metal markets lies in the ability to integrate these insights into actionable strategies, and the Metals-API is at the forefront of this transformation.
API Description
The Metals-API provides developers with a comprehensive suite of tools to access real-time and historical metal prices. This API is designed to facilitate the development of next-generation applications that require accurate and timely data. With its robust capabilities, the Metals-API enables users to retrieve various data points, including the latest rates, historical prices, and conversion rates.
One of the standout features of the Metals-API is its ability to deliver data in a user-friendly JSON format, making it easy for developers to integrate into their applications. The API supports a wide range of endpoints, each tailored to meet specific data retrieval needs. This flexibility allows developers to create customized solutions that cater to their unique requirements.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality. Here are some of the most notable endpoints:
- 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 or even every 10 minutes. This feature is essential for applications that require the most current pricing information.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date to the endpoint, developers can retrieve past pricing data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to obtain real-time bid and ask prices for metals. It is particularly useful for traders and financial analysts who need to make informed decisions based on current market conditions.
- Convert Endpoint: The Metals-API includes a dedicated currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD. This functionality is crucial for businesses operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates. It is ideal for analyzing price trends over time and understanding market dynamics.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis using this endpoint. It provides insights into market volatility and helps businesses manage risk effectively.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat. It is particularly useful for jewelers and manufacturers who need precise pricing based on gold purity.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period. It is essential for identifying price extremes and making strategic decisions.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific time period, providing a comprehensive view of market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends in the metals market.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate and authorize access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API features 14 different endpoints, each designed to provide specific functionalities, catering to a wide range of user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available metal symbols, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about 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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1767053625,
"base": "USD",
"date": "2025-12-30",
"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": 1766967225,
"base": "USD",
"date": "2025-12-29",
"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": "2025-12-23",
"end_date": "2025-12-30",
"base": "USD",
"rates": {
"2025-12-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-30": {
"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": 1767053625,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-23",
"end_date": "2025-12-30",
"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": 1767053625,
"base": "USD",
"date": "2025-12-30",
"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": 1767053625,
"base": "USD",
"date": "2025-12-30",
"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
In conclusion, the Metals-API provides a robust and flexible solution for accessing historical prices for Brass and other metals. By leveraging its various endpoints, developers can create applications that not only retrieve real-time data but also analyze historical trends and fluctuations. The integration of smart technology and data analytics into metal markets is paving the way for more informed decision-making and strategic planning.
As industries continue to evolve, the importance of accurate and timely data will only grow. The Metals-API stands out as a transformative tool that empowers developers to harness the power of real-time metals data. For more information on how to get started, visit the Metals-API Documentation and explore the extensive capabilities of this innovative API.