cartera
cartera
isportfolio
in Catalan
investment portfolio
Install
npm install --global cartera
cartera
Editions
This package is published with the following editions:
Older environments may need Babel's Polyfill or something similar.
Usage
Cartera portfolios are JSON files like this:
The default portfolio location is ~/Documents/Cartera/portfolio.json
and you can specify a custom path via cartera --path <path/file.json>
.
Running cartera with the above will output a result that looks like this:
items:currency: 'BCH'open:when: '8/1/2017, 8:00:00 AM'bought:amount: 2currency: 'BCH'price: 0002276504200150249sold:currency: 'USD'amount: 87854price: 43927market:USD:USD: 1BCH: 0002277BCH:USD: 43927BCH: 1value:USD: 87854BCH: 2close:when: '6/20/2018, 1:00:00 PM'bought:currency: 'USD'amount: 180034price: 90017sold:currency: 'BCH'amount: 2price: 00011109012742037616market:USD:USD: 1BCH: 0001111BCH:USD: 90017BCH: 1value:USD: 180034BCH: 40984815716985changes:USD:amount: 9218difference: '104.92%'remaining: '204.92%'BCH:amount: 20984815716984997difference: '104.92%'remaining: '204.92%'currency: 'ETH'open:when: '8/1/2017, 8:00:00 AM'bought:amount: 2currency: 'ETH'price: 0004426737494466578sold:currency: 'USD'amount: 4518price: 2259market:ETH:USD: 2259ETH: 1USD:USD: 1ETH: 0004427value:USD: 4518ETH: 2close:when: '6/20/2018, 1:00:00 PM'bought:currency: 'USD'amount: 107238price: 53619sold:currency: 'ETH'amount: 2price: 00018650105373095357market:ETH:USD: 53619ETH: 1USD:USD: 1ETH: 0001865value:USD: 107238ETH: 474714475431607changes:USD:amount: 6205800000000002difference: '137.36%'remaining: '237.36%'ETH:amount: 27471447543160696difference: '137.36%'remaining: '237.36%'totals:currency: 'USD'open: '$1330.34'close: '$2872.72'change: '$1542.38'difference: '115.94%'remaining: '215.94%'
You can generate JSON output by using the --json
flag:
The default currency (which is also used for reporting) is USD
and can be customised via cartera --currency <EUR>
.
History
Discover the release history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
No maintainers yet! Will you be the first?
Sponsors
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Unless stated otherwise all works are:
- Copyright © Benjamin Lupton
and licensed under: