Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.04 KB

File metadata and controls

41 lines (35 loc) · 1.04 KB

Chainlink OilpriceAPI External Adapter

Input Params

Required? Name Description Options Defaults to
type, base, asset, of from The type of oil to get the price from bz, brent, wti
endpoint The endpoint to use prices/latest

Sample Input

{
  "id": 1,
  "data": {
    "base": "BZ"
  }
}

Sample Output

{
  "jobRunID": "278c97ffadb54a5bbb93cfec5f7b5503",
  "data": {
    "status": "success",
    "data": {
      "price": 26.71,
      "formatted": "$26.71",
      "currency": "USD",
      "code": "BRENT_CRUDE_USD",
      "created_at": "2020-03-25T14:10:00.424Z",
      "type": "spot_price"
    },
    "result": 26.71
  },
  "result": 26.71,
  "statusCode": 200
}