Retrieve daily LME Tin (LME-TIN) prices using this API

Retrieve Daily LME Tin (LME-TIN) Prices Using This API
In the rapidly evolving landscape of metal markets, staying updated with real-time data is crucial for developers and businesses alike. The Metals-API provides a powerful solution for retrieving daily LME Tin (LME-TIN) prices and other metal data. This blog post will explore the significance of Tin in the market, the innovative capabilities of the Metals-API, and how developers can leverage this API to build next-generation applications.
Metals-API Information
About Tin (LME-TIN)
Tin, represented by the symbol LME-TIN, is a vital metal in various industries, particularly in electronics, soldering, and plating. As digital transformation reshapes metal markets, the demand for real-time data and analytics has surged. Technological innovation in data collection and processing has enabled businesses to gain insights that were previously unattainable.
With the integration of smart technologies, companies can now analyze market trends and make informed decisions based on real-time data. The future of Tin and other metals is being shaped by advancements in data analytics, allowing for predictive modeling and better inventory management. As we look ahead, the possibilities for utilizing real-time metals data are vast, paving the way for enhanced operational efficiency and profitability.
API Description
The Metals-API is designed to empower developers with the tools necessary to access real-time and historical metals data. This API stands out for its innovative approach to data delivery, allowing users to retrieve information seamlessly and efficiently. With a focus on technological advancement, the Metals-API enables developers to build applications that can respond to market changes in real-time.
One of the key features of the Metals-API is its ability to provide comprehensive data on various metals, including Tin. Developers can access a wide range of endpoints, each tailored to specific data needs, from the latest rates to historical trends. This flexibility allows for the creation of applications that can cater to diverse market demands.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data retrieval needs. Here are some of the most notable features:
- 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 for most metals dating back to 2019. By appending a date to the API request, developers can retrieve past pricing data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals. It is particularly useful for traders and financial analysts who need to make quick decisions based on market fluctuations.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from USD. This feature simplifies transactions and financial calculations.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is ideal for analyzing trends over specific periods, providing insights into market behavior.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis. This feature helps users understand market volatility and make informed trading decisions.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specified date range, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get the open, high, low, and close prices for a specific time period. This data is crucial for traders who rely on technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for those interested in long-term trends in the LME market.
- API Key: Your API Key is essential for accessing the Metals-API. It must be included in the API base URL's access_key parameter to authenticate requests.
- API Response: The API delivers exchange rates relative to USD by default. All data is returned in a structured JSON format, making it easy to integrate into applications.
- Available Endpoints: The Metals-API provides 14 different endpoints, each offering unique functionalities to cater to diverse user needs.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Here are examples of various endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1760140863,
"base": "USD",
"date": "2025-10-11",
"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"
}
This response indicates a successful request, providing the latest exchange rates for various metals relative to USD. Each rate is expressed in terms of troy ounces, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1760054463,
"base": "USD",
"date": "2025-10-10",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date. The response includes the exchange rates for various metals, allowing users to analyze past market conditions.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-04",
"end_date": "2025-10-11",
"base": "USD",
"rates": {
"2025-10-04": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-06": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-11": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for a specified period, allowing users to visualize trends and fluctuations over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1760140863,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert an amount from one metal to another or to/from USD. In this case, it shows the conversion of $1000 to troy ounces of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-04",
"end_date": "2025-10-11",
"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"
}
The fluctuation endpoint provides insights into how metal prices have changed over a specified period, including both absolute and percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1760140863,
"base": "USD",
"date": "2025-10-11",
"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"
}
This endpoint provides the open, high, low, and close prices for a specific date, which is essential for traders who analyze market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1760140863,
"base": "USD",
"date": "2025-10-11",
"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"
}
The bid/ask endpoint provides current bid and ask prices for metals, which is crucial for traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API is a transformative tool for developers looking to integrate real-time metals data into their applications. With its extensive range of endpoints and capabilities, it empowers users to make informed decisions based on accurate and timely information. As the metal markets continue to evolve, leveraging such innovative technology will be essential for staying competitive.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation. Explore the full range of supported symbols on the Metals-API Supported Symbols page and begin building your applications today. The future of metal trading is here, and itβs powered by real-time data.