Fetch Salem Gold 22k (SALE-22k) Historical Prices via this API

Introduction
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most sought-after metals is gold, represented by the symbol XAU. If you're looking to fetch historical prices for Salem Gold 22k (SALE-22k), the Metals-API provides a robust solution. This blog post will delve into the capabilities of the Metals-API, focusing on how developers can leverage its features to obtain historical prices and gain insights into the gold market.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its value is influenced by various factors, including market demand, geopolitical events, and economic indicators. The digital transformation in the precious metals market has made it easier for traders and investors to access real-time data and analytics. With the integration of technology in trading, the Metals-API stands out as a powerful tool for developers looking to innovate in price discovery and data analytics.
By utilizing the Metals-API, developers can create applications that provide market insights, track price fluctuations, and analyze historical trends. The API's capabilities empower users to make data-driven decisions, enhancing their trading strategies and investment portfolios. As the market for digital assets continues to evolve, having access to reliable and real-time metals data is more important than ever.
API Description
The Metals-API is designed to provide developers with comprehensive access to metals pricing data, including gold, silver, platinum, and palladium. The API offers a variety of endpoints that allow users to retrieve the latest rates, historical prices, and other valuable information. With a focus on innovation and technological advancement, the Metals-API enables developers to build next-generation applications that can transform the way traders interact with precious metals.
For detailed documentation on how to use the API, visit the Metals-API Documentation. Here, you will find comprehensive guides on how to implement various features and endpoints effectively.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different needs within the precious metals market. Below are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals. Depending on your subscription plan, this endpoint can return updates every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need to stay informed about the current market conditions.
{
"success": true,
"timestamp": 1747786325,
"base": "USD",
"date": "2025-05-21",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve valuable historical data that can be used for analysis and forecasting.
{
"success": true,
"timestamp": 1747699925,
"base": "USD",
"date": "2025-05-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for metals. This information is crucial for traders who need to make quick decisions based on market conditions.
{
"success": true,
"timestamp": 1747786325,
"base": "USD",
"date": "2025-05-21",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1747786325,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for analyzing trends over specific periods and making informed trading decisions.
{
"success": true,
"timeseries": true,
"start_date": "2025-05-14",
"end_date": "2025-05-21",
"base": "USD",
"rates": {
"2025-05-14": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-05-21": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This feature is essential for traders who want to understand market volatility and make strategic decisions based on price movements.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-14",
"end_date": "2025-05-21",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to query the API for the open, high, low, and close prices for a specific time period. This data is crucial for traders who rely on technical analysis to make informed decisions.
{
"success": true,
"timestamp": 1747786325,
"base": "USD",
"date": "2025-05-21",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for traders who want to analyze long-term trends in the metals market.
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
The Metals-API is a powerful tool for developers looking to access real-time and historical data on precious metals, particularly gold (XAU). By leveraging its various endpoints, developers can create innovative applications that provide valuable insights into market trends and price fluctuations. The API's capabilities empower users to make informed trading decisions, enhancing their overall trading strategies.
As the market for precious metals continues to evolve, having access to reliable data is more important than ever. The Metals-API not only facilitates this access but also opens up new possibilities for data analytics and market insights. For more information on how to get started, visit the Metals-API Documentation and explore the potential of integrating this powerful API into your applications.