{"id":26520619,"url":"https://github.com/philfoster/stock_chart_tools","last_synced_at":"2026-04-15T20:03:19.043Z","repository":{"id":57471513,"uuid":"408190671","full_name":"philfoster/stock_chart_tools","owner":"philfoster","description":"Python module for calculating stock charts using yfinance and pandas","archived":false,"fork":false,"pushed_at":"2021-09-20T01:14:34.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T00:41:32.431Z","etag":null,"topics":["exponential-moving-average","macd","on-balance-volume","python","python3","simple-moving-average","stochastic-oscillator","stock-market","technical-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philfoster.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}},"created_at":"2021-09-19T17:22:10.000Z","updated_at":"2021-09-20T01:14:36.000Z","dependencies_parsed_at":"2022-09-19T11:22:33.441Z","dependency_job_id":null,"html_url":"https://github.com/philfoster/stock_chart_tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/philfoster/stock_chart_tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfoster%2Fstock_chart_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfoster%2Fstock_chart_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfoster%2Fstock_chart_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfoster%2Fstock_chart_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philfoster","download_url":"https://codeload.github.com/philfoster/stock_chart_tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philfoster%2Fstock_chart_tools/sbom","scorecard":{"id":731205,"data":{"date":"2025-08-11","repo":{"name":"github.com/philfoster/stock_chart_tools","commit":"01bed631af740678bb71949f2f9051843cd1fa00"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-73"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T14:28:40.512Z","repository_id":57471513,"created_at":"2025-08-22T14:28:40.512Z","updated_at":"2025-08-22T14:28:40.512Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31857625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["exponential-moving-average","macd","on-balance-volume","python","python3","simple-moving-average","stochastic-oscillator","stock-market","technical-analysis"],"created_at":"2025-03-21T12:23:00.413Z","updated_at":"2026-04-15T20:03:19.024Z","avatar_url":"https://github.com/philfoster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stock_chart_tools\nPython module for calculating stock charts using yfinance and pandas\n\n## NAME\n    stock_chart_tools\n\n## DESCRIPTION\n    Functions to create data series for some technical indicators,\n    which could be charted using various charting tools\n    \n        SMA  - Simple moving average\n        EMA  - Exponential moving average\n        MACD - Moving average convergence divergence\n        OBV  - On balance volume\n        SSO  - Slow stochastic Oscillator\n\n## FUNCTIONS\n    EMA(data_series, periods)\n        Calculate the exponential moving average \n        \n        data_series -\u003e pandas Series\n        periods     -\u003e the number of periods used to calculate\n        \n        Example:\n            stock_data = get_historical_data(symbol)\n            three_day_ema = EMA(stock_data['Close'],3)\n\n    MACD(data_series, long_period=26, short_period=12, signal=9)\n        Calculates the MACD (Moving Average Convergence Divergence)\n\n        long_period  -\u003e the number of periods for the long window\n        short_period -\u003e the number of periods for the short window\n        signal       -\u003e the number of periods to use for the signal line\n        \n        Example:\n            stock_data = get_historical_data(symbol)\n            macd = MACD(stock_data['Adj Close'])\n    \n    OBV(close_series, volume_series, days=60)\n        Calculates the On Balance Volume\n        \n        close_series  -\u003e pandas Series with the closing price data\n        volume_series -\u003e pandas Series with the volume data\n        days          -\u003e number of days to use to calculate\n        \n        Example:\n            stock_data = get_historical_data(symbol)\n            obv_data = OBV(stock_data['Adj Close'],stock_data['Volume'])\n    \n    SMA(data_series, periods)\n        Calculate the simple moving average\n\n        data_series -\u003e pandas Series\n        periods     -\u003e the number of periods used to calculate\n        \n        Example:\n            stock_data = get_historical_data(symbol)\n            three_day_sma = SMA(stock_data['Volume'],3)\n    \n    SSO(close_series, high_series, low_series, period=14, k=3, d=3)\n        Calculates the Slow Stochastic Oscillator\n        \n        period -\u003e the number of periods for fast %K \n        k      -\u003e the number of periods for %K\n        d      -\u003e the number of periods for %D\n        \n        Example:\n            stock_data = get_historical_data(symbol)\n            slow_stochastics = SSO(stock_data['Close'])\n    \n    get_historical_data(symbol, days=365)\n        Get historical stock data using the yfinance module\n\n        symbol -\u003e ticker symbol\n        days   -\u003e number of *calendar* days of data to fetch\n\n        The end date is the current date.\n\n        Example:\n            stock_data = get_historical_data(symbol)\n            quarter_data = get_historical_data(symbol,90)\n    \n    get_historical_data_range(symbol, start_date, end_date)\n        Get historical stock data using the yfinance module\n        \n        symbol     -\u003e ticker symbol\n        start_date -\u003e python datetime object for the start of the series\n        end_date   -\u003e python datetime object for the end of the series\n        \n        Example:\n            stock_data = get_historical_data_range(symbol,start_date,end_date)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilfoster%2Fstock_chart_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilfoster%2Fstock_chart_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilfoster%2Fstock_chart_tools/lists"}