Skip to content

PaulSebalu/xchenj-api

Repository files navigation

Currency converter API

A node js API

Getting started

  • Clone the repository
  • Install dependencies using yarn install from the app root
  • Create an .env file and specify the X_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.com
  • DEV_ORIGIN is the host your client is running
  • PROD_ORIGIN is the host your client is running in production
  • Link to client repo
  • Start the development server using yarn dev

API Endpoints

Request headers:
Content-Type: application/json

  • GET /listing?currency=cryptos   Get currency crypto listing
  • GET /listing?currency=fiats   Get currency fiat listing
  • POST /convert request body { "amount": (number), "baseCurrency": (number), "exchangeCurrency": (currencySymbol)}   Get currency conversion

About

Currency converter API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published