Get Historical Data for Salem Gold 18k (SALE-18k) via this API
Get Historical Data for Salem Gold 18k (SALE-18k) via this API
In the ever-evolving landscape of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. For developers and traders interested in obtaining historical prices for Salem Gold 18k (SALE-18k), the Metals-API offers a robust solution. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical data for gold and other precious metals, while also exploring the digital transformation in the precious metals market.
Metals-API Information
The Metals-API is a powerful tool designed for developers who need real-time and historical data on various metals, including gold, silver, platinum, and palladium. With its comprehensive endpoints, the API allows users to access a wealth of information, enabling them to build next-generation applications that leverage real-time metals data.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. In recent years, the digital transformation in precious metals has led to innovative solutions that enhance trading efficiency and market insights. The integration of data analytics and technology in trading has revolutionized how investors approach the gold market.
With the rise of digital asset solutions, traders can now access real-time data and analytics that inform their investment strategies. The Metals-API plays a pivotal role in this transformation, providing developers with the tools necessary to create applications that facilitate price discovery and market analysis.
API Description
The Metals-API is designed to empower developers by providing access to real-time and historical metals data. Its capabilities include:
- Real-time Exchange Rates: The API offers the latest rates for various metals, updated frequently based on the user's subscription plan.
- Historical Rates: Users can access historical rates dating back to 2019, allowing for comprehensive market analysis.
- Bid and Ask Prices: The API provides real-time bid and ask prices, essential for traders looking to make informed decisions.
- Currency Conversion: The conversion endpoint allows users to convert amounts between different metals and currencies.
- Time-Series Data: Users can query daily historical rates between two dates, providing insights into market trends.
- Fluctuation Data: The fluctuation endpoint tracks how metal prices change over time, offering valuable insights into market volatility.
- Carat Information: Users can retrieve gold rates by carat, which is particularly useful for jewelers and manufacturers.
- Open/High/Low/Close (OHLC) Data: This endpoint provides detailed price information for specific time periods, essential for technical analysis.
- Historical LME Data: Access to historical rates for LME symbols dating back to 2008.
- News Updates: The API includes a news endpoint that retrieves the latest articles related to various metals.
For more detailed information on the API's capabilities, visit the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some key features:
Latest Rates Endpoint
This endpoint provides real-time exchange rate data for metals. Depending on your subscription plan, the API can return updates every 60 minutes or even more frequently. For example, a typical response might look like this:
{
"success": true,
"timestamp": 1767485708,
"base": "USD",
"date": "2026-01-04",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical rates is straightforward with the Metals-API. Users can query historical rates by appending a specific date to the endpoint. Hereβs an example response:
{
"success": true,
"timestamp": 1767399308,
"base": "USD",
"date": "2026-01-03",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
The time-series endpoint allows users to retrieve exchange rates for a specified period. This is particularly useful for analyzing trends over time. An example response might look like this:
{
"success": true,
"timeseries": true,
"start_date": "2025-12-28",
"end_date": "2026-01-04",
"base": "USD",
"rates": {
"2025-12-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-04": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The conversion endpoint is a valuable feature that allows users to convert amounts between different metals or to/from USD. For instance:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1767485708,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
This endpoint provides insights into how metal prices fluctuate over a specified period. An example response could be:
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-28",
"end_date": "2026-01-04",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
This endpoint provides detailed price information for specific time periods, essential for traders performing technical analysis. A typical response might look like this:
{
"success": true,
"timestamp": 1767485708,
"base": "USD",
"date": "2026-01-04",
"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
This endpoint provides current bid and ask prices for metals, which is crucial for traders looking to make informed decisions. An example response might be:
{
"success": true,
"timestamp": 1767485708,
"base": "USD",
"date": "2026-01-04",
"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"
}
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.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for developers and traders interested in precious metals. With its ability to provide real-time and historical data, the API empowers users to make informed decisions based on accurate market insights. By leveraging the various endpoints, such as the latest rates, historical rates, and fluctuation data, developers can create innovative applications that enhance trading strategies and market analysis.
For those looking to dive deeper into the world of precious metals trading, the Metals-API is an essential resource. To get started, visit the Metals-API Website and explore the extensive documentation available. With the right tools and data at your fingertips, you can navigate the complexities of the metals market with confidence.