{"id":24959419,"url":"https://github.com/torbenconto/plutus","last_synced_at":"2025-04-10T20:11:49.156Z","repository":{"id":210607864,"uuid":"725732852","full_name":"torbenconto/plutus","owner":"torbenconto","description":"A golang stock data library","archived":false,"fork":false,"pushed_at":"2025-03-18T22:57:25.000Z","size":2286,"stargazers_count":7,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T09:05:14.902Z","etag":null,"topics":["collaborate","deepsource","jetbrains","learn"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torbenconto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2023-11-30T19:00:38.000Z","updated_at":"2025-03-18T22:57:28.000Z","dependencies_parsed_at":"2024-06-08T01:29:58.314Z","dependency_job_id":"fc188ac5-3429-455e-afe6-5f6bb7e95b23","html_url":"https://github.com/torbenconto/plutus","commit_stats":null,"previous_names":["torbenconto/plutus"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torbenconto%2Fplutus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torbenconto%2Fplutus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torbenconto%2Fplutus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torbenconto%2Fplutus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torbenconto","download_url":"https://codeload.github.com/torbenconto/plutus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288360,"owners_count":21078903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["collaborate","deepsource","jetbrains","learn"],"created_at":"2025-02-03T07:47:06.722Z","updated_at":"2025-04-10T20:11:49.148Z","avatar_url":"https://github.com/torbenconto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](./assets/logo.webp)\r\n## Plutus\r\n*A stock data centered golang library*\r\n\r\n![](https://img.shields.io/github/go-mod/go-version/torbenconto/plutus)\r\n![GitHub Release](https://img.shields.io/github/v/release/torbenconto/plutus)\r\n![GitHub commit activity](https://img.shields.io/github/commit-activity/w/torbenconto/plutus)\r\n[![CodeFactor](https://www.codefactor.io/repository/github/torbenconto/plutus/badge)](https://www.codefactor.io/repository/github/torbenconto/plutus)\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/21f74246fdbc49348075a4dbc156abf3)](https://app.codacy.com/gh/torbenconto/plutus/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\r\n![GitHub License](https://img.shields.io/github/license/torbenconto/plutus)\r\n![Lines of code](https://img.shields.io/tokei/lines/github/torbenconto/plutus)![GitHub repo size](https://img.shields.io/github/repo-size/torbenconto/plutus)\r\n\r\n### Quick Start\r\nDownload the library into your existing golang project\r\n```sh\r\n    go get -u github.com/torbenconto/plutus/v2\r\n```\r\n\r\n## Basic Usage\r\n```go\r\nimport \"github.com/torbenconto/plutus/v2\"\r\nstock, err := plutus.GetQuote(\"AMD\")\r\nif err != nil {\r\n\tfmt.Printf(\"An error occured: %e\", err)\r\n}\r\nfmt.Printf(\"The current price of AMD is: %f\", stock.RegularMarketPrice)\r\n```\r\n\r\n### Historical Data\r\n\r\n```go\r\nimport \"github.com/torbenconto/plutus/v2\"\r\nimport _range \"github.com/torbenconto/plutus/v2/range\"\r\nimport \"github.com/torbenconto/plutus/v2/interval\"\r\n\r\n// Create a new historical data object using the ticker of the stock you want data on as well as the range and interval of the data.\r\nstock, err := plutus.GetHistoricalQuote(\"AMD\", _range.FiveDay, interval.OneMin)\r\nif err != nil {\r\n    fmt.Printf(\"An error occured: %e\", err)\r\n}\r\n\r\n// Returns a list of all the data points as structs containing the time in unix time and the price of the stock at that time.\r\nfor _, data := range stock.Data {\r\n    fmt.Println(data.Time, data.Open, data.Close, data.High, data.Low, data.Volume)\r\n}\r\n```\r\n\r\n### Dividends\r\n```go\r\nimport \"github.com/torbenconto/plutus/v2\"\r\n\r\ninfo, err := plutus.GetDividendInfo(\"T\")\r\nif err != nil {\r\n\tfmt.Printf(\"An error occured: %s\\n\", err)\r\n}\r\n```\r\n\r\n# REST api\r\n## The repo containing the api and information about it is contained here [plutus-api](https://github.com/torbenconto/plutus-api)\r\n\r\n### Example based documentation\r\nPlease use the provided examples to guide you to using plutus to it's full potential.\r\n#### https://github.com/torbenconto/plutus/blob/master/examples\r\n\r\n### Tests\r\nTo run the tests for the library, simply run the following command in the root of the project.\r\n```sh\r\n    go test ./...\r\n```\r\n\r\n# Notes\r\nPlease only use this module for personal use.\r\nDon't overload my deployment or ill get really sad 🥲.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorbenconto%2Fplutus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorbenconto%2Fplutus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorbenconto%2Fplutus/lists"}