{"id":20304343,"url":"https://github.com/dev-michael-schmidt/pyspark-stocks","last_synced_at":"2026-05-07T23:02:56.815Z","repository":{"id":250362467,"uuid":"834250014","full_name":"dev-michael-schmidt/pyspark-stocks","owner":"dev-michael-schmidt","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-26T19:34:46.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T07:13:49.575Z","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/dev-michael-schmidt.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-07-26T18:57:20.000Z","updated_at":"2024-07-26T19:34:49.000Z","dependencies_parsed_at":"2024-07-26T21:09:43.097Z","dependency_job_id":null,"html_url":"https://github.com/dev-michael-schmidt/pyspark-stocks","commit_stats":null,"previous_names":["dev-michael-schmidt/pyspark-stocks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-michael-schmidt/pyspark-stocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-michael-schmidt%2Fpyspark-stocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-michael-schmidt%2Fpyspark-stocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-michael-schmidt%2Fpyspark-stocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-michael-schmidt%2Fpyspark-stocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-michael-schmidt","download_url":"https://codeload.github.com/dev-michael-schmidt/pyspark-stocks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-michael-schmidt%2Fpyspark-stocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27444387,"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-12-02T02:00:06.387Z","response_time":54,"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":"2024-11-14T16:43:51.061Z","updated_at":"2025-12-02T03:04:22.556Z","avatar_url":"https://github.com/dev-michael-schmidt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This PySpark project fetches data from Yahoo Finance's public stock data API, parses the CSV and loads it into a PySpark DataFrame, and then performs (currently)\n- Simple Moving Average (specify window in days)\n- Exponential Moving Average (specify in days)\n\nThis DataFrame includes:\n- `date`, self explanatory  \n- `open` Opening price of the day\n- `high` Highest price seen that day\n- `low` Lowest price seen that day\n- `close` Price seen on market close\n- `symbol` The symbol on the exchange\n\nYou can include/add technicals via a builder pattern.\n- `sma_10d` a 10-day simple moving average (default to 10, you can specify the span)\n- `ema_10d` a 10-day exponential moving average (defaults to 10, you can specify span)  \n- More technical markers to come  \n\nUsage:\n```\nstock_history_df = (TechnicalBuilder(stock_history_df)\n                    .SMA(10)\n                    .EMA(10)\n                    .build())\nstock_history_df.show()\n```\n\nExample output:\n```  \n+----------+---------+-------+------+-------+----------+------+--------------+---------------+\n|      date|     open|   high|   low|  close|    volume|symbol|       sma_10d|        ema_10d|\n+----------+---------+-------+------+-------+----------+------+--------------+---------------+\n| 2024-03-01|  508.98| 513.28| 508.5| 512.84| 7.68059E7|   SPY|        512.84|        512.846|\n| 2024-03-04|  512.03| 514.20| 512.0| 512.29| 4.97993E7|   SPY|        512.57|  512.749978118|\n| 2024-03-05|  510.23| 510.70| 504.9| 507.17| 7.28556E7|   SPY| 510.776652333| 511.7372536057|\n| 2024-03-06|  510.54| 512.07| 508.4| 509.75| 6.83824E7|   SPY|      510.5199|  511.375936341|\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-michael-schmidt%2Fpyspark-stocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-michael-schmidt%2Fpyspark-stocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-michael-schmidt%2Fpyspark-stocks/lists"}