Fetch Brass Shell (BRSH) Historical Pricing Information using this API

Introduction
In the rapidly evolving landscape of metal markets, the need for accurate and timely data has never been more critical. For developers and businesses involved in trading or investing in metals, having access to historical pricing information is essential. This blog post will delve into how to fetch historical pricing information for Brass Shell (BRSH) using the Metals-API. We will explore the innovative features of this API, its capabilities, and how it can empower developers to create next-generation applications that leverage real-time metals data.
Metals-API Information
About Brass (BRASS)
Brass, an alloy primarily composed of copper and zinc, has been a staple in various industries due to its excellent corrosion resistance and machinability. As the world embraces digital transformation, the metal markets are also witnessing significant changes driven by technological innovation and advancements. The integration of smart technologies and data analytics is reshaping how businesses operate within this sector.
With the rise of data-driven decision-making, companies are increasingly relying on analytics to gain insights into market trends. The ability to access historical pricing data allows businesses to make informed decisions, forecast future trends, and optimize their operations. The future of metal markets lies in the seamless integration of technology and data, paving the way for smarter, more efficient processes.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical pricing data for various metals, including Brass. This API is designed to facilitate the development of applications that require accurate and timely metal pricing information. With its robust features, the Metals-API enables developers to build applications that can track market fluctuations, analyze trends, and provide valuable insights to users.
One of the standout features of the Metals-API is its ability to deliver real-time data updates. Depending on your subscription plan, the API can provide exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This capability is crucial for traders who need to make quick decisions based on the latest market conditions.
Moreover, the API supports a wide range of endpoints, each designed to cater to specific needs. From retrieving the latest rates to accessing historical data dating back to 2019, the Metals-API offers comprehensive solutions for various use cases. Developers can leverage these endpoints to create applications that not only display current prices but also analyze historical trends and fluctuations.
Key Features and Endpoints
The Metals-API boasts several key features that enhance its usability and functionality:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, allowing developers to access the most current pricing information. Depending on your subscription plan, updates can occur every 60 minutes or more frequently.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical pricing data, which is invaluable for trend analysis and forecasting.
- Bid and Ask Endpoint: This feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market demand and supply.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts between different metals or to/from USD. This feature is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates, facilitating 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 users understand market volatility.
- Carat Endpoint: 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 within a specified date range, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Developers can access open, high, low, and close prices for a specific date, providing a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for businesses involved in trading on the London Metal Exchange.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The Metals-API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API comes with a comprehensive list of endpoints, each serving different functionalities, making it versatile for various applications.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping users stay 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 metal data into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
The Latest Rates Endpoint allows developers to get real-time exchange rates for all available metals. Here’s an example of a typical response:
{
"success": true,
"timestamp": 1756076425,
"base": "USD",
"date": "2025-08-24",
"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 success
field indicates whether the request was successful. The timestamp
provides the time of the data retrieval, while the base
indicates the currency used for the exchange rates. The rates
object contains the current prices for various metals, expressed in troy ounces.
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. Here’s an example response:
{
"success": true,
"timestamp": 1755990025,
"base": "USD",
"date": "2025-08-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical pricing data, allowing developers to analyze trends over time. The date
field indicates the specific date for which the rates are applicable.
Time-series Endpoint
The Time-series Endpoint enables developers to get exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-08-17",
"end_date": "2025-08-24",
"base": "USD",
"rates": {
"2025-08-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for developers looking to visualize price trends over time, as it provides daily rates for the specified date range.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1756076425,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion result, indicating how much of the target metal (in this case, gold) can be obtained for a specified amount of USD.
Fluctuation Endpoint
The Fluctuation Endpoint provides insights into rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-17",
"end_date": "2025-08-24",
"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 endpoint is essential for traders who need to understand market volatility and make informed decisions based on price changes.
OHLC (Open/High/Low/Close) Price Endpoint
The OHLC Price Endpoint provides open, high, low, and close prices for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1756076425,
"base": "USD",
"date": "2025-08-24",
"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 data is crucial for traders who analyze market performance over specific periods, helping them make strategic decisions based on historical data.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here’s an example response:
{
"success": true,
"timestamp": 1756076425,
"base": "USD",
"date": "2025-08-24",
"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 endpoint is particularly useful for traders looking to understand market dynamics and make informed trading decisions based on current market conditions.
Conclusion
In conclusion, the Metals-API provides a comprehensive solution for developers seeking to access historical pricing information for metals like Brass Shell (BRSH). With its robust set of features, including real-time data updates, historical rates, and various endpoints tailored for specific needs, this API empowers developers to create innovative applications that can analyze market trends, track fluctuations, and provide valuable insights.
As the metal markets continue to evolve, leveraging advanced technologies and data analytics will be crucial for businesses looking to stay competitive. By utilizing the Metals-API, developers can harness the power of real-time data to build applications that not only meet current market demands but also anticipate future trends.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the extensive capabilities of this powerful tool. Additionally, check out the Metals-API Supported Symbols page for a complete list of available metals and their specifications.