An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Magic-number

## Architecture

![architecture](architecurte-magic-number.jpg)

## 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_

![results](example_magic_number.gif)

### 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!