1. Home
  2. Docs
  3. Chainlink Adapters
  4. Private: Adapter Downloads
  5. CoinMarketCap Adapter

CoinMarketCap Adapter

Adapter for use on Google Cloud Platform, AWS Lambda or Docker. Upload Zip and use trigger URL as bridge endpoint.

Install

git clone git@github.com:OracleFinder/CMCExternalAdapter.git

npm install

Create Zip:

zip -r cl-cmc.zip

Adapter can be deployed in Docker container as server within linux instance or ran as serverless adapter as function inside GCP or AWS.

AWS/GCP Setup

Create a cloud function in GCP or Lambda, and set the handler function according to the platform you are using.

GCP: gcpservice
AWS: handler
REMEMBER TO set the environment variable API_KEY to your CoinMarketCap API Key!

Docker Setup

docker build . -t cmcadaptor
docker run -d \
    --name cmcadaptor \
    -p 80:80 \
    -e PORT=80 \
    -e API_KEY=<YOUR CMC API KEY> \
    cmcadaptor
Was this article helpful to you? Yes No

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *