Learn to obtain Sprott ESG Gold ETF (SESG) prices via this API

In the ever-evolving landscape of financial markets, the demand for real-time data on precious metals has surged, particularly for investors interested in the Sprott ESG Gold ETF (SESG). This blog post will delve into how to obtain SESG prices through the Metals-API, a powerful tool designed for developers seeking to integrate real-time metals data into their applications. We will explore the capabilities of the Metals-API, focusing on its innovative features, endpoints, and the transformative potential of real-time metals data.
Understanding Gold (XAU) in Today's Market
Gold, represented by the symbol XAU, has long been a cornerstone of investment portfolios, serving as a hedge against inflation and economic uncertainty. In recent years, the digital transformation of precious metals trading has revolutionized how investors access and analyze market data. The integration of data analytics and technology has enabled traders to make informed decisions based on real-time insights.
As the financial landscape shifts towards digital asset solutions, the importance of accurate and timely data cannot be overstated. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to build next-generation applications that leverage real-time gold pricing and market insights.
Digital Transformation in Precious Metals
The digital transformation in the precious metals market has led to significant advancements in trading technology. With the rise of online trading platforms and mobile applications, investors can now access gold prices and market data at their fingertips. This shift has not only democratized access to precious metals but has also increased the need for reliable data sources.
Data Analytics and Market Insights
Data analytics plays a crucial role in understanding market trends and making informed investment decisions. By utilizing the Metals-API, developers can access a wealth of data that provides insights into gold price movements, historical trends, and market fluctuations. This information is invaluable for traders looking to capitalize on market opportunities.
Technology Integration in Trading
Integrating technology into trading strategies has become essential for success in today's fast-paced markets. The Metals-API offers a range of endpoints that allow developers to retrieve real-time and historical data, enabling them to build sophisticated trading algorithms and applications. This integration not only enhances trading efficiency but also improves the accuracy of market predictions.
Innovation in Price Discovery
Price discovery in the gold market has been transformed by technological advancements. The Metals-API provides developers with access to real-time exchange rates, historical data, and various analytical tools that facilitate accurate price discovery. By leveraging these capabilities, traders can make more informed decisions based on current market conditions.
Digital Asset Solutions
The rise of digital assets has further emphasized the need for reliable data sources in the precious metals market. The Metals-API offers a comprehensive solution for developers looking to integrate gold pricing data into their applications. With its user-friendly interface and extensive documentation, developers can quickly implement the API to access real-time gold prices and other relevant data.
Metals-API Overview
The Metals-API is a powerful JSON API that provides real-time and historical data for various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). This API empowers developers to build applications that require accurate metals pricing and market insights. The API's capabilities include:
- Real-time exchange rates
- Historical rates dating back to 2019
- Bid and ask prices
- Currency conversion
- Time-series data
- Fluctuation tracking
- Carat-specific gold rates
- Lowest and highest price queries
- Open, high, low, close (OHLC) price data
- News related to metals
Key Features of the Metals-API
The Metals-API offers a variety of endpoints that cater to different data needs. Below, we explore some of the key features and how they can be utilized effectively.
Latest Rates Endpoint
The Latest Rates endpoint provides real-time exchange rate data for various metals. Depending on your subscription plan, this endpoint can return data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who require up-to-the-minute pricing information to make informed decisions.
{
"success": true,
"timestamp": 1752710423,
"base": "USD",
"date": "2025-07-17",
"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 developers to query historical data dating back to 2019. By appending a specific date to the API request, users can retrieve past exchange rates, enabling them to conduct thorough market analyses.
{
"success": true,
"timestamp": 1752624023,
"base": "USD",
"date": "2025-07-16",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Bid and Ask Endpoint
The Bid and Ask endpoint is a powerful feature that provides real-time bid and ask prices for metals. This information is vital for traders looking to execute buy or sell orders at the most favorable prices. The bid price represents the highest price a buyer is willing to pay, while the ask price is the lowest price a seller is willing to accept.
{
"success": true,
"timestamp": 1752710423,
"base": "USD",
"date": "2025-07-17",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"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 or metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1752710423,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series endpoint allows developers to query the API for daily historical rates between two specified dates. This feature is essential for analyzing price trends over a defined period, enabling traders to make data-driven decisions based on historical performance.
{
"success": true,
"timeseries": true,
"start_date": "2025-07-10",
"end_date": "2025-07-17",
"base": "USD",
"rates": {
"2025-07-10": {
"XAU": 0.000485
},
"2025-07-17": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation endpoint provides information about how metal prices fluctuate on a day-to-day basis. By tracking fluctuations between two dates, traders can gain insights into market volatility and make informed decisions based on price movements.
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-10",
"end_date": "2025-07-17",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC endpoint provides essential data for traders looking to analyze price movements within a specific time period. This endpoint returns the open, high, low, and close prices for a given date, allowing traders to assess market performance and make strategic decisions.
{
"success": true,
"timestamp": 1752710423,
"base": "USD",
"date": "2025-07-17",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price endpoint allows users to query the API for the lowest and highest prices of metals over a specified period. This information is crucial for traders looking to identify price extremes and make informed trading decisions.
{
"success": true,
"timestamp": 1752710423,
"base": "USD",
"date": "2025-07-17",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
API Key and Authentication
To access the Metals-API, developers must obtain an API key, which serves as a unique identifier for authentication. This key must be included in the API request to access the various endpoints. Proper management of the API key is essential for maintaining security and ensuring uninterrupted access to the data.
API Response Structure
The API responses are structured in a JSON format, providing a clear and organized way to access the data. Each response includes a success status, a timestamp, the base currency, and the requested rates. Understanding the structure of the API response is crucial for developers to effectively parse and utilize the data in their applications.
Common Use Cases for the Metals-API
The Metals-API can be utilized in various applications, including:
- Building trading platforms that require real-time metals pricing
- Creating analytical tools for market trend analysis
- Developing mobile applications for investors seeking up-to-date gold prices
- Integrating metals data into financial dashboards for comprehensive market insights
Conclusion
The Metals-API is an invaluable resource for developers looking to integrate real-time gold pricing and market insights into their applications. By leveraging its extensive features and capabilities, developers can create innovative solutions that enhance trading strategies and improve decision-making processes. Whether you are building a trading platform, an analytical tool, or a mobile application, the Metals-API provides the necessary data and functionality to succeed in the dynamic world of precious metals trading.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation. Additionally, you can find a comprehensive list of supported symbols at the Metals-API Supported Symbols page.