Skip to content

Latest commit

 

History

History
124 lines (91 loc) · 4.09 KB

File metadata and controls

124 lines (91 loc) · 4.09 KB

Chainlink External Adapter for Twelvedata

1.1.36

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/

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, forex, price, stock 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 The symbol of the currency to query string

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "closing",
    "base": "VXX"
  },
  "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, forex, price, stock.

Input Params

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

Example

Request:

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

Response:

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

MIT License