C20 Monitor is a command-line interface app that monitors the C20 Crypto index fund and print out changes to the token value, fund size, and individual stake.
On set intervals, the app will print out the change since the last interval, making it easier to see overall movement.
On exit, the app will print out the changes to the NAV, Fund, and Stake size since the start of the app.
- Node 6+
- Clone the git repo
- Run
npm install
in the repo folder - Run
node c20-monitor
. This will start the app with default argument values (see below). - Exit the app with the
ESC
key orctrl + c
The monitor takes up to 3 parameters:
node c20-monitor [STAKE_SIZE] [UPDATE_INTERVAL_IN_SECONDS] [CHANGE_INTERVAL_IN_SECONDS]
You can also specify specific parameters to set with arguments:
node c20-monitor -stake 10000 -time 60 -change 300
Argument | Default | Description |
---|---|---|
[STAKE_SIZE] or -stake [VALUE] |
10000 | This is the size of the stake to monitor. |
[UPDATE_INTERVAL_IN_SECONDS] or -time [VALUE] |
120 seconds | This is C20 token value update frequency in seconds. |
[CHANGE_INTERVAL_IN_SECONDS] or -change [VALUE] |
3600s (1h) | This is frequency in seconds when to show the changes since start. |
Creating a config.json
file into the root folder will allow setting these values without having to provide them each time.
Example:
{
"stake": 15000.2501,
"updateInterval": 120,
"changeInterval": 3600
}
Each time the app refreshes the data from C20 servers, it stores the NAV, C20 Fund size, and a timestamp into a separate data.json
file.
Starting the app with this file in the same folder will print out the changes since the last saved state.
Thanks for the C20 team for delivering an amazing product!
If so inclined, send ETH/C20 to: 0xb9E4c0819083fD8AC91FbD5694f7E3139539E412