Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 2.66 KB

File metadata and controls

81 lines (59 loc) · 2.66 KB

Chainlink External Adapter for Coinbase

1.2.36

Query information from Coinbase's API

Base URL wss://ws-feed.pro.coinbase.com

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

Environment Variables

Required? Name Description Type Options Default
API_ENDPOINT string https://api.coinbase.com
WS_API_ENDPOINT string wss://ws-feed.pro.coinbase.com

Input Parameters

Every EA supports base input parameters from this list

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

Crypto Endpoint

NOTE: the price endpoint is temporarily still supported, however, is being deprecated. Please use the crypto endpoint instead.

Supported names for this endpoint are: crypto, price.

Input Params

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

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "crypto",
    "symbol": "BTC",
    "convert": "USD"
  },
  "debug": {
    "cacheKey": "r6ZXhd+zEdyag6axryIefPg9QnI="
  },
  "rateLimitMaxAge": 370
}

Response:

{
  "jobRunID": "1",
  "data": {
    "data": {
      "base": "BTC",
      "currency": "USD",
      "amount": "57854.29"
    },
    "result": 57854.29
  },
  "result": 57854.29,
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License