Most give results in a way that cannot be read by anyone, let alone be used. While the JSON programmable language, the best way to have the results that are positive for everyone is Python.
Nowadays it is more important to be aware of metals that used to be unknown than ones like gold and silver. In the case of ruthenium, it is much more special because it has characteristics that no other has.
This is a crystallized style of metal that can be used for practical purposes as well as for jewelry and other high-end elements.
Python is an interpreted high-level general-purpose programming language. That is why it is best to be used within a database with changing information such as precious metals.
Is widely used in the development of websites and software, as well as in task automation, data analysis, and data visualization. Because of its relative ease of learning,
Python has been used by many non-programmers, such as accountants and scientists, for a variety of common tasks.
Here’s an example.
import requests base_currency = 'USD' symbol = 'RUTH' endpoint = 'latest' access_key = 'API_KEY' resp = requests.get( 'https://metals-api.com/api/'+endpoint+'?access_key='+access_key+'&base='+base_currency+'&symbols='+symbol) if resp.status_code != 200: # This means something went wrong. raise ApiError('GET /'+endpoint+'/ {}'.format(resp.status_code)) print(resp.json())
Anyway, this extract belongs to one of the most used metal APIs. This is Metals-API. In addition to being one of the fastest, it gives this type of possibilities between Python and JSON, as well as Java and PHP.
Metals-API.com offers a live precious metals market data API with a 2 decimal point resolution and a 60-second refresh rate.
To achieve the highest level of data coverage and consistency, our system employs a unique “validation and fallback”. This technique assigns different priorities to each data source and validates each metal/forex rate as it enters our databases.
If one source fails, they go to the next one. This allows us to avoid inconsistencies and provide spot conversion rates to six decimal places for the vast majority of currencies.
Key Features
- API for real-time, historical, and tick-by-tick periodicity
- Real-time precious metals prices for Gold, Silver, Copper, Rhodium, Nickel, Palladium, Zinc, Ruthenium, and Platinum
- Real-time metals price API for base metals and platinum group metals
- Intraday and historical charts AP
- Historical spot and future prices for Gold, Silver, Copper, Rhodium, Nickel, Palladium, Zinc, Ruthenium, and Platinum
Key Benefits
- Access institutional quality real-time precious metal prices through an easy-to-use API using a trusted Gold and Silver pricing API used by hundreds of companies in the industry.
- Easily include real-time Gold and other metals prices in your spreadsheets, websites, mobile apps, and other business applications.
- Reduce the time it takes for apps that rely on precious metal prices to reach the market.
- Using cloud APIs, you may get rid of the aches and complexities of legacy feeds.
Also published on Medium.