Access LME Tin (LME-TIN) Exchange Rates with API Key Authentication in JSON Format
Access LME Tin (LME-TIN) Exchange Rates with API Key Authentication in JSON Format
In today's rapidly evolving financial landscape, the ability to access real-time exchange rates for metals like Tin (XSN) is crucial for developers and businesses alike. The Metals-API provides a robust solution for retrieving these rates in JSON format, enabling seamless integration into applications. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve Gold (XAU) exchange rates, while also exploring the broader implications of digital transformation in metal markets.
Metals-API Information
The Metals-API is a powerful tool designed for developers seeking to access real-time and historical data on metal prices. With a focus on technological innovation and advancement, this API empowers users to build next-generation applications that leverage data analytics and insights. By integrating smart technology, developers can create solutions that not only meet current market demands but also anticipate future trends and possibilities.
About Tin (XSN)
Tin, represented by the symbol XSN, is a vital metal in various industries, including electronics and construction. As the market for metals continues to evolve, the integration of data analytics and smart technology is transforming how businesses operate. The Metals-API allows developers to harness this data, providing insights that can drive strategic decisions. By utilizing real-time exchange rates and historical data, businesses can better understand market fluctuations and make informed choices.
API Description
The Metals-API offers a comprehensive suite of features that enable users to access a wide range of metal prices and exchange rates. With a focus on innovation, the API provides developers with the tools necessary to create applications that can respond to market changes in real-time. The API supports various endpoints, each designed to fulfill specific data retrieval needs, from the latest rates to historical data and conversion capabilities.
For more detailed information, you can visit the Metals-API Documentation which outlines all available features and endpoints.
Key Features and Endpoints
The Metals-API includes several key features that enhance its functionality:
- 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 essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a date in the YYYY-MM-DD format. This allows users to analyze trends over time and make data-driven decisions based on past performance.
- Bid And Ask Endpoint: This powerful feature retrieves real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: Easily convert any amount from one metal to another or to/from USD. This endpoint is particularly useful for applications that require currency conversion functionalities.
- 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: Retrieve information about how currencies fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Get information about Gold rates by Carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest price for a specified date.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period, providing a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is invaluable for long-term market analysis.
- API Key: Your unique API Key is essential for accessing the API and must be included in the API base URL's access_key parameter.
- API Response: Exchange rates are delivered relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 14 endpoints, each providing different functionalities tailored to various user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals, ensuring you have the latest information at your fingertips.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
For a complete list of supported symbols, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective integration. Below are examples of API responses for various endpoints, illustrating the structure and data provided.
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1775657234,
"base": "USD",
"date": "2026-04-08",
"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": 1775570834,
"base": "USD",
"date": "2026-04-07",
"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": "2026-04-01",
"end_date": "2026-04-08",
"base": "USD",
"rates": {
"2026-04-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-08": {
"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": 1775657234,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-01",
"end_date": "2026-04-08",
"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": 1775657234,
"base": "USD",
"date": "2026-04-08",
"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": 1775657234,
"base": "USD",
"date": "2026-04-08",
"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
In conclusion, the Metals-API provides a comprehensive solution for developers looking to access real-time and historical exchange rates for metals like Tin (XSN) and Gold (XAU). With its robust set of features, including various endpoints for retrieving the latest rates, historical data, and conversion capabilities, the API empowers users to create innovative applications that can adapt to the dynamic nature of the metals market.
By leveraging the capabilities of the Metals-API, developers can gain valuable insights into market trends, optimize their applications for performance, and ensure they are equipped to handle the complexities of financial data. For more information, visit the Metals-API Website and explore the extensive documentation available to help you get started.