Access Yellow Brass (Y-BRASS) Historical Prices through this API

Access Yellow Brass (Y-BRASS) Historical Prices through this API
Metals-API provides a robust solution for retrieving historical prices of Yellow Brass (Y-BRASS) and other metals, enabling users to harness the power of data analytics and insights. This blog post will delve into the capabilities of the Metals-API, focusing on how to access historical prices, the technological innovations behind it, and the future trends in the metal market.
About Brass (BRASS)
Metals-API Overview
Metals-API Website is a powerful tool that provides developers with access to real-time and historical metal prices. This API is designed to empower developers to build next-generation applications that require accurate and timely data. The Metals-API offers a variety of endpoints that cater to different needs, including the retrieval of historical prices for Yellow Brass (Y-BRASS).
Key Features and Endpoints
- Latest Rates Endpoint: This endpoint provides real-time exchange rates for all available metals, including Yellow Brass (Y-BRASS). Users can access the latest pricing information, which is crucial for making timely decisions in the market.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve historical pricing data for Yellow Brass (Y-BRASS) and analyze trends over time.
- Bid and Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This feature is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two dates of their choice, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which can be useful for businesses dealing with precious metals.
- Lowest/Highest Price Endpoint: This endpoint enables 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: Users can access OHLC data for specific time periods, which is essential 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.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate access to the API.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, including Yellow Brass (Y-BRASS).
- Gold Price India Endpoint: Users can retrieve the latest gold prices in India, which can be useful for businesses operating in the Indian market.
- News Endpoint: This feature allows users to access the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1751943689,
"base": "USD",
"date": "2025-07-08",
"rates": {
"Y-BRASS": 0.0025,
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1751857289,
"base": "USD",
"date": "2025-07-07",
"rates": {
"Y-BRASS": 0.0024,
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-01",
"end_date": "2025-07-08",
"base": "USD",
"rates": {
"2025-07-01": {
"Y-BRASS": 0.0024,
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-07-03": {
"Y-BRASS": 0.00245,
"XAU": 0.000483,
"XAG": 0.0382
},
"2025-07-08": {
"Y-BRASS": 0.0025,
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "Y-BRASS",
"amount": 1000
},
"info": {
"timestamp": 1751943689,
"rate": 0.0025
},
"result": 2.5,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-01",
"end_date": "2025-07-08",
"base": "USD",
"rates": {
"Y-BRASS": {
"start_rate": 0.0024,
"end_rate": 0.0025,
"change": 0.0001,
"change_pct": 4.17
},
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -0.000003,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1751943689,
"base": "USD",
"date": "2025-07-08",
"rates": {
"Y-BRASS": {
"open": 0.00245,
"high": 0.0025,
"low": 0.0024,
"close": 0.0025
},
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1751943689,
"base": "USD",
"date": "2025-07-08",
"rates": {
"Y-BRASS": {
"bid": 0.00248,
"ask": 0.00252,
"spread": 0.00004
},
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Conclusion
Metals-API Documentation provides extensive resources and guidance on how to implement these features effectively. Additionally, the Metals-API Supported Symbols page offers a complete list of available metal symbols, ensuring that users can easily find the data they need.