Skip to content

Latest commit

 

History

History
174 lines (130 loc) · 4.39 KB

File metadata and controls

174 lines (130 loc) · 4.39 KB

Chainlink Tiingo External Adapter

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 eod, iex or stock, top, prices or crypto crypto

EOD Endpoint

https://api.tiingo.com/documentation/end-of-day

Input Params

Required? Name Description Options Defaults to
ticker, base, from, or coin The stock ticker to query
field The value to return close

Sample Input

{
  "id": "1",
  "data": {
    "ticker": "aapl",
    "field": "close"
  }
}

Sample Output

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

IEX Endpoint

https://api.tiingo.com/documentation/iex

Input Params

Required? Name Description Options Defaults to
ticker, base, from, or coin The stock ticker to query
field The value to return tngoLast

Sample Input

{
  "id": "1",
  "data": {
    "ticker": "aapl"
  }
}

Sample Output

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

Top Endpoint

The top of order book endpoint from:

https://api.tiingo.com/documentation/crypto

Input Params

Required? Name Description Options Defaults to
base, from, or coin The cryptocurrency symbol to query
quote, to, or market The output currency to return the price in
field The value to return lastPrice

Sample Input

{
  "id": "1",
  "data": {
    "base": "btc",
    "quote": "usd"
  }
}

Sample Output

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

Prices Endpoint

Crypto prices endpoint from:

https://api.tiingo.com/documentation/crypto

This endpoint does a VWAP of all the exchanges on the current day and across base tokens.

Input Params

Required? Name Description Options Defaults to
base, from, or coin The cryptocurrency symbol to query
quote, to, or market The output currency to return the price in
field The value to return lastPrice

Sample Input

{
  "id": "1",
  "data": {
    "base": "btc",
    "quote": "usd"
  }
}

Sample Output

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