Retrieve Historical Sprott ESG Gold ETF (SESG) Prices in Multiple Currencies with this API

Retrieve Historical Sprott ESG Gold ETF (SESG) Prices in Multiple Currencies with this API
In today's rapidly evolving financial landscape, the need for accurate and real-time data has never been more critical. For developers and businesses looking to integrate precious metals pricing into their applications, the Metals-API offers a robust solution. This API provides precise prices for various metals, including Gold (XAU), in multiple currencies. In this blog post, we will explore how Metals-API empowers developers to access historical Sprott ESG Gold ETF (SESG) prices, analyze market trends, and leverage this data for innovative business applications.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. The digital transformation in precious metals trading has opened new avenues for investors and developers alike. With the integration of data analytics and market insights, businesses can now make informed decisions based on real-time data. The Metals-API plays a pivotal role in this transformation by providing developers with the tools necessary to access and analyze gold prices effectively.
One of the key aspects of the Metals-API is its ability to deliver accurate pricing data for Gold in various currencies. This capability is particularly beneficial for businesses operating in global markets, where currency fluctuations can significantly impact investment strategies. By utilizing the API, developers can create applications that not only track gold prices but also convert them into different currencies seamlessly.
API Description
The Metals-API is designed to provide developers with a comprehensive suite of tools for accessing real-time and historical metals data. With a focus on innovation and technological advancement, the API enables the creation of next-generation applications that can analyze market trends, track price fluctuations, and provide insights into investment opportunities.
For detailed information on how to implement the API, developers can refer to the Metals-API Documentation. This resource outlines the various endpoints available, including the latest rates, historical rates, and conversion capabilities.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. For example, a developer can retrieve the current price of Gold (XAU) in USD and other currencies.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date to the API request. This feature is invaluable for businesses conducting market analysis and trend forecasting.
- Bid and Ask Endpoint: This powerful feature allows developers to retrieve real-time bid and ask prices for metals, enabling more informed trading decisions.
- Convert Endpoint: The API includes a currency conversion endpoint that allows users to convert any amount from one currency to another, facilitating seamless transactions across different markets.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two chosen dates, providing insights into price trends over time.
- Fluctuation Endpoint: This endpoint tracks how currencies fluctuate on a day-to-day basis, offering valuable data for risk management and investment strategies.
- Carat Endpoint: Retrieve information about Gold rates by Carat, which is essential for jewelers and businesses dealing in precious metals.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specific date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive market research.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring developers have access to the latest data.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for businesses operating in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context for market movements.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of how to use various endpoints effectively:
Latest Rates Endpoint
To get real-time exchange rates for all available metals, a typical response might look like this:
{
"success": true,
"timestamp": 1759456837,
"base": "USD",
"date": "2025-10-03",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical exchange rates for any date since 1999 can be done as follows:
{
"success": true,
"timestamp": 1759370437,
"base": "USD",
"date": "2025-10-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"unit": "per troy ounce"
}
Time-Series Endpoint
To get exchange rates for a specific time period, the response may look like this:
{
"success": true,
"timeseries": true,
"start_date": "2025-09-26",
"end_date": "2025-10-03",
"base": "USD",
"rates": {
"2025-09-26": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-10-03": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Convert Endpoint
For converting amounts from one metal to another, the response might be:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1759456837,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track rate fluctuations between two dates, the response could be:
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-26",
"end_date": "2025-10-03",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Price Endpoint
For obtaining OHLC data for a specific time period, the response may appear as follows:
{
"success": true,
"timestamp": 1759456837,
"base": "USD",
"date": "2025-10-03",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
To get current bid and ask prices for metals, the response might look like this:
{
"success": true,
"timestamp": 1759456837,
"base": "USD",
"date": "2025-10-03",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Practical Use Cases and Integration Strategies
Integrating the Metals-API into applications can unlock numerous possibilities for businesses. Here are some practical use cases:
- Investment Platforms: Financial institutions can leverage the API to provide clients with real-time gold pricing, enabling them to make informed investment decisions.
- E-commerce: Online retailers dealing in gold jewelry can use the API to display current gold prices in various currencies, enhancing the shopping experience for international customers.
- Market Analysis Tools: Developers can create analytical tools that utilize historical data from the API to forecast market trends and provide insights to traders.
- Risk Management: Businesses can implement the fluctuation endpoint to monitor price changes and adjust their strategies accordingly, minimizing potential losses.
Conclusion
The Metals-API is a powerful tool for developers looking to access accurate and real-time precious metals pricing data. With its extensive range of endpoints, including the latest rates, historical data, and conversion capabilities, the API empowers businesses to innovate and adapt in a dynamic market. By leveraging the capabilities of the Metals-API, developers can create applications that not only track gold prices but also provide valuable insights for investment strategies and market analysis.
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 out the Metals-API Supported Symbols page to familiarize yourself with the available metal symbols and their specifications.