The Easiest Way to Get Brass Shell (BRSH) Historical Rates via REST API
The Easiest Way to Get Brass Shell (BRSH) Historical Rates via REST API
In today's fast-paced digital landscape, the demand for real-time data and historical insights is paramount, especially in the metals market. For developers and businesses looking to access Brass Shell (BRSH) historical prices, the Metals-API offers a robust and user-friendly solution. This blog post will guide you through the process of obtaining Brass Shell historical rates using the Metals-API, detailing the various endpoints, parameters, and data formats involved. By the end of this article, you will have a comprehensive understanding of how to leverage this powerful API for your applications.
Understanding Brass (BRASS)
Brass, an alloy primarily composed of copper and zinc, has been a staple in various industries due to its durability and malleability. As digital transformation continues to reshape the metal markets, the integration of technological innovations and data analytics is becoming increasingly vital. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to access real-time and historical data on metals, including Brass Shell (BRSH).
With the rise of smart technology integration, the ability to analyze historical rates and trends in metal prices has never been more accessible. The Metals-API empowers developers to build next-generation applications that can harness these insights, paving the way for future trends and possibilities in the metals market.
API Description
The Metals-API is a powerful JSON API that provides access to a wide range of metal prices and currency conversion functionalities. It allows developers to retrieve real-time exchange rates, historical data, and various other metrics related to metals. This API is designed with innovation and technological advancement in mind, enabling users to create applications that can respond to market changes in real-time.
For more detailed information, you can visit the Metals-API Website or explore the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific needs within the metals market. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes or every 10 minutes. This is crucial for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. You can query the Metals-API for historical rates by appending a date (YYYY-MM-DD) to the endpoint, allowing you to analyze trends over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices, essential for trading applications that require accurate pricing data.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing you to convert any amount from one currency to another, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, helping you understand market volatility.
- Carat Endpoint: Access information about Gold rates by Carat, which is particularly useful for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specific date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint allows you to get the open, high, low, and close prices for a specific date, essential 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: Exchange rates delivered by the Metals-API are by default relative to USD, and all data is returned in a structured JSON format.
- Available Endpoints: The Metals-API comes with 14 API endpoints, each providing different functionalities tailored to various user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies, ensuring you have the latest information at your fingertips.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
List of Symbols
The 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
To illustrate how to use the Metals-API effectively, let's explore some example endpoints and their corresponding responses.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1776521244,
"base": "USD",
"date": "2026-04-18",
"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"
}
This response indicates that the API call was successful, providing the latest rates for various metals relative to USD.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1776434844,
"base": "USD",
"date": "2026-04-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for a specific date, allowing for trend analysis over time.
Time-Series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-04-11",
"end_date": "2026-04-18",
"base": "USD",
"rates": {
"2026-04-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of exchange rates, allowing developers to analyze trends and fluctuations over the specified period.
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": 1776521244,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates how to convert a specified amount from USD to Gold (XAU), providing the conversion rate and result.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-11",
"end_date": "2026-04-18",
"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 insights into how the rates for various metals have fluctuated over the specified period, which is essential for market analysis.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1776521244,
"base": "USD",
"date": "2026-04-18",
"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 endpoint provides crucial data for traders and analysts looking to perform technical analysis based on historical price movements.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1776521244,
"base": "USD",
"date": "2026-04-18",
"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, which are essential for making informed trading decisions.
Conclusion
Accessing Brass Shell (BRSH) historical rates via the Metals-API is a straightforward process that opens up a world of possibilities for developers and businesses alike. By leveraging the various endpoints offered by the API, you can obtain real-time data, historical insights, and detailed analytics that can drive your applications and decision-making processes.
Whether you are looking to analyze market trends, perform currency conversions, or track price fluctuations, the Metals-API provides the tools necessary to succeed in the dynamic metals market. For further exploration, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page.
In summary, the Metals-API is not just a data source; it is a gateway to understanding and navigating the complexities of the metals market. Embrace the power of real-time data and historical insights to enhance your applications and drive informed decision-making.