{"id":37083468,"url":"https://github.com/zq99/optionsview","last_synced_at":"2026-01-14T10:11:03.751Z","repository":{"id":61862265,"uuid":"555874263","full_name":"zq99/optionsview","owner":"zq99","description":"This library downloads option chain data for a given symbol from yahoo finance in a trader friendly format.","archived":false,"fork":false,"pushed_at":"2024-01-24T13:04:38.000Z","size":2281,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T07:01:30.334Z","etag":null,"topics":["data","options","options-trading","trading","yahoo-finance"],"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/zq99.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":"2022-10-22T14:37:53.000Z","updated_at":"2024-04-03T01:12:58.000Z","dependencies_parsed_at":"2022-10-22T16:30:20.203Z","dependency_job_id":null,"html_url":"https://github.com/zq99/optionsview","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zq99/optionsview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq99%2Foptionsview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq99%2Foptionsview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq99%2Foptionsview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq99%2Foptionsview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zq99","download_url":"https://codeload.github.com/zq99/optionsview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq99%2Foptionsview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["data","options","options-trading","trading","yahoo-finance"],"created_at":"2026-01-14T10:11:03.236Z","updated_at":"2026-01-14T10:11:03.746Z","avatar_url":"https://github.com/zq99.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# optionsview\n\nThis library downloads option chain data for a given symbol from yahoo finance.\n\nThe data includes Calls and Puts for all future expiration dates and strike prices.\n\nThere are two formats provided:\n\n- Straddle view: Call and Put data for the same expiration and strike is side by side.\n\n- Stacked view: Call and Put data is stacked together.\n\n\n## Installation\n\nThe library requires Python 3.7 or later.  \n \nTo install, type the following command on the python terminal:\n\n    pip install optionsview\n    \n  \n## Implementation\n\nHere is a basic example of how to download options straddle view data:\n\n    from options.data import download_options_view\n    \n    download_options_view('TSLA')\n\nThe following is an example of downloading the Call and Put data in a stacked format.\n\n    from options.data import download_options_view, View\n    \n    folder = 'C:\\Users\\work\\Documents'\n    download_options_view('TSLA', View.STACKED, folder)\n    \nTo read the data into dataframes (and not create files) you can do the following:\n\n    from options.data import get_options_view_df\n\n    straddle_df, stacked_df = get_options_view_df('TSLA')\n\n    print(straddle_df.head())\n    print(stacked_df.head())\n    \n\n## Examples\n\nThe folder 'samples' in this repository, has some examples of the output from the library.\n\n\n## Contributions\n\nContributions are welcome, all modifications should come with appropriate tests.\n\nAll tests can be run by doing the following:\n\n    from testing.tests import run_all_tests\n    run_all_tests()\n\n## Acknowledgements\n\nThis project makes use of the [yfinance](https://github.com/ranaroussi/yfinance) library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzq99%2Foptionsview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzq99%2Foptionsview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzq99%2Foptionsview/lists"}