The Easiest Way to Get Salem Gold 22k (SALE-22k) Historical Rates in Your API Integration

The Easiest Way to Get Salem Gold 22k (SALE-22k) Historical Rates in Your API Integration
In the world of precious metals trading, having access to accurate and timely data is crucial for making informed decisions. The Metals-API provides a powerful solution for developers looking to integrate historical prices for metals like Gold (XAU) into their applications. This blog post will guide you through the process of obtaining historical rates for Salem Gold 22k (SALE-22k) using the Metals-API, including example endpoints, parameters, and data formats.
About Gold (XAU)
Gold has long been considered a safe haven asset and a reliable store of value. With the rise of digital transformation in the precious metals market, data analytics and market insights have become more accessible than ever. The integration of technology in trading has revolutionized how investors and traders approach the market. Innovations in price discovery and the emergence of digital asset solutions have further enhanced the trading landscape.
The Metals-API stands at the forefront of this transformation, offering developers the tools they need to build next-generation applications that leverage real-time metals data. By providing seamless access to historical prices, the API empowers users to analyze trends, forecast market movements, and make data-driven decisions.
API Description
The Metals-API is a comprehensive JSON API that provides real-time and historical data for various metals, including Gold, Silver, Platinum, and Palladium. It allows developers to access a wide range of functionalities, enabling them to create applications that cater to the needs of traders, analysts, and investors.
For more information, you can visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on how to implement the API in your projects.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated at intervals depending on your subscription plan. You can retrieve the latest rates for Gold (XAU) and other metals with a simple API call.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your request, you can obtain the historical price of Gold (XAU) for any given day.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling you to convert amounts from one metal to another or to/from USD.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: Retrieve information about Gold rates by carat, which is essential for jewelers and traders dealing in different purity levels.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API for the lowest and highest prices of Gold (XAU) over a specified period.
- Open/High/Low/Close (OHLC) Price Endpoint: Get OHLC data for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a broader context for market analysis.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing different functionalities tailored to various use cases.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing you to see which metals are supported by the API.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market trends and events.
List of Symbols
The 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.
API Endpoint Examples and Responses
To illustrate how to use the Metals-API effectively, here are some example endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1760778102,
"base": "USD",
"date": "2025-10-18",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1760691702,
"base": "USD",
"date": "2025-10-17",
"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-11",
"end_date": "2025-10-18",
"base": "USD",
"rates": {
"2025-10-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-18": {
"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": 1760778102,
"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-11",
"end_date": "2025-10-18",
"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) Price Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1760778102,
"base": "USD",
"date": "2025-10-18",
"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": 1760778102,
"base": "USD",
"date": "2025-10-18",
"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
Integrating historical rates for Salem Gold 22k (SALE-22k) using the Metals-API is a straightforward process that can significantly enhance your trading applications. By leveraging the various endpoints available, developers can access real-time and historical data, perform conversions, and analyze fluctuations in prices over time.
With the ability to retrieve comprehensive data on Gold (XAU) and other metals, the Metals-API empowers developers to create innovative solutions that cater to the evolving needs of the market. Whether you are building a trading platform, a financial analysis tool, or a market insights application, the Metals-API provides the necessary resources to succeed.
For further exploration, refer to the Metals-API Documentation for detailed instructions on implementing the API, and check the Metals-API Supported Symbols page to understand the full range of available options. Embrace the future of precious metals trading with the power of real-time data at your fingertips.