This is a program that calculates the price of all your stocks/ETFs/cryptos in your portfolio.
- Get your total portfolio value in any currency
- Real-time price streaming for crypto and forex
- Multiple data sources with fallback support
- Terminal UI with asset allocation visualization
- Support for Taiwan, US stocks/ETFs and cryptocurrencies
In the config/ dir. You can add a portfolio.toml to create your assets list.
config/portfolio.toml required
This toml file is used to store your portfolio. You can add as many assets as you want. The program will automatically fetch the price of each asset and calculate the total value of your portfolio in the target currencies.
[US-Stock]
amd = 10
[US-ETF]
QQQ = 2
[TW-Stock]
2330 = 10
[TW-ETF]
0050 = 200
[Crypto]
eth = 0.5
sol = 0.5
[Forex]
USD = 100
TWD = 10000config/api_key.toml optional
This file is used to store your API keys. You can add as many API keys as you want. The program will automatically fetch the price of each asset and calculate the total value of your portfolio in the target currencies.
"alpha_vantage_api_key" = "XXXXXXXXXXXXXXXX"
"exchangerate_api_key" = "xxxxxxxxxxxxxxxxxxxxxxxx"config/target_forex.toml optional
This file is used to store your target currencies. You can add as many target currencies as you want. The program will automatically fetch the price of each asset and calculate the total value of your portfolio in the target currencies.
Default is USD.
target = "TWD"- Fetch stock prices
- Fetch ETF prices
- Fetch crypto prices
- Fetch forex prices
- Calculate total portfolio value in USD
- target forex calculation
- alpha_vantage API
- binance API
- exchange_rate API
- pyth(pyth network) API
- redstone API
- yahoo finance API
- TWSE API
- Basic layout
- Portfolio table
- Portfolio value
- Colors
- Charts
