{"id":50559804,"url":"https://github.com/evdubs/mstar-financial-statements","last_synced_at":"2026-06-04T11:01:33.316Z","repository":{"id":360829042,"uuid":"1251887931","full_name":"evdubs/mstar-financial-statements","owner":"evdubs","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-28T02:13:31.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-28T04:10:46.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Racket","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evdubs.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T02:05:55.000Z","updated_at":"2026-05-28T02:13:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/evdubs/mstar-financial-statements","commit_stats":null,"previous_names":["evdubs/mstar-financial-statements"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/evdubs/mstar-financial-statements","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdubs%2Fmstar-financial-statements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdubs%2Fmstar-financial-statements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdubs%2Fmstar-financial-statements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdubs%2Fmstar-financial-statements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evdubs","download_url":"https://codeload.github.com/evdubs/mstar-financial-statements/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdubs%2Fmstar-financial-statements/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33901305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"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":[],"created_at":"2026-06-04T11:01:32.383Z","updated_at":"2026-06-04T11:01:33.308Z","avatar_url":"https://github.com/evdubs.png","language":"Racket","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mstar-financial-statements\n\nThese Racket programs will download the Mstar financial statement documents and insert the \nstatement data into a PostgreSQL database. The intended usage is:\n\n```bash\n$ racket quotes-extract.rkt\n$ racket quotes-transform-load.rkt\n```\n\n```bash\n$ racket financial-statement-extract.rkt\n$ racket balance-sheet-transform-load.rkt\n$ racket cash-flow-statement-transform-load.rkt\n$ racket income-statement-transform-load.rkt\n```\n\nYou will need to provide a database password for many of the above programs. The available parameters are:\n\n```bash\n$ racket financial-statements-extract.rkt -h\nracket financial-statement-extract.rkt [ \u003coption\u003e ... ]\n where \u003coption\u003e is one of\n  -f \u003cfirst\u003e, --first-symbol \u003cfirst\u003e : First symbol to query. Defaults to nothing\n  -l \u003clast\u003e, --last-symbol \u003clast\u003e : Last symbol to query. Defaults to nothing\n  -n \u003cname\u003e, --db-name \u003cname\u003e : Database name. Defaults to 'local'\n  -p \u003cpassword\u003e, --db-pass \u003cpassword\u003e : Database password\n  -u \u003cuser\u003e, --db-user \u003cuser\u003e : Database user name. Defaults to 'user'\n  --help, -h : Show this help\n  -- : Do not treat any remaining argument as a switch (at this level)\n Multiple single-letter switches can be combined after one `-`. For\n  example: `-h-` is the same as `-h --`\n\n$ racket balance-sheet-transform-load.rkt -h\nracket balance-sheet-transform-load.rkt [ \u003coption\u003e ... ]\n where \u003coption\u003e is one of\n  -b \u003cfolder\u003e, --base-folder \u003cfolder\u003e : Mstar balance sheet base folder. Defaults to /var/local/mstar/financial-statements\n  -d \u003cdate\u003e, --folder-date \u003cdate\u003e : Mstar balance sheet folder date. Defaults to today\n  -n \u003cname\u003e, --db-name \u003cname\u003e : Database name. Defaults to 'local'\n  -p \u003cpassword\u003e, --db-pass \u003cpassword\u003e : Database password\n  -u \u003cuser\u003e, --db-user \u003cuser\u003e : Database user name. Defaults to 'user'\n  --help, -h : Show this help\n  -- : Do not treat any remaining argument as a switch (at this level)\n Multiple single-letter switches can be combined after one `-`. For\n  example: `-h-` is the same as `-h --`\n\n$ racket cash-flow-statement-transform-load.rkt -h\nracket cash-flow-statement-transform-load.rkt [ \u003coption\u003e ... ]\n where \u003coption\u003e is one of\n  -b \u003cfolder\u003e, --base-folder \u003cfolder\u003e : Mstar cash flow statement base folder. Defaults to /var/local/mstar/financial-statements\n  -d \u003cdate\u003e, --folder-date \u003cdate\u003e : Mstar cash flow statement folder date. Defaults to today\n  -n \u003cname\u003e, --db-name \u003cname\u003e : Database name. Defaults to 'local'\n  -p \u003cpassword\u003e, --db-pass \u003cpassword\u003e : Database password\n  -u \u003cuser\u003e, --db-user \u003cuser\u003e : Database user name. Defaults to 'user'\n  --help, -h : Show this help\n  -- : Do not treat any remaining argument as a switch (at this level)\n Multiple single-letter switches can be combined after one `-`. For\n  example: `-h-` is the same as `-h --`\n\n$ racket income-statement-transform-load.rkt -h\nracket income-statement-transform-load.rkt [ \u003coption\u003e ... ]\n where \u003coption\u003e is one of\n  -b \u003cfolder\u003e, --base-folder \u003cfolder\u003e : Mstar income statement base folder. Defaults to /var/local/mstar/financial-statements\n  -d \u003cdate\u003e, --folder-date \u003cdate\u003e : Mstar income statement folder date. Defaults to today\n  -n \u003cname\u003e, --db-name \u003cname\u003e : Database name. Defaults to 'local'\n  -p \u003cpassword\u003e, --db-pass \u003cpassword\u003e : Database password\n  -u \u003cuser\u003e, --db-user \u003cuser\u003e : Database user name. Defaults to 'user'\n  --help, -h : Show this help\n  -- : Do not treat any remaining argument as a switch (at this level)\n Multiple single-letter switches can be combined after one `-`. For\n  example: `-h-` is the same as `-h --`\n```\n\nThe provided `schema.sql` file shows the expected schema within the target PostgreSQL instance. \nThis process assumes you can write to a `/var/local/mstar` folder. This process also assumes you have loaded your database with NASDAQ symbol\nfile information. This data is provided by the [nasdaq-symbols](https://github.com/evdubs/nasdaq-symbols) project.\n\nThe above process will download around 600MB worth of JSON documents over many hours. It is encouraged to compress these files when you are \ndone processing them. It is also encouraged that you do not run the extract jobs too frequently. I think running the financial-statement-extract\nonce per month is sufficient.\n\n### Dependencies\n\nIt is recommended that you start with the standard Racket distribution. With that, you will need to install the following packages:\n\n```bash\n$ raco pkg install --skip-installed gregor html-parsing sxml tasks threading\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevdubs%2Fmstar-financial-statements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevdubs%2Fmstar-financial-statements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevdubs%2Fmstar-financial-statements/lists"}