Skip to content

API Endpoint For Gold And Silver Prices Fluctuation Data

If you’re considering investing in Gold, Silver, or another metal, there are a number of APIs for learning about metal pricing available online.

Since these natural shiny materials are already known all over the world, they’re not new to anyone. We’re used to seeing them in bracelets, rings, and necklaces; in small or wide amounts. 

Uses

Although Gold is commonly used for jewelry, some industries like electronics take advantage of its characteristics as well. Even more, Gold can also be found in aerospace parts that are key to avoiding infrared radiations and heat.

On the other hand, Silver, besides being used in jewelry is also utilized to make mirrors, batteries, and dental alloys

API Endpoint For Gold And Silver Prices Fluctuation Data

Investment

Even though both precious metals are great investments, you need to track prices and know-how they vary through time.

Metals-API

Metals-API gathers market data prices from a variety of trade sources and organizations throughout the world in a variety of formats and frequencies. Commercial sources are also chosen because they provide a more realistic picture of market exchange rates, particularly for important currencies and metals.

API Endpoint For Gold And Silver Prices Fluctuation Data

Accuracy

Furthermore, in order to achieve the best level of coverage and precision, the system assigns a separate priority to each data source.

This also helps to avoid inconsistencies by providing accurate spot conversion rates for the great majority of currencies to six decimal places.

Key Features

  • Hundreds of industry firms use an amazingly simple API to get institutional-quality real-time precious metal values from a dependable metals pricing API.
  • Moreover, gold, silver, and other metals’ real-time prices may be easily integrated into spreadsheets, websites, mobile apps, and other commercial applications.
  • Reduce the amount of time it takes for apps that rely on precious metal prices to reach the market.
  • Using cloud APIs, you might be able to manage the challenges and complications of legacy feeds.

Why Metals-API?

  • Real-time, historical, and tick-by-tick periodicity API
  • Precious and base metals pricing in real-time
  • The prices of platinum group metals and base metals are regularly updated.
  • Graphs of API usage in the past and current.
  • Gold, silver, palladium, and platinum spot and predicted prices throughout history

Easy To Use

1- Create an account and generate an API Key: this code must be kept safe because it is necessary to make an API call. Please don’t provide your Key to anybody else; each user is unique.

2- You must also be familiar with the symbols you will use. You can find them here.

The gold symbol is XAU
The Silver symbol is XAG

Metals-API does really offer a wide range of precious metals and currencies from around the world.

3- Finally, copy and run your API access key.

Fluctuation Endpoint

You can also use the Metals-API fluctuation endpoint to acquire information on how currencies vary on a daily basis. To utilize this functionality, simply choose a start and end date, then select which currencies (symbols) you want to query the API for. Keep in mind, however, that the maximum duration is 365 days.

API Request:

https://www.metals-api.com/api/fluctuation
? access_key = API_KEY
& start_date = 2015-12-01
& end_date = 2015-12-24

API Response:

{
"success":true,
"fluctuation":true,
"start_date":"2018-02-25",
"end_date":"2018-02-26",
"base":"EUR",
"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
},
[...]
}
}

Also published on Medium.

Published inAppsTechnology
%d bloggers like this: