This is an API to get current Bitcoin rate, The highest & lowest Bitcoin rate in the last 30 days,in the requested currency.
- Get current Bitcoin rate
- Get highest & lowest Bitcoin rate in the last 30 days
- Get Bitcoin rate in the requested currency
GET:
/api/bitcoins/info(bitcoin rate & lowest & highest rate last 30 days in USD)/api/bitcoins/info?currency=BDT(bitcoin rate & lowest & highest rate last 30 days in requested currency [BDT])
// Will return
{
"currency": "BDT",
"current_rate": "3,650,702.0419",
"highest": 3819373.8169,
"lowest": 3184623.1647,
"description": "The current Bitcoin rate, The highest & lowest Bitcoin rate in the last 30 days (2022-02-20 to 2022-03-22), in BDT"
}- Clone the repo by using
git clone https://github.com/coderkhalide/bitcoin-api.git - or download the zip file from the repo and unzip it.
- Run
npm installoryarnon the cloned directory. - To run development mode run
npm run devoryarn dev - Enjoy 😎
git clone https://github.com/coderkhalide/bitcoin-api.git
cd bitcoin-api
yarn install or npm install
npm run dev or yarn devFor development, you will only need Node.js and a node global package, Yarn, installed in your environnement.
-
Just go on official Node.js website and download the installer. Also, be sure to have
gitavailable in your PATH,npmmight need it (You can find git here).
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.