A simple CLI BTC ticker to get the current price of BTC at a set interval & duration.
Git clone this repo into your desired directory.
git clone https://github.com/freddieerg/micro-mkt.git
Download dependencies using your chosen package manager.
yarn install
Automatically build & run using the following script:
yarn start -d DURATION -i INTERVAL
Both duration & interval are optional arguments (in seconds). Duration defaults to 0s, interval defaults to 1s. This will result in a single tick being printed if both arguments are absent.
Testing is done via Jest using ts-jest.
yarn test