A node js API
- Clone the repository
- Install dependencies using
yarn installfrom the app root - Create an
.envfile and specify theX_CMC_PRO_API_KEY,DEV_ORIGIN,API_DOMAIN - Get an account with Coin market to get a key:
X_CMC_PRO_API_KEY API_DOMAIN=https://pro-api.coinmarketcap.comDEV_ORIGINis the host your client is runningPROD_ORIGINis the host your client is running in production- Link to client repo
- Start the development server using
yarn dev
Request headers:
Content-Type: application/json
GET /listing?currency=cryptosGet currency crypto listingGET /listing?currency=fiatsGet currency fiat listingPOST /convertrequest body { "amount": (number), "baseCurrency": (number), "exchangeCurrency": (currencySymbol)} Get currency conversion