Fetch Brass Shell (BRSH) Historical Prices for the past week using this API
Fetch Brass Shell (BRSH) Historical Prices for the Past Week Using This API
In the rapidly evolving world of metal markets, the demand for accurate and timely data has never been greater. For developers and analysts alike, having access to historical prices of metals such as Brass (BRSH) is crucial for making informed decisions. In this blog post, we will explore how to fetch historical prices for Brass using the Metals-API. We will delve into the capabilities of this API, the innovative technologies behind it, and how it can empower developers to create next-generation applications.
Metals-API Information
The Metals-API is a powerful tool that provides real-time and historical data on various metals, including Brass. It leverages advanced technologies to deliver accurate and timely information, enabling users to make data-driven decisions. With features such as real-time exchange rates, historical data, and various endpoints for different functionalities, the Metals-API stands out as a leader in the field of metal market data.
About Brass (BRASS)
Brass, an alloy primarily made of copper and zinc, has seen a significant transformation in its market dynamics due to digital advancements. The integration of smart technology and data analytics has revolutionized how traders and investors interact with metal markets. With the rise of digital transformation, the demand for real-time data has surged, allowing stakeholders to respond swiftly to market changes.
Technological innovation has paved the way for enhanced data analytics, providing insights that were previously unattainable. The Metals-API plays a crucial role in this transformation, offering developers the tools they need to harness the power of data. By integrating the API into their applications, developers can access historical prices, analyze trends, and make predictions about future market movements.
API Description
The Metals-API is designed to empower developers with real-time metals data. It offers a range of endpoints that cater to different needs, from fetching the latest rates to accessing historical data. This API is particularly valuable for those looking to build applications that require accurate and timely information about metal prices.
One of the standout features of the Metals-API is its ability to provide historical rates dating back to 2019. This allows users to analyze trends over time, making it easier to identify patterns and make informed decisions. The API also supports various endpoints, each designed to fulfill specific requirements, such as converting currencies, tracking fluctuations, and retrieving bid and ask prices.
Key Features and Endpoints
The Metals-API offers a comprehensive suite of features that cater to the diverse needs of developers and analysts. Here are some of the key endpoints and their functionalities:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. It allows users to access the most current prices for various metals, including Brass.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data for Brass, enabling them to analyze trends over time.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals. Depending on the subscription plan, this endpoint can provide valuable insights into market dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, which can be used to convert any amount from one metal to another or to/from USD. This is particularly useful for traders who need to assess the value of their holdings in different currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is essential for conducting in-depth analyses and understanding price movements over specific periods.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis using this endpoint. It provides insights into market volatility, helping traders make informed decisions.
- Carat Endpoint: For those interested in gold rates, the carat endpoint allows users to retrieve information about gold prices by carat. This feature is particularly useful for jewelers and investors in the gold market.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period, providing valuable insights into market trends.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access open, high, low, and close prices for a specific time period, which is crucial for technical analysis and trading strategies.
- 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 market.
- API Key: To access the Metals-API, users must obtain an API key, which is passed into the API base URL's access_key parameter. This key is essential for authentication and authorization.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency and ease of use for developers.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and 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 and trends.
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
Understanding the API's response structure is crucial for effective integration. Below are examples of JSON responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1770337189,
"base": "USD",
"date": "2026-02-06",
"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
{
"success": true,
"timestamp": 1770250789,
"base": "USD",
"date": "2026-02-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-01-30",
"end_date": "2026-02-06",
"base": "USD",
"rates": {
"2026-01-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1770337189,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-30",
"end_date": "2026-02-06",
"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) Price Endpoint
{
"success": true,
"timestamp": 1770337189,
"base": "USD",
"date": "2026-02-06",
"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
{
"success": true,
"timestamp": 1770337189,
"base": "USD",
"date": "2026-02-06",
"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 comprehensive solution for accessing historical prices and real-time data for metals like Brass. By leveraging the various endpoints available, developers can create applications that not only fetch current prices but also analyze historical trends, track fluctuations, and convert between different metals and currencies.
The integration of smart technology and data analytics into the metal markets is transforming how stakeholders interact with this vital sector. As we look to the future, the potential for innovation and advancement in this field is immense. By utilizing the Metals-API Documentation, developers can unlock the full potential of this powerful tool and stay ahead in the ever-changing landscape of metal prices.
For more information on the available symbols and their specifications, visit the Metals-API Supported Symbols page. The future of metal trading is here, and with the right tools, you can be a part of it.