/micro-mkt

A simple CLI BTC ticker to get the current price of BTC at a set interval & duration.

Primary LanguageTypeScript

MicroMkt Coding Test (BTC Ticker)

A simple CLI BTC ticker to get the current price of BTC at a set interval & duration.

Installation

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

Usage

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

Testing is done via Jest using ts-jest.

yarn test