Are you looking for an API that gives you Aluminum fluctuation data? you should read this post!
Aluminum has a density that is around one-third that of steel, making it less dense than other common metals. It has a lot of applications: in transportation, it is used to make automobiles, aircraft, trucks, railway cars, marine vessels, bicycles, and spacecraft. In packaging: cans, foil, frame. Also, it is used in building and construction, and it has electricity-related uses.
Furthermore, it is used in machinery and computer cases. Household items are made of aluminum too. So, this element is a good part of our everyday lives. In addition, it is one of the most important metals industries: in 2016, worldwide aluminum output was 58.8 million metric tons.
For these facts, if you need aluminum for your business, it is very important to stay updated on market prices. And to make your investments more efficient, you need to compare the prices over time and check the fluctuation of them to decide the best moment to buy. For this objective, you should use the right tools, an API, in this case.
But, Exactly What Is An API?
An application programming interface (API) is a piece of software that enables two programs on different machines to communicate with one another. When you use a mobile phone app that is linked to the internet, it sends data to a server. Data is captured, analyzed, and suitable protections are taken before being sent back to your phone. The computer then analyzes the information and displays it to you in an easy-to-understand format.
Metals-API is a good choice if you need to compare figures over time. It’s the most up-to-date API for this purpose, and it supports a wide range of metals and currencies. It collects and updates all important data from the world’s most prestigious financial organizations every minute.
Subscribing is simple:
- Your API key will be provided by www.metals-API.com.
- Look through the list of aluminum symbols (ALU) and currency signs on the internet to find the one you want.
- Once you’ve added metal and money to the list of symbols, make the API request.
- As a programming language, you have the option of using JSON or PHP.
This is the API request:
https://metals-api.com/api/fluctuation ? access_key = API_KEY & start_date = 2015-12-01 & end_date = 2015-12-24
And, this is the API response:
{ "success":true, "fluctuation":true, "start_date":"2018-02-25", "end_date":"2018-02-26", "base":"ALU", "rates":{ "USD":{ "start_rate":1.228952, "end_rate":1.232735, "change":0.0038, "change_pct":0.3078 }, "JPY":{ "start_rate":131.587611, "end_rate":131.651142, "change":0.0635, "change_pct":0.0483 }, [...] } }
Why Metals-API?
Metals-API is one of the most precise and dependable API tools available. It collects data from about 15 reliable sources per minute. Among them are banks and financial data businesses. As a consequence, you’ll know exactly how much it will cost.
More than 170 currencies, commodities, and cryptocurrencies are accepted, including Bitcoin and Litecoin. The JSON API, which stands for JavaScript Object Notation, eliminates the need for each program to develop its ad-hoc code to connect to servers that interact in a certain way.