Skip to content

Latest commit

 

History

History
112 lines (86 loc) · 3.01 KB

File metadata and controls

112 lines (86 loc) · 3.01 KB

Chainlink External Adapter for taapi.io

1.1.36

Base URL https://api.taapi.io/

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

Environment Variables

Required? Name Description Type Options Default
API_KEY string

Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string indicator indicator

Indicator Endpoint

indicator is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
indicator The TA indicator to query
base coin, from The base currency in the market to query string
quote market, to The quote currency in the market to query string
exchange The exchange to get data from
interval The time interval to use

Example

Request:

{
  "id": "1",
  "data": {
    "base": "BTC",
    "quote": "USDT",
    "exchange": "binance",
    "indicator": "avgprice",
    "interval": "1h"
  },
  "debug": {
    "cacheKey": "71cd2331edf138075e0eaf02d900d8bea1d8a3d6"
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "result": 66470.04250000001
  },
  "result": 66470.04250000001,
  "statusCode": 200,
  "providerStatusCode": 200
}
Additional Examples

Request:

{
  "id": "1",
  "data": {
    "base": "BTC",
    "quote": "USDT",
    "exchange": "binance",
    "indicator": "cci",
    "interval": "1h"
  },
  "debug": {
    "cacheKey": "49fc570d9836f96bec30bd81db27e131181cf97e"
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "result": -109.20727257685407
  },
  "result": -109.20727257685407,
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License