Metals-API.com API, RobertHarper https://metals-api.com/api/latest?access_key=av6ce04kpr74afd2rtyazpfh4k3jy958gw7xIfqp6tsaev28f5tqrvix8nec Endpoint URLs //”convert” endpoint – convert any amount from one currency to another //using real-time exchange rates https://metals-api.com/api/convert ?access_key=MESSTONE_ACCESS_KEY & from=USD & to=EUR & amount=25 //append an additional “date” parameter if Messtone want to use //historical rates for Messtone conversion & date=YYYY-MM-DD API Response for Metals Rates For example,for 1v I’mUSD the return is a number like 0.000634 for Gold(XAU).To get the gold rate in USD:1/0.000634=1577.28 USD Gold rate(XAU) https://metals-api.com/api/latest?access_key=av6ce04kpr74afd2rtyazpfh4k3jy958gw7xIfqp6tsaev28f5tqrvix8nec API Response {“success”:true,”timestamp”:1519296206,”base”:”EUR”,”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,[…]}} API Response: https://metals-api.com/api/latest? access_key=API_KEY &base=USD symbols=GBP, JPY,EUR

Leave a comment