- To install essential packages:
yarn
ornpm i
- To run the server:
yarn dev
ornpm run dev
- To run tests:
yarn test
ornpm run test
Base URL: http://localhost:5000/
Route: /api/getBitcoinInfo/{currency}
-
This will return
currency
- currency namecurrentRate
- current bitcoin ratemaxRate
- Highest btc rate in last 30 daysminRate
- Lowest btc rate in last 30 days
-
Available currencies:
USD | GDB | EUR
-
Response:
{ "currency": "USD", // if currency is 'USD' "currentRate": 47035.3, "maxRate": 48173.2, "minRate": 37788.0583 }