Get Accurate Sri Lankan Rupee (LKR) Prices in Multiple Currencies with this API
Get Accurate Sri Lankan Rupee (LKR) Prices in Multiple Currencies with this API
In today's fast-paced financial landscape, having access to real-time data is crucial for businesses and developers alike. The Metals-API provides an innovative solution for obtaining accurate Sri Lankan Rupee (LKR) prices in various currencies. This API is designed to empower developers by offering comprehensive data on metal prices and currency conversions, enabling the creation of next-generation applications that can adapt to the ever-changing market dynamics.
About Tellurium (TE)
Tellurium is a fascinating metal that has gained attention in recent years due to its unique properties and applications. As industries undergo digital transformation, the metal markets are also evolving, driven by technological innovation and advancements. The integration of smart technologies and data analytics is reshaping how metals like Tellurium are traded and valued.
With the rise of data analytics, businesses can gain insights into market trends, allowing them to make informed decisions. The future of metal markets is likely to be characterized by increased transparency and efficiency, thanks to the integration of advanced technologies. As developers, understanding these trends can help in building applications that cater to the needs of modern businesses.
API Description
The Metals-API is a powerful tool that provides real-time metals data, enabling developers to build applications that require accurate and timely information. With its robust capabilities, the API allows users to access a wide range of features, including real-time exchange rates, historical data, and currency conversion. This API is particularly beneficial for businesses that operate in multiple currencies, as it simplifies the process of obtaining accurate pricing information.
For more detailed information on how to implement this API, refer to the Metals-API Documentation. The documentation provides comprehensive guidance on how to utilize the API effectively, including endpoint descriptions and usage examples.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different 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 your subscription plan. This feature is essential for businesses that require up-to-date pricing information to make timely decisions.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date (YYYY-MM-DD) to the endpoint. This feature allows businesses to analyze trends over time and make informed predictions about future price movements.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, which is crucial for traders looking to make quick decisions based on market conditions.
- Convert Endpoint: This endpoint allows users to convert any amount from one currency to another, facilitating seamless transactions across different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling businesses to track price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, which is vital for risk management and strategic planning.
- Carat Endpoint: Obtain information about gold rates by carat, which is particularly useful for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping businesses identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, providing a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is essential for businesses involved in trading metals on the London Metal Exchange.
- API Key: Your unique API key is required for authentication and is passed into the API base URL's access_key parameter.
- API Response: Exchange rates are delivered relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing distinct functionalities tailored to various business needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metal symbols, ensuring you have the latest information at your fingertips.
List of Symbols
The 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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1783901934,
"base": "USD",
"date": "2026-07-13",
"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": 1783815534,
"base": "USD",
"date": "2026-07-12",
"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-06",
"end_date": "2026-07-13",
"base": "USD",
"rates": {
"2026-07-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-13": {
"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": 1783901934,
"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-06",
"end_date": "2026-07-13",
"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": 1783901934,
"base": "USD",
"date": "2026-07-13",
"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": 1783901934,
"base": "USD",
"date": "2026-07-13",
"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 accurate Sri Lankan Rupee (LKR) prices in various currencies. With its extensive range of features, including real-time rates, historical data, and conversion capabilities, this API empowers businesses to make informed decisions based on reliable data. By leveraging the capabilities of the Metals-API, developers can create innovative applications that meet the demands of today's dynamic financial landscape.
For further exploration of the API's capabilities, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page. These resources will provide you with the necessary tools to effectively implement the API and maximize its potential in your projects.