Skip to content

Latest commit

 

History

History
141 lines (105 loc) · 5.91 KB

File metadata and controls

141 lines (105 loc) · 5.91 KB

Chainlink External Adapter for Twelvedata

1.4.1 v2

closing endpoint provides the closing price of the previous day as detailed in Twelvedata documentation.

price endpoint provides the real-time price as detailed in Twelvedata documentation.

This document was generated automatically. Please see README Generator for more info.

Environment Variables

Required? Name Description Type Options Default
API_KEY API key for Twelvedata string
API_ENDPOINT The endpoint for your Twelvedata string https://api.twelvedata.com/

Data Provider Rate Limits

Name Requests/credits per second Requests/credits per minute Requests/credits per hour Note
basic 8 33.3333333333 800 API requests/day
grow1 55
grow2 144
grow3 377
pro1 610
pro2 987
pro3 1597
enterprise1 2584
enterprise2 4181
enterprise3 10946

Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string closing, crypto, eod, etf, forex, price, stock, uk_etf closing

Closing Endpoint

This closing endpoint provides the closing price of the previous day as detailed in Twelvedata documentation.

Supported names for this endpoint are: closing, eod.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
base coin, from, market, symbol, uk_etf The symbol of the currency to query string

Example

Request:

{
  "id": "1",
  "data": {
    "base": "VXX",
    "endpoint": "closing"
  },
  "debug": {
    "cacheKey": "ZWDHGGXpQ0kNUlJ7WAZMGVmrHww="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "symbol": "VXX",
    "exchange": "CBOE",
    "currency": "USD",
    "datetime": "2021-11-05",
    "close": "20.86750",
    "result": 20.8675
  },
  "result": 20.8675,
  "statusCode": 200,
  "providerStatusCode": 200
}

Price Endpoint

This price endpoint provides the real-time price as detailed in Twelvedata documentation.

Supported names for this endpoint are: crypto, etf, forex, price, stock, uk_etf.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
base coin, from, market, symbol, uk_etf The symbol of the currency to query string

Example

Request:

{
  "id": "1",
  "data": {
    "base": "VXX",
    "endpoint": "price"
  },
  "debug": {
    "cacheKey": "vRWHl92FGmzqMko1oZyLtKloXNI="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "price": "20.86750",
    "result": 20.8675
  },
  "result": 20.8675,
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License