Get Accurate Sprott ESG Gold ETF (SESG) Prices in Multiple Currencies Using This API
Get Accurate Sprott ESG Gold ETF (SESG) Prices in Multiple Currencies Using This API
In today's rapidly evolving financial landscape, having access to accurate and real-time data is paramount for making informed investment decisions. The Metals-API provides developers with a powerful tool to obtain accurate prices for precious metals, including the Sprott ESG Gold ETF (SESG), in multiple currencies. This blog post will explore how the Metals-API can be leveraged to access real-time gold prices, historical data, and various endpoints that can enhance trading strategies and market analysis.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. As digital transformation sweeps across the financial sector, the integration of technology in precious metals trading is becoming increasingly vital. The Metals-API stands at the forefront of this transformation, offering developers the ability to access real-time gold prices and market insights through a robust API.
With the rise of data analytics, traders can now harness market insights to make data-driven decisions. The Metals-API provides comprehensive data that can be analyzed to identify trends, forecast market movements, and optimize trading strategies. By integrating this API into trading platforms, developers can create innovative applications that enhance the price discovery process and improve the overall trading experience.
API Description
The Metals-API is designed to empower developers with real-time metals data, enabling the creation of next-generation applications. This API offers a wide range of capabilities, including access to the latest rates, historical data, and various endpoints that cater to different trading needs. The API is built with a focus on innovation and technological advancement, making it an essential tool for anyone involved in precious metals trading.
For detailed information on how to implement the API, refer to the Metals-API Documentation. This resource provides comprehensive guidance on utilizing the API effectively, including authentication, endpoint usage, and response handling.
Key Features and Endpoints
The Metals-API offers several key features that can significantly enhance trading strategies:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is crucial for traders who need the most current market prices to make timely decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve past prices, which is invaluable for backtesting trading strategies and analyzing market trends.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices, providing insight into market liquidity and helping traders make informed decisions based on current market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another. This is particularly useful for international traders who operate in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This feature is essential for analyzing price movements over specific periods, allowing traders to identify patterns and trends.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis. Understanding fluctuations can help traders anticipate market movements and adjust their strategies accordingly.
- Carat Endpoint: Access 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 range, helping traders identify key support and resistance levels.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, allowing traders to analyze market volatility and make informed decisions.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends over time.
- API Key: Your unique API key is essential for accessing the API's features. It must be included in the API base URL's access_key parameter.
- API Response: Exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency across different queries.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities tailored to various trading needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring that developers have access to the latest market data.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping traders informed about market developments that may impact prices.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1761181383,
"base": "USD",
"date": "2025-10-23",
"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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1761094983,
"base": "USD",
"date": "2025-10-22",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2025-10-16",
"end_date": "2025-10-23",
"base": "USD",
"rates": {
"2025-10-16": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-18": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-23": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1761181383,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-16",
"end_date": "2025-10-23",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1761181383,
"base": "USD",
"date": "2025-10-23",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1761181383,
"base": "USD",
"date": "2025-10-23",
"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"
}
Conclusion
The Metals-API is an invaluable resource for developers looking to access accurate and real-time prices for precious metals, including the Sprott ESG Gold ETF (SESG). By leveraging the various endpoints offered by the API, traders can gain insights into market trends, optimize their trading strategies, and make informed decisions based on real-time data.
With features such as the Latest Rates Endpoint, Historical Rates Endpoint, and the ability to convert currencies, the Metals-API empowers developers to create innovative applications that enhance the trading experience. For more information on the API's capabilities, visit the Metals-API Website and explore the Metals-API Documentation for detailed implementation guidance.
For a complete list of supported symbols, check out the Metals-API Supported Symbols page. By integrating the Metals-API into your trading applications, you can harness the power of real-time metals data and stay ahead in the competitive world of precious metals trading.