Quickly obtain Sprott ESG Gold ETF (SESG) prices using this API
Quickly Obtain Sprott ESG Gold ETF (SESG) Prices Using This API
In the rapidly evolving world of finance, obtaining accurate and timely data is crucial for making informed investment decisions. The Sprott ESG Gold ETF (SESG) is a prime example of an investment vehicle that benefits from real-time data, particularly in the precious metals market. With the help of the Metals-API, developers can access comprehensive data on gold prices, enabling them to build applications that provide insights into market trends and fluctuations.
Metals-API Information
The Metals-API is a powerful tool designed for developers looking to integrate real-time metals data into their applications. It offers a wide range of endpoints that provide access to current and historical prices, bid and ask rates, and much more. This API is particularly valuable for those involved in trading, investment analysis, and market research.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been considered a safe haven asset and a hedge against inflation. As digital transformation continues to reshape the financial landscape, the integration of technology in trading and investment practices has become more pronounced. The use of data analytics and market insights allows investors to make more informed decisions based on real-time data.
With the rise of digital asset solutions, the trading of gold has also evolved. Investors can now access gold prices through various platforms, making it easier to trade and invest in this precious metal. The Metals-API plays a crucial role in this transformation by providing developers with the tools they need to create applications that deliver real-time gold pricing and market insights.
API Description
The Metals-API is designed to empower developers by providing access to real-time metals data. This API allows users to build next-generation applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. The API's capabilities extend beyond just providing prices; it offers a comprehensive suite of features that can be leveraged for various applications.
For detailed documentation on how to implement the API, developers can refer to the Metals-API Documentation. This resource provides in-depth information on the API's endpoints, response formats, and usage examples.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to serve specific 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 that users have access to the most current pricing information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve past pricing data, which is essential for trend analysis and market research.
- Bid and Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for various metals. Understanding the bid-ask spread is crucial for traders looking to optimize their entry and exit points.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts from one metal to another or to/from USD. This is particularly useful for investors dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, providing insights into price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Carat Endpoint: This feature provides information about gold rates based on carat, allowing jewelers and investors to assess the value of gold in different forms.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for a specified date, which is useful for identifying 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: This feature allows access to historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each offering unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals supported by the API, ensuring users can access 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 metals into their applications.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective implementation. Below are examples of responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1772410168,
"base": "USD",
"date": "2026-03-02",
"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 XAU (Gold) priced at 0.000482 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1772323768,
"base": "USD",
"date": "2026-03-01",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to analyze past pricing trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-23",
"end_date": "2026-03-02",
"base": "USD",
"rates": {
"2026-02-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-02": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series view of rates for the specified period, enabling users to track price movements over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772410168,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert a specified amount from USD to gold (XAU), providing a clear result for users.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-23",
"end_date": "2026-03-02",
"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 response provides insights into how metal prices have fluctuated over a specified period, which is essential for traders and analysts.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1772410168,
"base": "USD",
"date": "2026-03-02",
"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 endpoint provides critical data for technical analysis, allowing traders to assess market conditions based on open, high, low, and close prices.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1772410168,
"base": "USD",
"date": "2026-03-02",
"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 response provides current bid and ask prices, which are essential for traders looking to execute orders effectively.
Conclusion
The Metals-API is an invaluable resource for developers looking to integrate real-time metals data into their applications. With features such as the latest rates, historical data, and bid/ask prices, this API empowers users to make informed decisions in the precious metals market. By leveraging the capabilities of the Metals-API, developers can create innovative applications that provide insights into market trends and fluctuations.
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, check the Metals-API Supported Symbols page for a comprehensive list of available metals and currencies.