Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 2.5 KB

File metadata and controls

73 lines (52 loc) · 2.5 KB

Chainlink External Adapter for Tradingeconomics

1.1.36

This adapter uses the Tradingeconomics WS stream

Base URL wss://stream.tradingeconomics.com/

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

Environment Variables

Required? Name Description Type Options Default
API_URL The URL of the WS endpoint string wss://stream.tradingeconomics.com/ or https://api.tradingeconomics.com/markets
API_CLIENT_KEY Your API client key string
API_CLIENT_SECRET Your API client secret string

Input Parameters

Every EA supports base input parameters from this list

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

Price Endpoint

price is the only supported name for this endpoint.

Input Params

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

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "price",
    "base": "EURUSD:CUR"
  },
  "debug": {
    "cacheKey": "1CbLEKoATl+/z1X7pi4LVsQRqBs="
  },
  "rateLimitMaxAge": 7999
}

Response:

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

MIT License