Obtain Sprott ESG Gold ETF (SESG) Historical Prices from this API

Obtain Sprott ESG Gold ETF (SESG) Historical Prices from this API
In the ever-evolving landscape of financial technology, the demand for precise and real-time data has never been more critical, especially in the realm of precious metals trading. The Sprott ESG Gold ETF (SESG) is a prime example of how investors are increasingly looking to integrate environmental, social, and governance (ESG) factors into their investment strategies. To effectively track the historical prices of SESG, developers can leverage the capabilities of the Metals-API, a powerful tool that provides comprehensive access to real-time and historical data for various metals, including gold.
Metals-API Information
The Metals-API is designed to empower developers with the tools necessary to build next-generation applications that require accurate and timely metals data. By integrating this API, developers can access a wealth of information that can enhance trading strategies, provide market insights, and facilitate data analytics. The API's innovative features allow for seamless integration into existing systems, enabling users to harness the power of data analytics and technology integration in trading.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of the financial markets. As a precious metal, it serves not only as a store of value but also as a hedge against inflation and economic uncertainty. The digital transformation in the precious metals market has led to innovative solutions that enhance price discovery and trading efficiency. With the rise of data analytics, traders can now gain deeper insights into market trends, enabling more informed decision-making.
Moreover, technology integration in trading platforms has revolutionized how investors interact with gold markets. The ability to access real-time data and historical prices through APIs like Metals-API allows for more agile trading strategies. This integration fosters innovation in price discovery, making it easier for traders to react to market changes swiftly.
API Description
The Metals-API offers a robust suite of features that cater to the diverse needs of developers and traders alike. With capabilities that include real-time exchange rates, historical data access, and advanced analytics, this API stands out as a transformative tool in the financial technology landscape. By utilizing the Metals-API, developers can build applications that not only track gold prices but also analyze trends and fluctuations over time.
For detailed documentation on how to implement the API, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on utilizing the various endpoints effectively.
Key Features and Endpoints
The Metals-API boasts several key features that enhance its functionality and usability for developers:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated at intervals depending on the subscription plan. Developers can access the latest gold prices and other metal rates, ensuring they have the most current information at their fingertips.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for gold and other metals, 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 metals, providing critical information for traders looking to make informed decisions based on market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion feature, allowing users to convert amounts between different metals or from/to USD. This is particularly useful for traders who operate in multiple currencies.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two specified dates. This feature is essential for analyzing price movements over a defined period.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and helping traders make strategic decisions.
- Carat Endpoint: This endpoint provides information about gold rates by carat, which is particularly useful for jewelers and consumers interested in purchasing gold jewelry.
- Lowest/Highest Price Endpoint: Developers can query the API to obtain the lowest and highest prices for gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This feature allows users to retrieve open, high, low, and close prices for gold, providing a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is invaluable for traders focusing on industrial metals.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metal symbols, allowing developers to stay informed about the latest offerings.
- Gold Price India Endpoint: Retrieve the latest gold price in India, catering to a significant market segment.
- News Endpoint: Access the latest news articles related to various metals, keeping users informed about market developments.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Below are examples of various endpoints and their corresponding responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1751501230,
"base": "USD",
"date": "2025-07-03",
"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"
}
This response indicates the latest rates for various metals, with gold (XAU) priced at 0.000482 per troy ounce. The timestamp and base currency provide context for the data.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1751414830,
"base": "USD",
"date": "2025-07-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a historical rate for gold on July 2, 2025, allowing developers to analyze past price movements.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-06-26",
"end_date": "2025-07-03",
"base": "USD",
"rates": {
"2025-06-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily rates for gold over a specified period, enabling developers to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1751501230,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert a specified amount from one currency to another, in this case converting 1000 USD to gold (XAU).
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-26",
"end_date": "2025-07-03",
"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 endpoint tracks fluctuations in metal prices over a specified period, providing insights into market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1751501230,
"base": "USD",
"date": "2025-07-03",
"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"
}
This response provides the open, high, low, and close prices for gold, essential for traders analyzing market performance.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1751501230,
"base": "USD",
"date": "2025-07-03",
"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 the current bid and ask prices for metals, which is crucial for traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API is an invaluable resource for developers and traders seeking to obtain historical prices for the Sprott ESG Gold ETF (SESG) and other precious metals. By leveraging the API's extensive features, including real-time rates, historical data, and advanced analytics, users can enhance their trading strategies and gain deeper insights into market dynamics.
As the financial landscape continues to evolve, the integration of technology and data analytics will play a pivotal role in shaping the future of trading. The Metals-API stands at the forefront of this transformation, providing developers with the tools they need to build innovative applications that meet the demands of modern investors.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Supported Symbols for a comprehensive list of available metals and currencies. With the right tools and data at your disposal, you can navigate the complexities of the precious metals market with confidence.