{"id":19625597,"url":"https://github.com/bce99/clustertrade","last_synced_at":"2026-05-13T01:04:01.511Z","repository":{"id":252028463,"uuid":"838214503","full_name":"bce99/ClusterTrade","owner":"bce99","description":"📈An unsupervised ML algo trading strategy using K-means clustering and EfficientFrontier max sharpe ratio optimization","archived":false,"fork":false,"pushed_at":"2024-08-07T06:07:37.000Z","size":4260,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T19:52:16.436Z","etag":null,"topics":["algorithmic-trading","efficientfrontier","k-means-clustering","unsupervised-machine-learning"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/bce99.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":"2024-08-05T07:23:32.000Z","updated_at":"2024-08-07T07:36:14.000Z","dependencies_parsed_at":"2024-08-07T09:12:54.804Z","dependency_job_id":"ea10090c-6dc0-4262-a684-384638a4765f","html_url":"https://github.com/bce99/ClusterTrade","commit_stats":null,"previous_names":["bce99/unsupervised-learning-trading-strategies","bce99/algo-trading-strategy-unsupervised-learning"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bce99/ClusterTrade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bce99%2FClusterTrade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bce99%2FClusterTrade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bce99%2FClusterTrade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bce99%2FClusterTrade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bce99","download_url":"https://codeload.github.com/bce99/ClusterTrade/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bce99%2FClusterTrade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32963180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: 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":["algorithmic-trading","efficientfrontier","k-means-clustering","unsupervised-machine-learning"],"created_at":"2024-11-11T11:42:33.187Z","updated_at":"2026-05-13T01:04:01.491Z","avatar_url":"https://github.com/bce99.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Unsupervised Learning Trading Strategy\n* Download/Load SP500 stocks prices data.\n* Calculate different features and indicators on each stock.\n* Aggregate on monthly level and filter top 150 most liquid stocks.\n* Calculate Monthly Returns for different time-horizons.\n* Download Fama-French Factors and Calculate Rolling Factor Betas.\n* For each month fit a K-Means Clustering Algorithm to group similar assets based on their features.\n* For each month select assets based on the cluster and form a portfolio based on Efficient Frontier max sharpe ratio optimization.\n* Visualize Portfolio returns and compare to SP500 returns.\n## All Packages Needed:\npandas, numpy, matplotlib, statsmodels, pandas_datareader, datetime, yfinance, sklearn, PyPortfolioOpt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbce99%2Fclustertrade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbce99%2Fclustertrade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbce99%2Fclustertrade/lists"}