The Easiest Way to Get Thai Baht (THB) Historical Rates with API Integrations
The Easiest Way to Get Thai Baht (THB) Historical Rates with API Integrations
In today's fast-paced digital economy, accessing historical financial data is crucial for developers and analysts alike. One of the most efficient ways to obtain historical rates for currencies, including Thai Baht (THB), is through the Metals-API. This API provides a robust platform for retrieving real-time and historical data on various metals and currencies, empowering developers to build innovative applications that leverage this data. In this blog post, we will explore how to access historical prices using the Metals-API, including example endpoints, parameters, and data formats.
Metals-API Information
The Metals-API is a powerful tool designed for developers who need reliable and accurate data on metal prices and currency conversions. With its extensive range of endpoints, the API allows users to access real-time rates, historical data, and various analytical features that can enhance decision-making processes in financial markets.
About Tellurium (TE)
While our primary focus is on Thai Baht (THB), it's worth mentioning Tellurium (TE) as an example of how digital transformation is impacting metal markets. The integration of smart technologies and data analytics is revolutionizing the way metals are traded and valued. With the rise of technological innovations, the market is witnessing a shift towards more data-driven decision-making processes. Developers can harness these advancements to create applications that provide insights into market trends, fluctuations, and future possibilities.
As we delve deeper into the capabilities of the Metals-API, we will uncover how it empowers developers to build next-generation applications that not only track metal prices but also analyze historical trends and predict future movements. This transformative potential is essential for anyone looking to stay ahead in the competitive landscape of financial technology.
API Description
The Metals-API offers a comprehensive suite of features that cater to various needs in the financial sector. With a focus on innovation and technological advancement, the API provides real-time metals data that can be integrated into applications seamlessly. Developers can access a wide range of functionalities, including:
- Real-time exchange rates updated frequently based on subscription plans.
- Historical rates dating back to 2019, allowing for in-depth analysis of price movements.
- Bid and Ask prices for accurate trading insights.
- Currency conversion capabilities to facilitate transactions across different currencies.
- Time-series data for analyzing trends over specific periods.
- Fluctuation tracking to monitor day-to-day changes in rates.
- Open/High/Low/Close (OHLC) data for detailed market analysis.
- Historical LME data for insights into the London Metal Exchange.
For more detailed information, you can visit the Metals-API Documentation.
Key Features and Endpoints
The Metals-API provides a variety of endpoints that serve different purposes. Here are some of the key features and their applications:
Latest Rates Endpoint
The Latest Rates endpoint is designed to provide real-time exchange rate data for metals. Depending on your subscription plan, this endpoint can return data updated every 60 minutes or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
{
"success": true,
"timestamp": 1772809707,
"base": "USD",
"date": "2026-03-06",
"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
Accessing historical rates is straightforward with the Metals-API. You can query historical rates by appending a specific date (YYYY-MM-DD) to the endpoint. This feature is invaluable for analysts looking to study price trends over time.
{
"success": true,
"timestamp": 1772723307,
"base": "USD",
"date": "2026-03-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
The Time-Series endpoint allows developers to query the API for daily historical rates between two specified dates. This feature is particularly useful for creating visualizations and reports that illustrate price movements over time.
{
"success": true,
"timeseries": true,
"start_date": "2026-02-27",
"end_date": "2026-03-06",
"base": "USD",
"rates": {
"2026-02-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert endpoint is a valuable feature that allows users to convert any amount from one metal to another or to/from USD. This functionality is essential for applications that require currency conversion for transactions.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772809707,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
The Fluctuation endpoint enables users to track how rates fluctuate between two dates. This feature is particularly useful for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-27",
"end_date": "2026-03-06",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC endpoint provides detailed market data, including the opening, highest, lowest, and closing prices for a specific time period. This data is crucial for traders who analyze market trends and make strategic decisions.
{
"success": true,
"timestamp": 1772809707,
"base": "USD",
"date": "2026-03-06",
"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
The Bid/Ask endpoint provides current bid and ask prices for metals, which is essential for traders looking to execute orders at the best possible prices.
{
"success": true,
"timestamp": 1772809707,
"base": "USD",
"date": "2026-03-06",
"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"
}
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including but not limited to:
- XAU - Gold
- XAG - Silver
- XPT - Platinum
- XPD - Palladium
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
Conclusion
In conclusion, the Metals-API offers a powerful and flexible solution for developers seeking to access historical rates for Thai Baht (THB) and other metals. With its extensive range of endpoints, including the Latest Rates, Historical Rates, Time-Series, and more, developers can build applications that provide valuable insights into market trends and fluctuations. By leveraging the capabilities of the Metals-API, you can create innovative solutions that enhance decision-making processes in the financial sector.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the comprehensive documentation available. Whether you are looking to integrate real-time data into your applications or analyze historical trends, the Metals-API is your go-to resource for reliable and accurate metals data.