Copper is an atomic element with the symbol Cu and the atomic number 29. It’s a malleable, ductile metal with high thermal and electrical conductivity. The color of a freshly exposed pure copper surface is pinkish-orange.
Furthermore, copper is widely used in electrical equipment such as wires and motors. This is due to the fact that it can be dragged into wires and transmits heat and electricity well. It’s also used in construction (such as roofing and plumbing) and industrial machines (such as heat exchangers).
Main Advantages
- Use a trusted Gold and Silver pricing API used by hundreds of industry companies to gain access to institutional-quality real-time precious metal prices via an easy-to-use API.
- Real-time gold and other metals prices are simple to incorporate into spreadsheets, websites, mobile apps, and other business applications.
- Reduce the amount of time it takes for apps that rely on precious metal prices to reach the market.
- By utilizing cloud APIs, you may be able to avoid the pains and complexities of legacy feeds.
Main Features
- Periodicity in real time, history, and tick-by-tick API
- Real-time precious metals prices Gold, silver, palladium, and platinum are the four precious metals API
- Real-time metal prices metal of the platinum group and base metals API
- Intraday and historical charts AP
- Spot and future prices of gold, silver, palladium, and platinum throughout history
Python
Python is a high-level general-purpose programming language that is interpreted. Its design philosophy prioritizes code readability by employing significant indentation. Its language elements and object-oriented approach are designed to assist programmers in writing clear, logical code for both small and large-scale projects.
Is widely used in website and software development, as well as task automation, data analysis, and data visualization.
Python has been used by many non-programmers, such as accountants and scientists, for a variety of common tasks, such as financial planning, due to its relative ease of learning.
Copper (Cu) Example using Python
import requests base_currency = 'USD' symbol = 'XCU' 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())
Fastest Results
Metals-API.com provides a live precious metals market data API with a 2 decimal point resolution and a refresh rate of 60 seconds.
Also published on Medium.