Get Brazilian Real (BRL) Historical Prices using this API
Get Brazilian Real (BRL) Historical Prices using this API
The Brazilian Real (BRL) is not just a currency; it represents a dynamic economy and a vibrant market that is increasingly influenced by technological advancements and digital transformation. In this blog post, we will explore how to obtain historical prices for the Brazilian Real using the Metals-API. This powerful API provides developers with the tools necessary to access real-time and historical data for various metals and currencies, enabling the creation of innovative applications that can leverage this data for insightful analytics and decision-making.
Metals-API Information
About Brazilian Real (BRL)
The Brazilian Real (BRL) has undergone significant changes over the years, influenced by both domestic and international economic factors. As the currency of Brazil, it plays a crucial role in the global market, particularly in the context of metal trading. The digital transformation in metal markets has led to the integration of advanced technologies that enhance data analytics and insights. With the rise of smart technology, the ability to access and analyze historical price data for BRL has become more accessible than ever.
Technological innovation has paved the way for developers to create applications that can analyze trends, forecast future prices, and provide valuable insights into market dynamics. The Metals-API is at the forefront of this transformation, offering a comprehensive suite of features that empower developers to harness the power of real-time metals data.
API Description
The Metals-API is designed to provide developers with access to a wealth of information regarding metals and currencies. It offers various endpoints that allow users to retrieve real-time and historical data, making it an essential tool for anyone looking to integrate metals pricing into their applications.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This capability is crucial for applications that require up-to-the-minute information to make informed decisions. Furthermore, the API allows users to access historical rates dating back to 2019, enabling comprehensive analysis of price trends over time.
The API's innovative approach to data delivery empowers developers to build next-generation applications that can analyze and visualize metals data in real-time. By leveraging data analytics and insights, businesses can make strategic decisions that are informed by historical trends and current market conditions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to fulfill specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This allows developers to access the most current pricing information available.
- Historical Rates Endpoint: Users can query historical rates for most currencies, including BRL, by appending a specific date in the format YYYY-MM-DD. This feature is invaluable for analyzing past price movements and trends.
- Bid And Ask Endpoint: This powerful feature enables 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, allowing users to convert amounts between different currencies, including BRL and various metals.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is particularly useful for jewelers and investors in 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, offering insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can obtain OHLC data for a specific time period, 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 for extensive analysis of market trends.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 different endpoints, each offering unique functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals, 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
To illustrate the capabilities of the Metals-API, here are some examples of API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1772929105,
"base": "USD",
"date": "2026-03-08",
"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 shows the latest exchange rates for various metals relative to USD. The "rates" object contains the current price for each metal symbol, which can be utilized in applications that require real-time pricing information.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1772842705,
"base": "USD",
"date": "2026-03-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example demonstrates how to access historical rates for metals on a specific date. The "rates" object provides the prices for each metal, allowing developers to analyze historical trends and make informed decisions based on past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-01",
"end_date": "2026-03-08",
"base": "USD",
"rates": {
"2026-03-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows users to retrieve exchange rates for a specific period. This is particularly useful for analyzing trends and fluctuations over time, providing insights into market behavior.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772929105,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert an amount from one currency to another using the convert endpoint. In this case, it shows the conversion of 1000 USD to gold (XAU), providing the resulting amount in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-01",
"end_date": "2026-03-08",
"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"
}
The fluctuation endpoint provides insights into how metal prices have changed over a specified period. This information is crucial for traders and analysts looking to understand market volatility and make informed decisions.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1772929105,
"base": "USD",
"date": "2026-03-08",
"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 the open, high, low, and close prices for metals over a specific period. This data is essential for technical analysis and helps traders identify potential market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1772929105,
"base": "USD",
"date": "2026-03-08",
"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"
}
The bid/ask endpoint provides current bid and ask prices for metals, along with the spread. This information is crucial for traders looking to execute buy or sell orders effectively.
Conclusion
In conclusion, the Brazilian Real (BRL) is a significant currency in the global market, and understanding its historical prices is essential for making informed decisions in trading and investment. The Metals-API offers a robust set of features that allow developers to access real-time and historical data for metals and currencies, including BRL. By leveraging the capabilities of this API, developers can create innovative applications that provide valuable insights into market trends and fluctuations.
With endpoints that cover everything from real-time rates to historical data and conversion capabilities, the Metals-API is an indispensable tool for anyone looking to integrate metals pricing into their applications. Whether you are a trader, analyst, or developer, the potential applications of this API are vast and varied, making it a powerful resource in today's data-driven world.
For more information on how to get started with the Metals-API, be sure to check out the Metals-API Documentation and explore the Metals-API Supported Symbols page for a comprehensive list of available currencies and metals.