Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 2.24 KB

File metadata and controls

54 lines (43 loc) · 2.24 KB

Chainlink External Adapter for MetalsAPI

Environment Variables

Required? Name Description Options Defaults to
API_KEY

Input Parameters

Required? Name Description Options Defaults to
endpoint The endpoint to use price price

Price Endpoint

Input Params

Required? Name Description Options Defaults to
base, from, or coin The symbol of the currency to query
quote, to, or market The symbol of the currency to convert to
🟡 amount The amount fo the base currency 1
🟡 overrides If base provided is found in overrides, that will be used Format

Output

{
  "jobRunID": "1",
  "data": {
    "success": true,
    "query": {
      "from": "XAU",
      "to": "USD",
      "amount": "1"
    },
    "info": {
      "timestamp": 1595252400,
      "rate": 1813.1957606105088
    },
    "historical": false,
    "date": "2020-07-20",
    "result": 1813.1957606105088,
    "unit": "per ounce"
  },
  "result": 1813.1957606105088,
  "statusCode": 200
}