Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 2.34 KB

File metadata and controls

75 lines (51 loc) · 2.34 KB

Cryptex Adapter

2.0.20 v2

Cryptex adapter, providing BTC dominance over the total crypto market

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

Environment Variables

Required? Name Description Type Options Default
ETHEREUM_RPC_URL An http(s) RPC URL to a blockchain node that can read the BTC market cap & total market cap contracts string
ETHEREUM_CHAIN_ID The chain id to connect to string 1

Data Provider Rate Limits

There are no rate limits for this adapter.


Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string btc-dominance, dominance btc-dominance

Btcdominance Endpoint

Endpoint to calculate BTC dominance

Supported names for this endpoint are: btc-dominance, dominance.

Input Params

There are no input parameters for this endpoint.

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "btc-dominance"
  },
  "debug": {
    "cacheKey": "pNufeTfzjBR4afsgETdEgOf2EpE="
  }
}

Response:

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

MIT License