Skip to content

How To Get LME Tin Historical Rates With An API

If you want to know the historical rates of Tin, you should read this article because we have the best API for you.

Tin is considered one of the most important metals worldwide. This metal is used in a variety of industries, including food storage can plating, bearing metals, and solder. This metal is also used in the production of glass, solder, and automobile parts.

To stay updated with the rates of tin, the best way is to use an Application Programming Interface (API) because it collects data from the London Metal Exchange (LME), the world’s largest exchange for industrial metals.

On the other hand, historical rates are too important to know because you can compare the prices during different periods and check when is the best time to invest in this metal. That’s why if you want to invest or stay updated with the rates of tin, you should use an API.

How To Get LME Tin Historical Rates With An API

What Is An API?

It enables you to collect exact information that you can provide to your customers. Through a single point of contact, you’ll have access to some of the most recent and up-to-date trading data.

However, not all software supports historical rates, and procuring this technology can be challenging. As a result, we recommend using Metals-API, which is the most comprehensive method of obtaining LME Tin rates.

To get LME tin historical rates, follow these steps:

  1. Go to www.metals-API.com to acquire your API key.
  2. Look for the LME Tin symbol and currency sign you want to use in the website’s list.
  3. After adding metal and money to the list with these symbols, make the API call. As a programming language, you can utilize JSON or PHP.
  4. Most currencies’ historical rates can be traced all the way back to 2019. By adding a date (format YYYY-MM-DD) to the basic URL, you can query the Metals-API API for historical rates.

The request should be written in the following format:

https://metals-api.com/api/2013-12-24
? access_key = API_KEY
& base = LME-TIN
& symbols = USD,CAD,EUR

As a result, the following is the end result:

{
"success": true,
"historical": true,
"date": "2013-12-24",
"timestamp": 1387929599,
"base": "LME-TIN",
"rates": {
"USD": 1.636492,
"EUR": 1.196476,
"CAD": 1.739516
}
}

Why Metals-API?

Metals-API provides a simple and informative way to find out current global market prices on every metal of your choice (including gold and silver). The site features a search engine that is specifically built for finding an up-to-the-minute price data feed on specific elements or combinations of them.

Current pricing data can benefit spreadsheets, websites, mobile apps, and other corporate applications, therefore this API can be used in a variety of ways. Besides, this data is available in different programming languages such as JSON and PHP.

How To Get LME Tin Historical Rates With An API

Their metal prices are reasonable. API can provide you with the most current market pricing. Previous prices will be considered as well. Metals such as tin, brass, copper, gold, magnesium, molybdenum, nickel, platinum, silver, steel, and others are supported.


Also published on Medium.

Published inAppsTechnology
%d bloggers like this: