Get Comprehensive Sprott ESG Gold ETF (SESG) Historical Prices using this API
Get Comprehensive Sprott ESG Gold ETF (SESG) Historical Prices using this API
In the world of finance, having access to accurate and timely data is crucial for making informed decisions. For those interested in precious metals, particularly gold, the Sprott ESG Gold ETF (SESG) offers a unique investment opportunity. To effectively track the historical prices of gold and other metals, developers can leverage the powerful Metals-API. This blog post will delve into the capabilities of the Metals-API, focusing on how to obtain historical prices, particularly for gold (XAU), and explore the broader implications of digital transformation in the precious metals market.
Metals-API Information
The Metals-API is a robust tool designed for developers who need real-time and historical data on various metals, including gold, silver, platinum, and palladium. By utilizing this API, developers can create applications that provide insights into market trends, price fluctuations, and historical data, enabling users to make data-driven investment decisions.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, especially during times of economic uncertainty. Its value is influenced by various factors, including geopolitical events, inflation rates, and currency fluctuations. In recent years, the digital transformation of the financial sector has significantly impacted how investors interact with precious metals. The integration of data analytics and technology in trading has revolutionized price discovery, allowing for more accurate and timely information dissemination.
With the rise of digital asset solutions, investors can now access gold prices in real-time, analyze historical trends, and make informed decisions based on comprehensive market insights. The Metals-API plays a pivotal role in this transformation by providing developers with the tools necessary to build applications that harness the power of real-time metals data.
API Description
The Metals-API is designed to empower developers to create next-generation applications that require real-time and historical metals data. With its innovative features, the API allows users to access a wealth of information about various metals, including:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data for gold and other metals.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts from one metal to another or to/from USD, facilitating easier transactions.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, catering to specific market needs.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key, which is required to access the API's features securely.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API offers 14 different endpoints, each with unique functionalities tailored to meet diverse user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, 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.
Key Features and Endpoints
Each endpoint of the Metals-API is designed with specific functionalities that cater to the needs of developers and investors alike. Below, we explore some of the key features and their potential applications:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rates for all available metals. This endpoint is crucial for applications that require up-to-the-minute pricing information. For example, a trading platform could use this endpoint to display current gold prices to users.
{
"success": true,
"timestamp": 1774743626,
"base": "USD",
"date": "2026-03-29",
"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
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This is particularly useful for analysts and developers looking to study price trends over time. For instance, one could analyze how gold prices have changed over the past decade.
{
"success": true,
"timestamp": 1774657226,
"base": "USD",
"date": "2026-03-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
The Time-Series Endpoint enables users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for developers creating applications that require historical data analysis, such as investment tracking tools.
{
"success": true,
"timeseries": true,
"start_date": "2026-03-22",
"end_date": "2026-03-29",
"base": "USD",
"rates": {
"2026-03-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-29": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"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 is particularly useful for applications that require currency conversion for transactions or price comparisons.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1774743626,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how metal prices fluctuate on a day-to-day basis. This feature can be used to analyze market volatility and make informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-22",
"end_date": "2026-03-29",
"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 Open/High/Low/Close (OHLC) Price Endpoint provides detailed price data for a specific time period, including the opening, highest, lowest, and closing prices. This information is essential for traders who rely on technical analysis to make investment decisions.
{
"success": true,
"timestamp": 1774743626,
"base": "USD",
"date": "2026-03-29",
"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 allows users to retrieve current bid and ask prices for metals, providing insights into market liquidity and pricing dynamics. This information is crucial for traders looking to execute orders at optimal prices.
{
"success": true,
"timestamp": 1774743626,
"base": "USD",
"date": "2026-03-29",
"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. 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.
Conclusion
In conclusion, the Metals-API is an essential tool for developers and investors interested in precious metals, particularly gold. By providing access to real-time and historical data, the API empowers users to make informed decisions based on comprehensive market insights. The various endpoints, including the Latest Rates, Historical Rates, and OHLC Price endpoints, offer a wealth of information that can be utilized in a multitude of applications, from trading platforms to investment analysis tools.
As the financial landscape continues to evolve with digital transformation, the integration of technology and data analytics in trading will only become more critical. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to build innovative solutions that meet the demands of today's market. For more information on how to get started, visit the Metals-API Documentation and explore the possibilities that await.