Skip to content

How To Get LME Tin Historical Rates With An API

Do you want to compare tin prices over time? you should read this article!

Tin is a silver-colored metal with subtle yellow color. Tin has a wide range of applications. It takes a high polish and is used to avoid corrosion on other metals, such as tin cans, which are composed of tin-coated steel. Soft solder, pewter, bronze, and phosphor bronze are all-important tin alloys. A niobium-tin alloy is used to make superconducting magnets.

To create a level surface, most window glass is manufactured by floating molten glass over molten tin. Tin salts are sprayed over the glass to create electrically conductive coatings.

Historical rates are essential to understand since they allow you to compare prices through time and determine when the optimum moment to purchase this metal is. As a result, you should utilize an API (Application Programming Interface) if you wish to invest in the tin or keep track of its pricing. It is an interface that connects two devices and sends data between them.

But, historical rates are not supported by all applications, and obtaining this technology might be difficult. We choose Metals-API in this scenario since it gathers data from the most significant financial organizations, such as the London Metal Market (LME), the world’s largest exchange for industrial metals.

Why Metals-API?

It’s updated every minute and has a large range of metals to choose from. Metals-API provides you with the most recent market price. The prior price will also be taken into account. It has a wide range of metals and currencies to choose from. It works with a broad variety of devices, such as computers and mobile phones.

Follow these steps to retrieve historical LME tin rates:

  1. To get your API key, go to
  2. In the website’s list, look for the LME Tin symbol and currency sign you wish to use.
  3. Make the API call once you’ve added metal and money to the list using these symbols. As a programming language, you can utilize JSON or PHP.
  4. Most currencies’ historical rates may be tracked back to 2019. By adding a date (format YYYY-MM-DD) to the basic URL, you may query the Metals-API API for historical rates.

It will show like this:

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

Be First to Comment

Leave a Reply

%d bloggers like this: