Download Libyan Dinar (LYD) Historical Prices using this API
Download Libyan Dinar (LYD) Historical Prices using this API
The Libyan Dinar (LYD) is the official currency of Libya, and understanding its historical prices is crucial for various financial analyses and applications. With the rise of digital transformation in financial markets, accessing historical data has become easier than ever. The Metals-API provides a powerful solution for developers looking to download historical prices of the Libyan Dinar and other currencies. This blog post will explore the capabilities of the Metals-API, its endpoints, and how you can leverage it to gain insights into the Libyan Dinar's historical pricing.
About Libyan Dinar (LYD)
The Libyan Dinar has undergone significant changes since its introduction in 1971. As Libya's economy evolves, so does the importance of accurate and timely financial data. The digital transformation in metal markets has opened new avenues for technological innovation and advancement, allowing developers to harness data analytics and insights effectively. By integrating smart technology, businesses can now predict future trends and make informed decisions based on historical data.
As a developer, you can utilize the Metals-API to access a wealth of information regarding the Libyan Dinar. This API not only provides historical prices but also real-time data, enabling you to build next-generation applications that require up-to-date financial information.
API Description
The Metals-API is a robust tool designed for developers who need access to real-time and historical metals data, including currency exchange rates. Its capabilities empower developers to create applications that can analyze market trends, perform currency conversions, and track price fluctuations. The API is built with innovation in mind, allowing for seamless integration into various applications.
For more information, you can visit the Metals-API Website or check the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Each endpoint serves a unique purpose, allowing developers to access specific data efficiently. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various currencies, including the Libyan Dinar. Depending on your subscription plan, you can receive updates every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, you can retrieve historical data for the Libyan Dinar.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices, which are essential for traders looking to make informed decisions.
- Convert Endpoint: The conversion endpoint enables you to convert any amount from one currency to another, making it easy to work with the Libyan Dinar in various applications.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, providing a comprehensive view of price trends over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, which is vital for understanding market dynamics.
- Carat Endpoint: Retrieve information about gold rates by carat, which can be useful for jewelers and investors alike.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the lowest and highest prices for a given date, providing insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is beneficial for those involved in metal trading.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in JSON format.
- Available Endpoints: The Metals-API comes with 14 endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies, including the Libyan Dinar.
For a complete list of supported symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1783383179,
"base": "USD",
"date": "2026-07-07",
"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": 1783296779,
"base": "USD",
"date": "2026-07-06",
"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-06-30",
"end_date": "2026-07-07",
"base": "USD",
"rates": {
"2026-06-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-07": {
"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": 1783383179,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-30",
"end_date": "2026-07-07",
"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": 1783383179,
"base": "USD",
"date": "2026-07-07",
"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": 1783383179,
"base": "USD",
"date": "2026-07-07",
"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
The Metals-API is an invaluable resource for developers looking to access historical prices of the Libyan Dinar and other currencies. By leveraging its various endpoints, you can gain insights into market trends, perform currency conversions, and track fluctuations over time. The API's comprehensive documentation and support for multiple currencies make it a versatile tool for financial applications.
As the financial landscape continues to evolve, integrating APIs like Metals-API into your applications will be essential for staying ahead of the curve. Whether you are building a trading platform, a financial analysis tool, or a currency converter, the Metals-API provides the data and functionality you need to succeed.
For further exploration, make sure to check out the Metals-API Documentation for detailed implementation guidance and the Metals-API Supported Symbols page for a complete list of available currencies. Embrace the future of financial data with the Metals-API and unlock the potential of the Libyan Dinar.