Skip to content

A CLI Tool/API to calculate the passive income in FII's

Notifications You must be signed in to change notification settings

andreposman/magic-number

Repository files navigation

Magic-number

Architecture

architecture

Calculate passive income


  • 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


Console output example:

terminal has to be maximized to get a pretty output

results

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!

About

A CLI Tool/API to calculate the passive income in FII's

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages