If you want to get brass historical rates, you should read this article!
Brass is a copper-zinc alloy with varying proportions that may be used to achieve a variety of mechanical, electrical, and chemical properties. It’s a substitutional alloy, meaning atoms from both components may change positions inside the same crystal structure.
Due to its dazzling, gold-like look, brass has long been a popular ornamental material; it is widely used for drawer handles and doorknobs. It has also been used to make cutlery and musical instruments such as horns and bells. It’s also used as a copper substitute in the production of imitation jewelry.
Brass is employed in a variety of sectors and is a part of our daily lives, even if we aren’t aware of it. With this in mind, we feel that investing in this type of business is a fantastic choice right now, as it continues to expand year after year. For this reason you need to know historical rates, because it gives you an idea of the behavior of the brass bussiness.
To do so, however, you must remain current on brass rates and compare prices at different times to make the greatest investment decision just in time. With historical rates, you may acquire a better understanding of the business and increase your profitability. You can invest in the right moment.
This seems difficult and laborious, but using an API may save you a lot of time. This is a connection between two programs that allows them to communicate with one another. If you ask the API for something, you’ll get a response almost immediately. In this example, if you send a request (or make an API call) for brass rates in a certain currency, the program will respond immediately.
Because of its 60 seconds update and the large variety of metals on it, the API that you should use is Metals-API. API can provide you with the most up-to-date market price. The previous pricing will also be taken into account.
How works Metals-API?
Follow these steps to obtain historical brass rates:
- To get your API key, go to www.metals-API.com.
- Look through the website’s list for the brass symbol (BRASS) and currency sign you wish to use.
- Make the API call once you’ve added metal and money to the list using these symbols. You may use JSON or PHP as a programming language.
- The historical rates of most currencies may be followed back to 2019. You may query the Metals-API for historical rates by adding a date to the basic URL.
The following format should be used to write the request:
https://metals-api.com/api/2013-12-24 ? access_key = API_KEY & base = BRASS & symbols = USD,CAD,EUR
Finally, the following is the result:
{ "success": true, "historical": true, "date": "2013-12-24", "timestamp": 1387929599, "base": "BRASS", "rates": { "USD": 1.636492, "EUR": 1.196476, "CAD": 1.739516 } }
Why Metals-API?
It collects and updates all essential data from the world’s most prominent financial organizations every minute. Tin, brass, copper, gold, magnesium, molybdenum, nickel, platinum, silver, and steel are among the metals that are supported. You can use it on a broad range of devices.
Bitcoin and Litecoin are among the more than 170 currencies, commodities, and cryptocurrencies accepted. The API is defined in JSON, which stands for JavaScript Object Notation and avoids the requirement for each app to write its own ad-hoc code to connect to servers that communicate in a certain way.