-
With Go installed on your machine, run
go run main.go
-
Type in your FII (ex: HGLG11)
-
Type in your desired monthly passive income. (ex: 1000)
-
Get the results
terminal has to be maximized to get a pretty output
{
"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"
}
}
}