Get Bulgarian Lev (BGN) Historical Prices using this API

Get Bulgarian Lev (BGN) Historical Prices using this API
The Bulgarian Lev (BGN) is a currency that has seen significant fluctuations over the years, influenced by various economic factors and global market trends. For developers and financial analysts looking to access historical prices of the Bulgarian Lev, the Metals-API offers a robust solution. This API provides real-time and historical data for various metals and currencies, enabling users to build applications that require accurate financial data. In this blog post, we will explore the capabilities of the Metals-API, focusing on how to retrieve historical prices for the Bulgarian Lev and other related functionalities.
Metals-API Information
About Bulgarian Lev (BGN)
The Bulgarian Lev is the official currency of Bulgaria, and its value is influenced by a variety of factors, including economic policies, market demand, and geopolitical events. As the world moves towards digital transformation, the metal markets are also evolving, with technological innovations paving the way for more efficient trading and data analysis. The integration of smart technologies and data analytics is transforming how traders and investors interact with currency markets, providing insights that were previously unavailable.
With the rise of data-driven decision-making, understanding historical price trends of the Bulgarian Lev becomes crucial. By leveraging the capabilities of the Metals-API, developers can access a wealth of information that can enhance their applications, providing users with insights into price movements and market trends. The API empowers developers to create next-generation applications that can analyze historical data, track fluctuations, and even predict future trends based on past performance.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data for various metals and currencies. It offers a range of endpoints that allow users to access the latest rates, historical prices, and other essential financial data. The API is built with innovation in mind, enabling developers to create applications that can respond to market changes in real-time.
One of the standout features of the Metals-API is its ability to deliver data in a structured format, making it easy for developers to integrate into their applications. The API supports various endpoints, each designed to fulfill specific data retrieval needs. For instance, the Metals-API Documentation provides detailed information on how to use these endpoints effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals and currencies. Depending on your subscription plan, the API updates this data every 60 minutes or every 10 minutes, ensuring that users have access to the most current information.
- 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 data for the Bulgarian Lev, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, allowing users to convert amounts from one currency to another seamlessly. This is particularly useful for applications that require real-time conversion rates.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates, making it ideal for analyzing trends over specific periods.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and price stability.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for applications focused on precious metals.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides comprehensive data on the open, high, low, and close prices for a specific date, enabling detailed market analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a broader perspective on metal prices.
- API Key: Each user is assigned a unique API key that must be included in API requests, ensuring secure access to the data.
- 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 serving a unique purpose, allowing for comprehensive data retrieval.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users can access the latest information.
- Gold Price India Endpoint: Users can retrieve the latest gold prices in India, which is particularly useful for regional market analysis.
- News Endpoint: This feature allows users to access the latest news articles related to various metals, keeping them informed about market developments.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers looking to leverage its capabilities. Below are examples of various API endpoints and their corresponding JSON responses.
Latest Rates Endpoint
{
"success": true,
"timestamp": 1760500835,
"base": "USD",
"date": "2025-10-15",
"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"
}
The above response shows the latest exchange rates for various metals, with the base currency set to USD. Each rate is provided per troy ounce, allowing for easy comparison across different metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1760414435,
"base": "USD",
"date": "2025-10-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response illustrates how to access historical rates for a specific date. Developers can use this data to analyze trends and fluctuations in the market.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-08",
"end_date": "2025-10-15",
"base": "USD",
"rates": {
"2025-10-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-15": {
"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, making it ideal for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1760500835,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates how to convert an amount from one currency to another using the convert endpoint. The response includes the conversion rate and the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-08",
"end_date": "2025-10-15",
"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 rates change over time, which is essential for understanding market dynamics.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1760500835,
"base": "USD",
"date": "2025-10-15",
"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 a comprehensive view of market performance for a specific date, allowing for detailed analysis of price movements.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1760500835,
"base": "USD",
"date": "2025-10-15",
"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 crucial information for traders, allowing them to understand market liquidity and pricing dynamics.
Conclusion
In conclusion, the Metals-API offers a powerful and flexible solution for accessing historical prices of the Bulgarian Lev and other currencies. With its wide range of endpoints, developers can build applications that provide real-time data, historical analysis, and insights into market trends. The API's capabilities, including the latest rates, historical rates, and fluctuation tracking, empower users to make informed decisions based on accurate financial data.
For developers looking to integrate the Metals-API into their applications, the Metals-API Website provides comprehensive resources, including documentation and support. By leveraging the power of this API, developers can create innovative solutions that enhance the way users interact with financial data.
As the financial landscape continues to evolve, staying informed about market trends and historical price movements will be essential for success. The Metals-API not only simplifies access to this data but also opens up new possibilities for analysis and application development in the ever-changing world of finance.