Access Bulgarian Lev (BGN) Historical Prices with this API
Access Bulgarian Lev (BGN) Historical Prices with this API
In today's rapidly evolving financial landscape, the ability to access historical prices for currencies like the Bulgarian Lev (BGN) is crucial for developers and analysts alike. With the advent of APIs such as the Metals-API, obtaining real-time and historical data has never been easier. This blog post delves into the capabilities of the Metals-API, focusing on how it empowers users to access and analyze historical prices of the Bulgarian Lev and other metals.
About Bulgarian Lev (BGN)
The Bulgarian Lev (BGN) is the official currency of Bulgaria, and its exchange rates can significantly impact trade, investment, and economic analysis. As the world moves towards digital transformation, the integration of technology in financial markets has become paramount. The Metals-API stands at the forefront of this transformation, offering innovative solutions for accessing real-time and historical data.
Technological advancements in data analytics have enabled developers to create applications that provide insights into market trends and currency fluctuations. By leveraging the capabilities of the Metals-API, developers can build next-generation applications that utilize real-time metals data, enhancing their decision-making processes.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical exchange rates for various metals and currencies, including the Bulgarian Lev. This API is built on the principles of innovation and technological advancement, allowing users to harness the transformative potential of data analytics.
With the Metals-API, developers can create applications that not only retrieve current exchange rates but also analyze historical data to identify trends and make informed decisions. The API's capabilities extend to various endpoints, each designed to cater to specific data needs, from the latest rates to historical trends.
For detailed documentation on how to utilize the API effectively, visit the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a range of endpoints that provide different functionalities, allowing developers to tailor their applications to meet specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, developers can retrieve past exchange rates, enabling them to analyze trends over time.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices, providing insights into market conditions and helping traders make informed decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts from one currency to another seamlessly. This is particularly useful for applications that require real-time conversion capabilities.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two chosen dates, allowing for in-depth analysis of price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information on how currencies fluctuate on a day-to-day basis, helping users understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices over a specified period, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specified date, which is crucial for technical analysis.
- Historical LME Endpoint: Users can access historical rates for LME symbols dating back to 2008, which is vital for those involved in trading metals.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The Metals-API delivers exchange rates relative to USD, ensuring consistency in data presentation.
- Available Endpoints: The API features 14 endpoints, each providing distinct functionalities, ensuring comprehensive coverage of user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing users to stay informed about the latest offerings.
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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Below are examples of various endpoints and their corresponding responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1785456910,
"base": "USD",
"date": "2026-07-31",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1785370510,
"base": "USD",
"date": "2026-07-30",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2026-07-24",
"end_date": "2026-07-31",
"base": "USD",
"rates": {
"2026-07-24": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-26": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-31": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
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": 1785456910,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-24",
"end_date": "2026-07-31",
"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) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1785456910,
"base": "USD",
"date": "2026-07-31",
"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
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1785456910,
"base": "USD",
"date": "2026-07-31",
"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
Accessing historical prices for the Bulgarian Lev (BGN) and other metals is essential for developers and analysts looking to make informed decisions in the financial markets. The Metals-API provides a comprehensive suite of endpoints that cater to various data needs, from real-time exchange rates to historical trends.
By leveraging the capabilities of the Metals-API, developers can create innovative applications that harness the power of data analytics and smart technology integration. Whether you are tracking fluctuations, converting currencies, or analyzing historical data, the Metals-API offers the tools necessary to succeed in today's dynamic financial environment.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the extensive features available. Don't forget to check the Metals-API Supported Symbols page for a complete list of available currencies and metals.