Get São Tomé and Príncipe Dobra (STD) Historical Prices for Investment Strategies using this API
Get So Tom and Prncipe Dobra (STD) Historical Prices for Investment Strategies using this API
Investing in metals has become increasingly popular among investors looking to diversify their portfolios and hedge against inflation. One of the most effective ways to analyze investment opportunities in metals is by accessing historical price data. In this blog post, we will explore how to obtain historical prices for the So Tom and Prncipe Dobra (STD) using the Metals-API. This powerful API provides real-time and historical data for various metals, enabling developers to create innovative investment strategies.
About Neodymium (ND)
Neodymium, symbolized as ND, is a rare earth metal that has gained significant attention due to its applications in high-strength magnets, lasers, and various electronic devices. As the world moves towards digital transformation, the demand for neodymium and other rare earth metals is expected to rise. This shift is driven by technological innovation and advancements in data analytics, which allow for smarter technology integration in various industries.
The integration of smart technology in metal markets is revolutionizing how investors and developers approach metal trading. With the rise of data analytics, stakeholders can gain insights into market trends, price fluctuations, and investment opportunities. The future of neodymium and other metals lies in the ability to harness real-time data, enabling informed decision-making and strategic investments.
Metals-API Overview
The Metals-API is a comprehensive solution for accessing real-time and historical prices of various metals, including gold, silver, platinum, and palladium. This API empowers developers to build next-generation applications that leverage real-time metals data for investment strategies. With its innovative capabilities, the Metals-API transforms how users interact with metal market data.
One of the key features of the Metals-API is its ability to provide historical rates dating back to 2019. This allows investors to analyze past performance and make informed predictions about future trends. The API also offers a variety of endpoints, each designed to cater to specific data needs, making it a versatile tool for developers.
Key Features and Endpoints
The Metals-API offers a range of endpoints that provide valuable data for developers and investors. Here are some of the most notable features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or every 10 minutes. This feature is essential for investors who need up-to-date information to make timely decisions.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, developers can query the Metals-API for historical rates, allowing for in-depth analysis of price trends over time.
- Bid and Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for various metals. Depending on the subscription plan, this endpoint provides crucial data for traders looking to optimize their buying and selling strategies.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This feature is particularly useful for investors dealing with multiple currencies in their transactions.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice. It is invaluable for analyzing trends and fluctuations over specific periods.
- Fluctuation Endpoint: Users can retrieve information about how currencies fluctuate on a day-to-day basis. This endpoint is essential for understanding market volatility and making informed investment decisions.
- Carat Endpoint: This feature provides information about gold rates by carat. Users can easily access data relevant to their specific needs by appending a base to the endpoint.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest price for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can obtain open, high, low, and close prices for a specific date, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends in the metal markets.
- API Key: Each user is assigned a unique API key that must be passed into the API base URL's access_key parameter for authentication.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API features 14 endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
List of Symbols
The Metals-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 metal data into their applications.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1773102047,
"base": "USD",
"date": "2026-03-10",
"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": 1773015647,
"base": "USD",
"date": "2026-03-09",
"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-03-03",
"end_date": "2026-03-10",
"base": "USD",
"rates": {
"2026-03-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-10": {
"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": 1773102047,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-03",
"end_date": "2026-03-10",
"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": 1773102047,
"base": "USD",
"date": "2026-03-10",
"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": 1773102047,
"base": "USD",
"date": "2026-03-10",
"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
In conclusion, the Metals-API offers a robust solution for accessing historical prices and real-time data for various metals, including the So Tom and Prncipe Dobra (STD). By leveraging the capabilities of this API, developers can create innovative applications that provide valuable insights into metal markets. The extensive range of endpoints, including the latest rates, historical rates, and fluctuation tracking, empowers users to make informed investment decisions.
For developers looking to integrate this powerful API into their applications, the Metals-API Documentation provides comprehensive guidance on usage, endpoints, and response structures. Additionally, the Metals-API Supported Symbols page offers a complete list of available metal symbols, ensuring users can access the data they need.
As the demand for metals continues to grow, utilizing the Metals-API will be essential for developers and investors alike. By harnessing the power of real-time data and historical insights, users can navigate the complexities of the metal markets and develop effective investment strategies.