Integrate this API to get Bhutanese Ngultrum (BTN) prices
Integrate this API to get Bhutanese Ngultrum (BTN) prices
In today's fast-paced financial landscape, having access to real-time data is crucial for developers and businesses alike. The ability to integrate an API that provides accurate and timely information about currency exchange rates, particularly for the Bhutanese Ngultrum (BTN), can empower developers to create innovative applications that cater to various market needs. One such powerful tool is the Metals-API, which offers comprehensive data on metals and their corresponding prices in various currencies, including BTN.
Metals-API Information
The Metals-API is a robust platform designed to provide developers with real-time and historical data on metal prices and currency conversions. This API is particularly beneficial for those looking to track the value of metals against the Bhutanese Ngultrum, allowing for informed decision-making in trading and investment.
About Tellurium (TE)
When discussing Tellurium, it is essential to consider the broader context of digital transformation in metal markets. The integration of smart technology and data analytics has revolutionized how traders and investors interact with metal markets. With the advent of APIs like Metals-API, developers can harness technological advancements to create applications that provide insights into market trends, price fluctuations, and historical data.
Technological innovation has paved the way for smarter integrations, enabling users to access real-time data and analytics that were previously unavailable. As we look to the future, the potential for further advancements in data analytics and smart technology integration will continue to shape the landscape of metal trading, making it more accessible and efficient for all stakeholders.
API Description
The Metals-API is designed to empower developers by providing them with the tools necessary to build next-generation applications. By integrating this API, developers can access real-time metals data, which is crucial for applications that require up-to-date pricing information. The API supports various endpoints that cater to different functionalities, allowing for a wide range of applications, from simple currency converters to complex trading platforms.
For detailed information on how to utilize the API, developers can refer to the Metals-API Documentation, which outlines the capabilities and features of the API, as well as implementation guidelines.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to serve specific purposes. 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 applications that require the most current pricing information.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to the API request. This is particularly useful for analyzing trends over time and making informed decisions based on past data.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices, which are crucial for traders looking to make quick decisions based on market conditions.
- Convert Endpoint: This endpoint allows for seamless currency conversion, enabling users to convert any amount from one currency to another, including conversions to and from BTN.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing insights into price movements over specific periods.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which can be useful for jewelers and traders in the gold market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specific date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view 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, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API features 14 endpoints, each providing unique functionalities to cater to diverse user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals supported by the API.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
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.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1778199263,
"base": "USD",
"date": "2026-05-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"
}
The response indicates a successful request, providing the timestamp, base currency, date, and the rates for various metals. Each rate is expressed in terms of troy ounces, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1778112863,
"base": "USD",
"date": "2026-05-07",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for a specific date, allowing users to analyze past market conditions and trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-05-01",
"end_date": "2026-05-08",
"base": "USD",
"rates": {
"2026-05-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-08": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This example shows how to retrieve exchange rates for a specific time period, allowing for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1778199263,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert amounts between currencies, providing the conversion rate and the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-01",
"end_date": "2026-05-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"
}
This response provides insights into how metal prices fluctuate over a specified period, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1778199263,
"base": "USD",
"date": "2026-05-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"
}
The OHLC endpoint provides critical data for technical analysis, allowing traders to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1778199263,
"base": "USD",
"date": "2026-05-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"
}
This endpoint provides current bid and ask prices, which are essential for traders to make informed decisions based on market conditions.
Conclusion
Integrating the Metals-API to access Bhutanese Ngultrum (BTN) prices offers developers a powerful tool for creating applications that require real-time and historical data on metal prices. With its extensive range of endpoints, the API provides comprehensive functionalities that cater to various market needs, from currency conversion to detailed price analysis.
By leveraging the capabilities of the Metals-API, developers can build innovative solutions that enhance trading strategies, provide insights into market trends, and facilitate informed decision-making. For more information on how to implement this API, be sure to check the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available currencies and metals.
As the financial landscape continues to evolve, the integration of real-time data through APIs like Metals-API will remain a cornerstone for developers looking to stay ahead in the competitive market. Embrace the future of trading and investment by harnessing the power of real-time metals data.