{"id":23776066,"url":"https://github.com/rodionlim/portfolio-manager","last_synced_at":"2025-07-30T09:40:59.062Z","repository":{"id":158052835,"uuid":"337351156","full_name":"rodionlim/portfolio-manager","owner":"rodionlim","description":"Portfolio Management Tool","archived":false,"fork":false,"pushed_at":"2021-04-18T09:37:35.000Z","size":297,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T11:00:01.650Z","etag":null,"topics":["dividends","equities","finance","market-data","portfolio","tradingview"],"latest_commit_sha":null,"homepage":"","language":"Python","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/rodionlim.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-02-09T09:21:16.000Z","updated_at":"2023-11-28T18:51:57.000Z","dependencies_parsed_at":"2023-07-07T03:45:55.493Z","dependency_job_id":null,"html_url":"https://github.com/rodionlim/portfolio-manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rodionlim/portfolio-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodionlim%2Fportfolio-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodionlim%2Fportfolio-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodionlim%2Fportfolio-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodionlim%2Fportfolio-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodionlim","download_url":"https://codeload.github.com/rodionlim/portfolio-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodionlim%2Fportfolio-manager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267847626,"owners_count":24154242,"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-07-30T02:00:09.044Z","response_time":70,"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":["dividends","equities","finance","market-data","portfolio","tradingview"],"created_at":"2025-01-01T07:12:29.568Z","updated_at":"2025-07-30T09:40:59.053Z","avatar_url":"https://github.com/rodionlim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# portfolio-manager\n\nPortfolio Manager is an end-to-end portfolio booking system which supports multiple asset classes such as equities, fixed income and crypto-currencies. It aims to automate the following:\n\n1. Dividends and Positions Tracking\n2. Price, Volume and Dividend Market Data Extraction\n3. P\u0026L computation\n4. Value at Risk (Phase 2)\n5. Trade signals via automated slack notifications\n6. Backtesting\n\n\u003cbr\u003e\n\n## Configurations\n\n- Set PYTHONPATH to the parent directory of the repository\n- Create a virtual environment (venv) with dependencies from requirements.txt\n- Add venv path to PATH\n- Start a mySQL database\n- Run scripts/seed_tables.py script in pf_manager \u003e scripts to create and populate the initial tables\n\n### Slack\n\n- For slack alerts to work, create `slackcred.json` at the root of the repository\n- Create an app in slack by following the steps [here](https://api.slack.com/start/building/bolt-python)\n- Put the Bot User OAuth Token into a key value pair in the JSON file,e.g. `\"BOT_TOKEN\": \"xoxb-...\"`\n- Create a new channel in slack\n- Invite the bot (\"app\") to the channel by typing /invite -\u003e Add apps to the channel\n\n\u003cbr\u003e\n\n## Market Data\n\nThere are multiple market data engines in this repository:\n\n| Engine   | Description                         |\n| :------- | :---------------------------------- |\n| eod      | Req/Resp via Yahoo \u0026 Google finance |\n| intraday | Websockets via Tradingview          |\n| dividend | Async Req/Resp via Dividends.sg     |\n\n\u003cbr\u003e\n\n### Dividends\n\nDividends are aggregated on ticker and ex-date, by the sum of the total payouts and stored into `market_dividends` table. The market data extraction is periodically extracted in an automated manner via the relevant market data engines, which reads the required tickers from the `reference_data` table.\n\nThe portfolio manager then takes the market dividends and compute the actual amount received by the respective portfolios before storing it in the `dividends` table.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodionlim%2Fportfolio-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodionlim%2Fportfolio-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodionlim%2Fportfolio-manager/lists"}