A node js API
- Clone the repository
- Install dependencies using
yarn install
from the app root - Create an
.env
file 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_ORIGIN
is the host your client is runningPROD_ORIGIN
is 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=cryptos
Get currency crypto listingGET /listing?currency=fiats
Get currency fiat listingPOST /convert
request body { "amount": (number), "baseCurrency": (number), "exchangeCurrency": (currencySymbol)} Get currency conversion