Skip to content

Latest commit

 

History

History
78 lines (63 loc) · 2.57 KB

File metadata and controls

78 lines (63 loc) · 2.57 KB

Chainlink External Adapter for dxFeed

Environment Variables

Required? Name Description Options Defaults to
API_USERNAME
API_PASSWORD
API_ENDPOINT The endpoint for your dxFeed https://tools.dxfeed.com/webservice/rest

Input Parameters

Required? Name Description Options Defaults to
endpoint The endpoint to use price price

Price Endpoint

Input Params

Required? Name Description Options Defaults to
base, from, coin, market The symbol of the currency to query
🟡 overrides If base provided is found in overrides, that will be used Format

overrides should contain the following symbol conversions:

N225 ➡️ 'NKY.IND:TEI'
FTSE ➡️ 'UKX.IND:TEI'
TSLA ➡️ 'TSLA:BFX'
TSLAX ➡️ 'TSLA.US:TEI'

Sample Input

{
  "id": 1,
  "data": {
    "base": "FTSE"
  }
}

Sample Output

{
  "jobRunID": "1",
  "data": {
    "status": "OK",
    "Trade": {
      "UKX:FTSE": {
        "eventSymbol": "UKX:FTSE",
        "eventTime": 0,
        "time": 1593001772000,
        "timeNanoPart": 0,
        "sequence": 115972,
        "exchangeCode": "",
        "price": 6194.63,
        "size": 0,
        "dayVolume": 0,
        "dayTurnover": "NaN",
        "tickDirection": "ZERO_UP",
        "extendedTradingHours": false
      }
    },
    "result": 6194.63
  },
  "result": 6194.63,
  "statusCode": 200
}