Get São Tomé and Príncipe Dobra (STD) Historical Prices using this API

Introduction
In the world of finance and trading, having access to accurate and timely data is crucial. For those interested in the metal markets, the ability to retrieve historical prices for metals like Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD) is essential. This blog post will delve into how to obtain historical prices for the Dobra (STD) using the Metals-API. We will explore the capabilities of this API, its endpoints, and how it can empower developers to create innovative applications that leverage real-time metals data.
Understanding Metals-API
The Metals-API is a powerful tool designed for developers and businesses that require real-time and historical data on metal prices. With its robust architecture, the API provides a wide range of functionalities, allowing users to access the latest rates, historical data, and various analytical insights. The API is built with a focus on digital transformation in metal markets, enabling technological innovation and advancement through data analytics and smart technology integration.
About Neodymium (ND)
While this blog focuses on metals like Gold and Silver, it's worth mentioning Neodymium (ND) as an example of how metals are evolving in the digital age. Neodymium is a rare earth metal that has seen increased demand due to its use in high-strength magnets, which are essential for various technologies, including electric vehicles and renewable energy systems. The digital transformation in metal markets is characterized by the integration of advanced technologies such as IoT, AI, and big data analytics, which are reshaping how metals are sourced, traded, and utilized.
Technological Innovation and Advancement
With the rise of smart technology, the metal markets are experiencing a significant shift. The Metals-API exemplifies this change by providing developers with the tools needed to create applications that can analyze market trends, track price fluctuations, and make informed trading decisions. The API's capabilities allow for real-time data retrieval, which is crucial for traders who need to react quickly to market changes.
Data Analytics and Insights
Data analytics plays a pivotal role in understanding market dynamics. The Metals-API offers various endpoints that provide insights into historical price trends, allowing users to analyze data over time. This capability is essential for making strategic decisions in trading and investment. By leveraging the API, developers can build applications that visualize data, providing users with clear insights into price movements and market trends.
Future Trends and Possibilities
As the demand for metals continues to grow, the future of metal trading will likely be shaped by advancements in technology and data analytics. The Metals-API is at the forefront of this evolution, offering a platform that can adapt to the changing landscape of the metal markets. Developers can harness the power of this API to create innovative solutions that meet the needs of traders and investors alike.
API Description
The Metals-API provides a comprehensive suite of endpoints that cater to various needs in the metal trading space. From retrieving the latest rates to accessing historical data, the API is designed to be user-friendly and efficient. Below are some of the key features and endpoints that developers can utilize:
Latest Rates Endpoint
The Latest Rates endpoint allows users to obtain real-time exchange rate data for metals. Depending on the subscription plan, the API can return data updated every 60 minutes or even every 10 minutes. This feature is essential for traders who need to stay informed about the latest market conditions.
{
"success": true,
"timestamp": 1760414599,
"base": "USD",
"date": "2025-10-14",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical rates is crucial for analyzing market trends over time. The Historical Rates endpoint allows users to query the API for historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve valuable data that can inform trading strategies.
{
"success": true,
"timestamp": 1760328199,
"base": "USD",
"date": "2025-10-13",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for metals. This information is vital for traders looking to make informed decisions based on current market conditions.
{
"success": true,
"timestamp": 1760414599,
"base": "USD",
"date": "2025-10-14",
"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"
}
Convert Endpoint
The Convert endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1760414599,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting detailed analyses of price movements over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2025-10-07",
"end_date": "2025-10-14",
"base": "USD",
"rates": {
"2025-10-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation endpoint provides information about how currencies fluctuate on a day-to-day basis. This feature allows traders to track rate changes and make informed decisions based on historical performance.
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-07",
"end_date": "2025-10-14",
"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 Price endpoint allows users to retrieve the open, high, low, and close prices for a specific time period. This data is crucial for traders who rely on technical analysis to make informed decisions.
{
"success": true,
"timestamp": 1760414599,
"base": "USD",
"date": "2025-10-14",
"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"
}
Historical LME Endpoint
The Historical LME endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for users interested in the London Metal Exchange prices.
API Key and Authentication
To access the Metals-API, users must obtain an API Key, which is a unique identifier passed into the API base URL's access_key parameter. This key is essential for authentication and ensures that only authorized users can access the data.
API Response Structure
The API delivers exchange rates relative to USD by default. All data is returned in a structured JSON format, making it easy for developers to parse and utilize the information in their applications. Understanding the response fields is crucial for effective data handling.
Common Use Cases
Developers can leverage the Metals-API for various applications, including:
- Building trading platforms that require real-time data.
- Creating analytical tools for market research and trend analysis.
- Integrating with financial applications to provide users with up-to-date metal prices.
Conclusion
The Metals-API is a transformative tool for developers looking to access historical prices and real-time data for metals like Gold, Silver, Platinum, and Palladium. With its extensive range of endpoints and capabilities, the API empowers users to build innovative applications that can analyze market trends and make informed trading decisions. By understanding the various features and how to implement them, developers can unlock the full potential of the Metals-API. For more information, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals. Embrace the future of metal trading with the power of real-time data at your fingertips.