{"id":37192723,"url":"https://github.com/andreposman/magic-number","last_synced_at":"2026-01-14T22:22:02.035Z","repository":{"id":80085012,"uuid":"301290026","full_name":"andreposman/magic-number","owner":"andreposman","description":"A CLI Tool/API to calculate the passive income in FII's","archived":false,"fork":false,"pushed_at":"2025-01-29T23:26:07.000Z","size":697,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-30T00:23:36.505Z","etag":null,"topics":["crawler","finance","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreposman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-05T04:10:06.000Z","updated_at":"2022-07-01T00:09:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"6cecc4c1-649b-47f4-8621-40c1c923b6a7","html_url":"https://github.com/andreposman/magic-number","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreposman/magic-number","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreposman%2Fmagic-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreposman%2Fmagic-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreposman%2Fmagic-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreposman%2Fmagic-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreposman","download_url":"https://codeload.github.com/andreposman/magic-number/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreposman%2Fmagic-number/sbom","scorecard":{"id":193013,"data":{"date":"2025-08-11","repo":{"name":"github.com/andreposman/magic-number","commit":"4b80c2c8761cd74779abdeb626bec1daca632445"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2955 / GHSA-869c-j7wc-8jqv","Warn: Project is vulnerable to: GO-2021-0052 / GHSA-h395-qcrw-5vmq","Warn: Project is vulnerable to: GHSA-3vp4-m3rf-835h","Warn: Project is vulnerable to: GO-2023-1737 / GHSA-2c4m-59x9-fr2g","Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T21:11:04.857Z","repository_id":80085012,"created_at":"2025-08-16T21:11:04.857Z","updated_at":"2025-08-16T21:11:04.857Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crawler","finance","golang"],"created_at":"2026-01-14T22:21:59.960Z","updated_at":"2026-01-14T22:22:02.021Z","avatar_url":"https://github.com/andreposman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magic-number\n\u003c!-- \nList of TODOs:\n\tTODO: Tests\n\tTODO: Logs\n\tTODO: Docker\n\tTODO: start the Flutter app and consume the api\n --\u003e\n\n## Architecture\n\n![architecture](architecurte-magic-number.jpg)\n\n\n## Calculate passive income\n\n\u003cbr\u003e\n\n- With Go installed on your machine, run `go run main.go`\n\n- Type in your [FII](https://fiis.com.br/artigos/o-que-e-fii/) _(ex: HGLG11)_\n\n- Type in your desired monthly passive income. _(ex: 1000)_\n\n- Get the results\n\n\u003cbr\u003e\n\n### Console output example:\n\n_terminal has to be maximized to get a pretty output_\n\u003c!-- ![results](magic-number-results.png) --\u003e\n![results](example_magic_number.gif)\n\n### JSON output example:\n\n```\n{\n    \"asset\": {\n        \"symbol\": \"HGLG11\",\n        \"name\": \"CGHG Logística\",\n        \"price\": \"176.87\",\n        \"yieldAverage24m\": \"0.77100000\",\n        \"dividendYield\": \"6.20%\",\n        \"minPrice52wk\": \"117.05\",\n        \"maxPrice52wk\": \"196.50\",\n        \"performanceLast12m\": \"-0,56%\",\n        \"performanceThisMonth\": \"-0,18%\",\n        \"goals\": {\n            \"magicNumber\": \"229\",\n            \"capitalSnowBallEffect\": \"40503.23\",\n            \"desiredMonthlyIncome\": \"1000\",\n            \"assetQuantityDesiredIncome\": \"1297.02\",\n            \"capitalDesiredMonthlyIncome\": \"229403.37\"\n        }\n    }\n}\n```\n\n\u003cbr\u003e\n\n## Happy Investing!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreposman%2Fmagic-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreposman%2Fmagic-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreposman%2Fmagic-number/lists"}