https://github.com/andreposman/magic-number
A CLI Tool/API to calculate the passive income in FII's
https://github.com/andreposman/magic-number
crawler finance golang
Last synced: 5 months ago
JSON representation
A CLI Tool/API to calculate the passive income in FII's
- Host: GitHub
- URL: https://github.com/andreposman/magic-number
- Owner: andreposman
- Created: 2020-10-05T04:10:06.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-29T23:26:07.000Z (over 1 year ago)
- Last Synced: 2025-01-30T00:23:36.505Z (over 1 year ago)
- Topics: crawler, finance, golang
- Language: Go
- Homepage:
- Size: 681 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Magic-number
## Architecture

## Calculate passive income
- With Go installed on your machine, run `go run main.go`
- Type in your [FII](https://fiis.com.br/artigos/o-que-e-fii/) _(ex: HGLG11)_
- Type in your desired monthly passive income. _(ex: 1000)_
- Get the results
### Console output example:
_terminal has to be maximized to get a pretty output_

### JSON output example:
```
{
"asset": {
"symbol": "HGLG11",
"name": "CGHG Logística",
"price": "176.87",
"yieldAverage24m": "0.77100000",
"dividendYield": "6.20%",
"minPrice52wk": "117.05",
"maxPrice52wk": "196.50",
"performanceLast12m": "-0,56%",
"performanceThisMonth": "-0,18%",
"goals": {
"magicNumber": "229",
"capitalSnowBallEffect": "40503.23",
"desiredMonthlyIncome": "1000",
"assetQuantityDesiredIncome": "1297.02",
"capitalDesiredMonthlyIncome": "229403.37"
}
}
}
```
## Happy Investing!