Skip to content

Use An API To Get Brass Spot Prices

Do you wish to obtain brass spot prices? Use an API!

Brass is a copper-zinc alloy with various proportions that may be utilized to generate a variety of mechanical, electrical, and chemical properties. It is a substitutional alloy, which implies that atoms from both components may move around inside the same crystal structure.

Because of its dazzling, gold-like look, brass has long been a popular ornamental material; it is widely used for drawer handles and doorknobs. It is also commonly used to make cutlery and is widely used in musical instruments such as horns and bells. It is also used as a substitute to copper in the production of costume jewelry, fashion jewelry, and other imitation jewelry.

Brass is employed in a variety of sectors and is present in our daily lives, even if we are unaware of it. With that in mind, we feel that investing in this type of business is an excellent choice right now because it is developing at a rapid pace. However, in order to do so, you must remain up to speed on brass rates nearly constantly in order to better understand the industry and increase your earnings.

This may appear difficult and tiring, but by using an API, you may save a significant amount of time. This is an interface that joins two programs so that they may communicate with one another. When you ask the API a question, you will receive an immediate response. In this situation, if you send a request (or make an API call) for brass rates in a given currency, the program will respond immediately.

How To Get An API

To obtain this technology, you must utilize software that supports API calls. There are a number websites that can assist you, but to better illustrate how they function, we will choose Metals-API, one of the most popular and comprehensive.

This is an online API that may provide you with information on precious metals and a wide range of currencies to suit your needs. So, in order to obtain brass rates, you must:

  1. At sign in and generate your own API key.
  2. Look for the desired metal (LME-ALU) and the currency of your choice.
  3. Before concluding the API call, use these symbols to add metal and money to the list. You may also choose a programming language and a price range.
  4. Finally, you hit the “run” button, and you’re done! The API will be displayed on your screen.

The end product will look like this:

"success": true,
"timestamp": 1519296206,
"base": "BRASS",
"date": "2018-09-10",
"rates": {
"AUD": 1.566015,
"CAD": 1.560132,
"CHF": 1.154727,
"CNY": 7.827874,
"GBP": 0.882047,
"JPY": 132.360679,
"USD": 1.23396,

More About This API

To keep up with the most recent precious metals prices, use Metals-API, that has been serving clients and the financial world for years. Their comprehensive website includes real-time gold, silver, and other metal price quotations from a variety of sources (including Bloomberg, Reuters, and others), as well as delayed futures and options pricing.

The real-time pricing stream is refreshed every two seconds, ensuring that you always have access to the most recent data. This API is customisable, allowing you to obtain information in the most convenient manner for you, making it suitable for a wide range of applications.

Also published on Medium.

Published inAppsTechnology

Be First to Comment

Leave a Reply

%d bloggers like this: