{"id":13449713,"url":"https://github.com/mcdallas/wallstreet","last_synced_at":"2025-05-15T20:05:59.298Z","repository":{"id":37774025,"uuid":"50063599","full_name":"mcdallas/wallstreet","owner":"mcdallas","description":"Real time stock and option data.","archived":false,"fork":false,"pushed_at":"2024-07-06T01:41:25.000Z","size":226,"stargazers_count":1483,"open_issues_count":19,"forks_count":213,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-04-08T02:41:18.115Z","etag":null,"topics":["black-scholes","finance","google-finance","greeks","options","stock-data","yahoo-finance"],"latest_commit_sha":null,"homepage":null,"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/mcdallas.png","metadata":{"files":{"readme":"README.rst","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":"2016-01-20T22:03:39.000Z","updated_at":"2025-04-08T02:01:33.000Z","dependencies_parsed_at":"2024-10-28T15:37:24.882Z","dependency_job_id":null,"html_url":"https://github.com/mcdallas/wallstreet","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdallas%2Fwallstreet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdallas%2Fwallstreet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdallas%2Fwallstreet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdallas%2Fwallstreet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcdallas","download_url":"https://codeload.github.com/mcdallas/wallstreet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414499,"owners_count":22067272,"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","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":["black-scholes","finance","google-finance","greeks","options","stock-data","yahoo-finance"],"created_at":"2024-07-31T06:00:52.116Z","updated_at":"2025-05-15T20:05:54.244Z","avatar_url":"https://github.com/mcdallas.png","language":"Python","funding_links":[],"categories":["Data Sources","Python","Data Source","finance","repos:"],"sub_categories":["General","Stocks and General","Data Sources"],"readme":"Wallstreet: Real time Stock and Option tools\n--------------------------------------------\n\nWallstreet is a Python 3 library for monitoring and analyzing real time Stock and\nOption data. Quotes are provided from the Google Finance API. Wallstreet requires\nminimal input from the user, it uses available online data to calculate option\ngreeks and even scrapes the US Treasury website to get the current risk free rate.\n\n\nUsage\n-----\n\nStocks:\n\n.. code-block:: Python\n\n  from wallstreet import Stock, Call, Put\n\n  \u003e\u003e\u003e s = Stock('AAPL')\n  \u003e\u003e\u003e s.price\n  96.44\n  \u003e\u003e\u003e s.price\n  96.48\n  \u003e\u003e\u003e s.change\n  -0.35\n  \u003e\u003e\u003e s.last_trade\n  '21 Jan 2016 13:32:12'\n\nOptions:\n\n.. code-block:: Python\n\n  \u003e\u003e\u003e g = Call('GOOG', d=12, m=2, y=2016, strike=700)\n  \u003e\u003e\u003e g.price\n  38.2\n  \u003e\u003e\u003e g.implied_volatility()\n  0.49222968442691889\n  \u003e\u003e\u003e g.delta()\n  0.56522039722040063\n  \u003e\u003e\u003e g.vega()\n  0.685034827159825\n  \u003e\u003e\u003e g.underlying.price\n  706.59\n\nAlternative construction:\n\n.. code-block:: Python\n\n  \u003e\u003e\u003e g = Call('GOOG', d=12, m=2, y=2016)\n  \u003e\u003e\u003e g\n  Call(ticker=GOOG, expiration='12-02-2016')\n  \u003e\u003e\u003e g.strikes\n  (580, 610, 620, 630, 640, 650, 660, 670, 680, 690, 697.5, 700, 702.5, 707.5, 710, 712.5, 715, 720, ...)\n  \u003e\u003e\u003e g.set_strike(712.5)\n  \u003e\u003e\u003e g\n  Call(ticker=GOOG, expiration='12-02-2016', strike=712.5)\n\nor\n\n.. code-block:: Python\n\n  \u003e\u003e\u003e g = Put(\"GOOG\")\n  'No options listed for given date, using 22-01-2016 instead'\n  \u003e\u003e\u003e g.expirations\n  ['22-01-2016', '29-01-2016', '05-02-2016', '12-02-2016', '19-02-2016', '26-02-2016', '04-03-2016', ...]\n  \u003e\u003e\u003e g\n  Put(ticker=GOOG, expiration='22-01-2016')\n\nYahoo Finance Support (keep in mind that YF quotes might be delayed):\n\n.. code-block:: Python\n\n    \u003e\u003e\u003e apple = Stock('AAPL', source='yahoo')\n    \u003e\u003e\u003e call = Call('AAPL', strike=apple.price, source='yahoo')\n    No options listed for given date, using '26-05-2017' instead\n    No option for given strike, using 155 instead\n\nDownload historical data (requires pandas)\n\n.. code-block:: Python\n\n    s = Stock('BTC-USD')\n    \u003e\u003e\u003e df = s.historical(days_back=30, frequency='d')\n    \u003e\u003e\u003e df\n             Date          Open          High           Low         Close     Adj Close      Volume\n    0  2019-07-10  12567.019531  13183.730469  11569.940430  12099.120117  12099.120117  1554955347\n    1  2019-07-11  12099.120117  12099.910156  11002.389648  11343.120117  11343.120117  1185222449\n    2  2019-07-12  11343.120117  11931.910156  11096.610352  11797.370117  11797.370117   647690095\n    3  2019-07-13  11797.370117  11835.870117  10827.530273  11363.969727  11363.969727   668325183\n    4  2019-07-14  11363.969727  11447.919922  10118.849609  10204.410156  10204.410156   814667763\n    5  2019-07-15  10204.410156  11070.179688   9877.019531  10850.259766  10850.259766   965178341\n    6  2019-07-16  10850.259766  11025.759766   9366.820313   9423.440430   9423.440430  1140137759\n    7  2019-07-17   9423.440430   9982.240234   9086.509766   9696.150391   9696.150391   965256823\n    8  2019-07-18   9696.150391  10776.540039   9292.610352  10638.349609  10638.349609  1033842556\n    9  2019-07-19  10638.349609  10757.410156  10135.160156  10532.940430  10532.940430   658190962\n    10 2019-07-20  10532.940430  11094.320313  10379.190430  10759.419922  10759.419922   608954333\n    11 2019-07-21  10759.419922  10833.990234  10329.889648  10586.709961  10586.709961   405339891\n    12 2019-07-22  10586.709961  10676.599609  10072.070313  10325.870117  10325.870117   524442852\n    13 2019-07-23  10325.870117  10328.440430   9820.610352   9854.150391   9854.150391   529438124\n    14 2019-07-24   9854.150391   9920.540039   9535.780273   9772.139648   9772.139648   531611909\n    15 2019-07-25   9772.139648  10184.429688   9744.700195   9882.429688   9882.429688   403576364\n    16 2019-07-26   9882.429688   9890.049805   9668.519531   9847.450195   9847.450195   312717110\n    17 2019-07-27   9847.450195  10202.950195   9310.469727   9478.320313   9478.320313   512612117\n    18 2019-07-28   9478.320313   9591.519531   9135.639648   9531.769531   9531.769531   267243770\n    19 2019-07-29   9531.769531   9717.690430   9386.900391   9506.929688   9506.929688   299936368\n    20 2019-07-30   9506.929688   9749.530273   9391.780273   9595.519531   9595.519531   276402322\n    21 2019-07-31   9595.519531  10123.940430   9581.599609  10089.250000  10089.250000   416343142\n    22 2019-08-01  10089.250000  10488.809570   9890.490234  10409.790039  10409.790039   442037342\n    23 2019-08-02  10409.790039  10666.639648  10340.820313  10528.990234  10528.990234   463688251\n    24 2019-08-03  10528.990234  10915.000000  10509.349609  10820.410156  10820.410156   367536516\n    25 2019-08-04  10820.410156  11074.950195  10572.240234  10978.910156  10978.910156   431699306\n    26 2019-08-05  10978.910156  11945.379883  10978.889648  11807.959961  11807.959961   870917186\n    27 2019-08-06  11807.959961  12316.849609  11224.099609  11467.099609  11467.099609   949534020\n    28 2019-08-07  11467.099609  12138.549805  11393.980469  11974.280273  11974.280273   834719365\n    29 2019-08-08  11974.280273  12042.870117  11498.040039  11982.799805  11982.799805   588463519\n    30 2019-08-09  11983.620117  12027.570313  11674.059570  11810.679688  11810.679688   366160288\n\nInstallation\n------------\nSimply\n\n.. code-block:: bash\n\n    $ pip install wallstreet\n\n\nStock Attributes\n----------------\n\n- ticker\n- price\n- id\n- exchange\n- last_trade\n- change   (change in currency)\n- cp   (percentage change)\n\n\nOption Attributes and Methods\n-----------------------------\n\n- strike\n- expiration\n- underlying  (underlying stock object)\n- ticker\n- bid\n- ask\n- price (option price)\n- id\n- exchange\n- change  (in currency)\n- cp  (percentage change)\n- volume\n- open_interest\n- code\n- expirations (list of possible expiration dates for option chain)\n- strikes (list of possible strike prices)\n\n- set_strike()\n- implied_volatility()\n- delta()\n- gamma()\n- vega()\n- theta()\n- rho()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcdallas%2Fwallstreet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcdallas%2Fwallstreet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcdallas%2Fwallstreet/lists"}