{"id":22562073,"url":"https://github.com/sanderhelleso/maxprofitstockmarket","last_synced_at":"2025-03-28T12:42:16.300Z","repository":{"id":96641469,"uuid":"153038434","full_name":"sanderhelleso/maxProfitStockMarket","owner":"sanderhelleso","description":"Each day the stock price fluctuates during the day.  Given an array of stock prices, what would be the most efficient way to determine the best time to buy and sell to get the max profit. You must buy before you sell.","archived":false,"fork":false,"pushed_at":"2018-10-15T19:52:02.000Z","size":1427,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T13:15:57.693Z","etag":null,"topics":["csv","dataset-generation","profit-calculator","stock-data","stock-market"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/sanderhelleso.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":"2018-10-15T01:52:10.000Z","updated_at":"2019-05-09T06:44:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd7d3096-894e-47d6-89b8-b31c98167fe8","html_url":"https://github.com/sanderhelleso/maxProfitStockMarket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanderhelleso%2FmaxProfitStockMarket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanderhelleso%2FmaxProfitStockMarket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanderhelleso%2FmaxProfitStockMarket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanderhelleso%2FmaxProfitStockMarket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanderhelleso","download_url":"https://codeload.github.com/sanderhelleso/maxProfitStockMarket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246034232,"owners_count":20712851,"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":["csv","dataset-generation","profit-calculator","stock-data","stock-market"],"created_at":"2024-12-07T22:11:28.318Z","updated_at":"2025-03-28T12:42:16.279Z","avatar_url":"https://github.com/sanderhelleso.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maxProfitStockMarket\n\u003cbr\u003e\n\n```\nEach day the stock price fluctuates during the day.\nGiven an array of stock prices, what would be the most\nefficient way to determine the best time to buy and sell\nto get the max profit. You must buy before you sell.\n\nExamples:\n--------------------------------------------------------------------------\n\nmaxProfit( [ 1, 3, 5, 4, 3, 5, 10, 9, 8, 4, 9]) -\u003e  buy at 1, sell at 10\nmaxProfit( [ 2 , 3, 1, 5, 6, 9, 10, 15 14 ]) -\u003e buy at 1, sell at 15\nmaxProfit( [ 15, 12, 11, 9, 7, 5, 3, 1] ) -\u003e no profit is possible\n```\n\u003cbr\u003e\n\n## Program Overview\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"https://github.com/sanderhelleso/maxProfitStockMarket/blob/master/maxProfit/screenshots/maxProfit1.jpg\" alt=\"app img 1\" width=400 height=600 /\u003e\n  \u003cimg src=\"https://github.com/sanderhelleso/maxProfitStockMarket/blob/master/maxProfit/screenshots/maxProfit2.jpg\" alt=\"app img 2\" width=400 height=600 /\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n## Program Description\n```\nThis application reads an array of generated data of user defined size that \nsimulates the stock market. It then determinesthe best time to sell / buy \nto recieve the best potensial profit available of the data.\n\nAfter generating the result, the application creates a new report CSV file and filled\nit up with data from the calculations (id, sellValue, buyValue, sellDay, buyDay)\n\nA nice addition to this application could be to generate a chart using the freshly\ncreated CSV file to further visually display the data.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanderhelleso%2Fmaxprofitstockmarket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanderhelleso%2Fmaxprofitstockmarket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanderhelleso%2Fmaxprofitstockmarket/lists"}