Skip to content

Latest commit

 

History

History
87 lines (68 loc) · 2.99 KB

File metadata and controls

87 lines (68 loc) · 2.99 KB

Chainlink External Adapter for CryptoCompare

Environment Variables

Required? Name Description Options Defaults to
API_KEY An API key that can be obtained from here

Input Parameters

Required? Name Description Options Defaults to
endpoint The endpoint to use crypto, marketcap crypto

Crypto Endpoint

NOTE: the price endpoint is temporarily still supported, however, is being deprecated. Please use the crypto endpoint instead.

Input Params

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

Sample Input

{
  "id": "1",
  "data": {
    "base": "ETH",
    "quote": "USD"
  }
}

Sample Output

{
  "jobRunID": "1",
  "data": {
    "USD": 164.02,
    "result": 164.02
  },
  "statusCode": 200
}

Marketcap Endpoint

Input Params

Required? Name Description Options Defaults to
base, from, coin The symbol of the currency to query
quote, to, market The symbol of the currency to convert to

Sample Input

{
  "jobId": "1",
  "data": {
    "base": "BTC",
    "quote": "USD",
    "endpoint": "marketcap"
  }
}

Sample Output

{
  "jobRunID": "1",
  "statusCode": 200,
  "result": 891651422525.12,
  "data": {
    "result": 891651422525.12
  }
}