{"id":16902129,"url":"https://github.com/abongsjoel/stock-picker","last_synced_at":"2025-09-08T20:34:45.999Z","repository":{"id":113544156,"uuid":"333023489","full_name":"abongsjoel/stock-picker","owner":"abongsjoel","description":"The project implement's a #stock_picker method that takes in an array of stock prices and returns a pair of days representing the best day to buy and the best day to sell. ","archived":false,"fork":false,"pushed_at":"2021-02-15T08:59:55.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T14:41:40.792Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"https://repl.it/@abongsjoel/stock-picker","language":"Ruby","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/abongsjoel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2021-01-26T08:45:14.000Z","updated_at":"2021-02-18T14:44:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d3f62ab-634a-44bb-b4ed-8f25a2f51bfd","html_url":"https://github.com/abongsjoel/stock-picker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abongsjoel/stock-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abongsjoel%2Fstock-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abongsjoel%2Fstock-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abongsjoel%2Fstock-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abongsjoel%2Fstock-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abongsjoel","download_url":"https://codeload.github.com/abongsjoel/stock-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abongsjoel%2Fstock-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231506,"owners_count":25245601,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ruby"],"created_at":"2024-10-13T18:03:58.256Z","updated_at":"2025-09-08T20:34:45.969Z","avatar_url":"https://github.com/abongsjoel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Picker\n\n\u003e In this project, I implemented a simple #stock_picker method\n\nThe project implement's a #stock_picker method that takes in an array of stock prices, one for each hypothetical day. It should return a pair of days representing the best day to buy and the best day to sell. Days start at 0 and we need to buy before we can sell.\n\nE.g.\n```\n  \u003e stock_picker([17,3,6,9,15,8,6,1,10])\n  =\u003e [1,4]  # for a profit of $15 - $3 == $12\n```\n\n## Getting Started\n\nThis project is built with Ruby and run at the terminal so in order run it:\n\n- You start by installing ruby on your computer\n\u003e [Installing Ruby](https://www.theodinproject.com/courses/ruby-programming/lessons/installing-ruby-ruby-programming)\n\n- Then you clone the project from githup into a local repository\n  ```\n  git clone git@github.com:abongsjoel/stock-picker.git\n  ```\n- Navigagte into the stock-picker folder\n  ```\n  cd stock-picker\n  ```\n- Run the application using the following command\n  ```\n  ruby main.rb\n  ```\n- Voila\n- Enjoy\n\n## Built With\n\n- Ruby\n\n## Live Demo\n\n[Repl.it Link](https://repl.it/@abongsjoel/stock-picker)\n\n\n## Author\n\n👤 **Chi A. Joel**\n\n- GitHub: [@abongsjoel](https://github.com/abongsjoel)\n- Twitter: [@thierryjoel10](https://twitter.com/ThierryJoel10)\n- LinkedIn: [Chi Abongwa Joel](https://www.linkedin.com/in/chi-abongwa-joel-b4285a97/)\n\n\n## Acknowledgments\n\n- [The Odin Project](https://www.theodinproject.com)\n\n\n## Contributing\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](https://github.com/abongsjoel/stock-picker/issues).\n\n\n## Show your support\nGive a ⭐️ if you like this project!\n\n## License\n  \u003cp\u003eThis project is \u003ca href=\"../main/LICENSE\"\u003eMIT\u003c/a\u003e licensed.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabongsjoel%2Fstock-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabongsjoel%2Fstock-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabongsjoel%2Fstock-picker/lists"}