Skip to content

Latest commit

 

History

History
143 lines (112 loc) · 4.66 KB

File metadata and controls

143 lines (112 loc) · 4.66 KB

Chainlink External Adapter for Tradermade

This adapter only has Websocket support for the forex endpoint.

1.6.33

Base URL wss://marketdata.tradermade.com/feedadv

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

Environment Variables

Required? Name Description Type Options Default
API_KEY An API key that can be obtained from here string
API_ENDPOINT string https://marketdata.tradermade.com/api/v1/live
WS_API_KEY An API key that can be obtained from here string

Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string commodities, forex, live, stock live

Live Endpoint

Supported names for this endpoint are: commodities, live, stock.

Input Params

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

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "live",
    "base": "AAPL"
  },
  "debug": {
    "cacheKey": "HHpABsvAKoDprbxdQVUIgj+YoK0="
  },
  "rateLimitMaxAge": 5843681
}

Response:

{
  "jobRunID": "1",
  "data": {
    "endpoint": "live",
    "quotes": [
      {
        "ask": 150.51,
        "bid": 150.5,
        "instrument": "AAPL",
        "mid": 150.50501
      }
    ],
    "requested_time": "Fri, 05 Nov 2021 17:12:07 GMT",
    "timestamp": 1636132328,
    "result": 150.50501
  },
  "result": 150.50501,
  "statusCode": 200,
  "providerStatusCode": 200
}

Forex Endpoint

forex is the only supported name for this endpoint.

Input Params

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

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "forex",
    "base": "ETH",
    "quote": "USD"
  },
  "debug": {
    "cacheKey": "QjGCaijj/AZfhRuMfhhiXZgSxOY="
  },
  "rateLimitMaxAge": 2921840
}

Response:

{
  "jobRunID": "1",
  "data": {
    "endpoint": "live",
    "quotes": [
      {
        "ask": 4494.03,
        "base_currency": "ETH",
        "bid": 4494.02,
        "mid": 4494.0249,
        "quote_currency": "USD"
      }
    ],
    "requested_time": "Fri, 05 Nov 2021 17:11:25 GMT",
    "timestamp": 1636132286,
    "result": 4494.0249
  },
  "result": 4494.0249,
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License