Get Sprott ESG Gold ETF (SESG) prices using this API

Get Sprott ESG Gold ETF (SESG) Prices Using This API
Metals-API. This API provides comprehensive access to real-time and historical data, enabling developers to build innovative applications that cater to the needs of investors and traders alike.
Metals-API Information
About Gold (XAU)
API Description
Metals-API Documentation. This resource provides comprehensive guidance on the API's features, endpoints, and usage examples, ensuring that developers can effectively implement the API into their applications.
Key Features and Endpoints
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for precious metals, updated based on the user's subscription plan. For example, a developer can retrieve the latest gold price in USD by querying this endpoint.
{
"success": true,
"timestamp": 1747123218,
"base": "USD",
"date": "2025-05-13",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
{
"success": true,
"timestamp": 1747036818,
"base": "USD",
"date": "2025-05-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
{
"success": true,
"timestamp": 1747123218,
"base": "USD",
"date": "2025-05-13",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1747123218,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
{
"success": true,
"timeseries": true,
"start_date": "2025-05-06",
"end_date": "2025-05-13",
"base": "USD",
"rates": {
"2025-05-06": {
"XAU": 0.000485
},
"2025-05-13": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-06",
"end_date": "2025-05-13",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
{
"success": true,
"timestamp": 1747123218,
"base": "USD",
"date": "2025-05-13",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Metals-API Supported Symbols page. This resource is invaluable for understanding the various metals available for trading and analysis.
API Response and Field Meanings
- success: Indicates whether the API request was successful.
- timestamp: The time at which the data was retrieved, useful for tracking the freshness of the data.
- base: The base currency against which the rates are provided.
- rates: An object containing the current rates for each metal requested.
Common Developer Questions
- How do I authenticate my API requests? Each request must include an API key, which is passed as a parameter in the request URL. This key is unique to your account and ensures secure access to the API.
- What are the rate limits for API requests? Rate limits vary based on your subscription plan. Developers should refer to the documentation for specific limits and ensure their applications handle these limits gracefully.
- How can I handle errors in API responses? The API provides error codes and messages in the response, which can be used to diagnose issues. Implementing robust error handling in your application will enhance user experience and reliability.
Practical Use Cases and Integration Strategies
- Trading Platforms: Integrating real-time data into trading platforms allows users to make informed decisions based on the latest market conditions.
- Investment Analysis Tools: By utilizing historical data endpoints, developers can create tools that analyze trends and provide insights into potential investment opportunities.
- Financial News Applications: The API's news endpoint can be used to aggregate the latest news related to precious metals, providing users with comprehensive market insights.
Conclusion
Metals-API Website and explore the comprehensive Metals-API Documentation for detailed guidance on implementation and usage.