Get Sprott ESG Gold ETF (SESG) Historical Prices for Your Trading Strategies using this API

Get Sprott ESG Gold ETF (SESG) Historical Prices for Your Trading Strategies using this API
In the ever-evolving landscape of financial trading, the integration of technology and data analytics has become paramount. For traders and investors focusing on precious metals, particularly gold, having access to accurate historical prices is crucial for developing effective trading strategies. The Sprott ESG Gold ETF (SESG) provides a unique opportunity for investors to engage with gold in a sustainable manner. To harness the full potential of this investment, utilizing the Metals-API can significantly enhance your trading strategies by providing real-time and historical data on gold prices.
Metals-API Information
The Metals-API is a powerful tool designed for developers and traders alike, offering a comprehensive suite of endpoints that deliver real-time and historical data for various metals, including gold (XAU). This API is not just a data source; it represents a digital transformation in the way precious metals are traded and analyzed. By leveraging data analytics and market insights, traders can make informed decisions based on accurate and timely information.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its value is influenced by a myriad of factors, including market demand, geopolitical events, and economic indicators. In recent years, the digital transformation in precious metals trading has opened new avenues for investors. With the rise of data analytics, traders can now gain deeper insights into market trends and price movements.
Technology integration in trading has also led to innovative approaches in price discovery. Real-time data from APIs like Metals-API allows traders to react swiftly to market changes, optimizing their trading strategies. Furthermore, digital asset solutions have emerged, enabling investors to hold gold in a more accessible and secure manner.
API Description
The Metals-API is designed to empower developers to build next-generation applications that require real-time metals data. This API provides a robust framework for accessing a wealth of information, including the latest rates, historical prices, and market fluctuations. By utilizing the Metals-API, developers can create applications that not only track gold prices but also analyze trends and forecast future movements.
For comprehensive documentation on how to use the Metals-API, visit the Metals-API Documentation. Here, you will find detailed explanations of each endpoint, including their functionalities and potential applications.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- 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 or every 10 minutes, ensuring you have the most current data at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to your query, you can retrieve past prices for gold and other metals, which is essential for backtesting trading strategies.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and helping you make informed trading decisions.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD. This is particularly useful for traders who operate in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for detailed trend analysis over specific periods.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis. This endpoint provides insights into volatility, which can be a critical factor in trading strategies.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and those involved in the jewelry market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping you identify market extremes.
- 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: Access historical rates for LME symbols dating back to 2008, which is invaluable for traders focused on industrial metals.
- API Key: Your unique API key is essential for accessing the API's features. It must be included in your requests to authenticate your access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in your data analysis.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities tailored to various trading needs.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, allowing you to easily identify the metals you can query.
- Gold Price India Endpoint: Retrieve the latest gold price in India, which is particularly useful for traders in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
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 traders looking to expand their market knowledge and trading capabilities.
API Endpoint Examples and Responses
Understanding the structure of API responses is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1759975318,
"base": "USD",
"date": "2025-10-09",
"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 that the API successfully retrieved the latest rates for various metals, with gold (XAU) priced at 0.000482 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1759888918,
"base": "USD",
"date": "2025-10-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful retrieval of historical rates for a specific date, allowing traders to analyze past price movements.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-02",
"end_date": "2025-10-09",
"base": "USD",
"rates": {
"2025-10-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates over a specified period, allowing for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1759975318,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert a specified amount from one currency to another, providing a clear result that traders can utilize in their calculations.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-02",
"end_date": "2025-10-09",
"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 over a specified period, providing traders with insights into market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1759975318,
"base": "USD",
"date": "2025-10-09",
"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 critical data for technical analysis, allowing traders to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1759975318,
"base": "USD",
"date": "2025-10-09",
"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 current bid and ask prices, which are essential for understanding market dynamics and executing trades effectively.
Conclusion
The Sprott ESG Gold ETF (SESG) represents a significant opportunity for investors looking to engage with gold in a sustainable manner. By utilizing the Metals-API, traders can access a wealth of historical and real-time data that enhances their trading strategies. The API's robust features, including the latest rates, historical data, and fluctuation tracking, empower developers to create applications that provide valuable insights into the gold market.
For those looking to dive deeper into the capabilities of the Metals-API, the Metals-API Documentation is an invaluable resource, offering detailed explanations of each endpoint and its functionalities. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, ensuring traders have access to the information they need.
In conclusion, the integration of technology and data analytics in precious metals trading is transforming the landscape for investors. By leveraging the capabilities of the Metals-API, traders can enhance their strategies, optimize their decision-making processes, and ultimately achieve greater success in the market.