{"id":19138046,"url":"https://github.com/lemonpi/oec-2018","last_synced_at":"2026-06-15T06:33:07.571Z","repository":{"id":70266973,"uuid":"119122708","full_name":"LemonPi/oec-2018","owner":"LemonPi","description":"Ontario Engineering Competition 2018","archived":false,"fork":false,"pushed_at":"2018-01-29T16:57:17.000Z","size":1396,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-03T13:52:26.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/LemonPi.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-01-27T01:48:03.000Z","updated_at":"2018-01-28T05:07:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"de9f7c99-211c-4ef7-8866-bc4a2e58f297","html_url":"https://github.com/LemonPi/oec-2018","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/LemonPi%2Foec-2018","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LemonPi%2Foec-2018/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LemonPi%2Foec-2018/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LemonPi%2Foec-2018/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LemonPi","download_url":"https://codeload.github.com/LemonPi/oec-2018/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240217196,"owners_count":19766727,"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":[],"created_at":"2024-11-09T06:41:35.068Z","updated_at":"2025-11-13T06:05:23.248Z","avatar_url":"https://github.com/LemonPi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Install\n`pip install flask`\n`pip install pandas`\n\nAlternatively use `python -m pip` instead of just `pip`.\nNote this package requires python 3\n\n## Running\n`python server.py`\n\n## Accessing Dashboard\n1. Enable CORS from browser (in Chrome get the Allow-Control-Allow-Origin extension) (or for the API developer please allow CORS :D)\n2. visit `http://uoft-a-oec-2018.herokuapp.com/dashboard`\n\n\n## Components\n### Heroku deployed python server that does\n1. automated trading\n2. historical price front end for visualization\n\n### Trading algorithm\n- mean reversion?\n- computing first and second derivatives?\n- machine learning?\n\n#### API\nfor each timestep, trading algorithm\n===\ninput:\naccount {\n    number cash\n    [holding {\n        string ticker\n        number num_shares\n        number book_price\n        number market_price\n    }]\n}\n[stocks {\n    string ticker\n    number [historical price] or current price if past prices known\n}]\n===\noutputs:\n[action {\n    string type \"buy\" | \"sell\",\n    string ticker\n    number num_shares\n}]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemonpi%2Foec-2018","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemonpi%2Foec-2018","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemonpi%2Foec-2018/lists"}