Skip to content

Commit

Permalink
deploy: a7f3ebd
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThadikaran committed Nov 3, 2023
1 parent 7623c3f commit 27e801f
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 22 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/usage.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

94 changes: 73 additions & 21 deletions usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ <h2>General Methods<a class="headerlink" href="#general-methods" title="Link to
<dd class="field-odd"><p><strong>scripcode</strong> – BSE scrip code</p>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if scrip not found</p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if scrip not found</p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>Symbol code</p>
Expand All @@ -259,7 +263,11 @@ <h2>General Methods<a class="headerlink" href="#general-methods" title="Link to
<dd class="field-odd"><p><strong>scripname</strong> – Stock symbol code</p>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if scrip not found</p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if scrip not found</p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>BSE scrip code</p>
Expand All @@ -277,19 +285,21 @@ <h2>General Methods<a class="headerlink" href="#general-methods" title="Link to
<h2>Download Reports<a class="headerlink" href="#download-reports" title="Link to this heading">#</a></h2>
<dl class="py method">
<dt class="sig sig-object py" id="bse.BSE.bhavcopyReport">
<span class="sig-prename descclassname"><span class="pre">BSE.</span></span><span class="sig-name descname"><span class="pre">bhavcopyReport</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">date</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">datetime</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">folder</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Path</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#bse.BSE.bhavcopyReport" title="Link to this definition">#</a></dt>
<span class="sig-prename descclassname"><span class="pre">BSE.</span></span><span class="sig-name descname"><span class="pre">bhavcopyReport</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">date</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">datetime</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">folder</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Path</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#bse.BSE.bhavcopyReport" title="Link to this definition">#</a></dt>
<dd><p>Download the daily bhavcopy report for specified <code class="docutils literal notranslate"><span class="pre">date</span></code></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>date</strong> (<em>datetime.datetime</em>) – date of report</p></li>
<li><p><strong>folder</strong> (<em>str</em><em> or </em><em>pathlib.Path</em>) – dir/folder to download the file to</p></li>
<li><p><strong>folder</strong> (<em>str</em><em> or </em><em>pathlib.Path</em><em> or </em><em>None</em>) – Optional dir/folder to save the file to</p></li>
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">folder</span></code> is not a dir/folder.</p></li>
<li><p><strong>RuntimeError</strong> – if report is unavailable or not yet updated.</p></li>
<li><p><strong>FileNotFoundError</strong> – if file download failed or file is corrupt.</p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
Expand All @@ -304,19 +314,21 @@ <h2>Download Reports<a class="headerlink" href="#download-reports" title="Link t

<dl class="py method">
<dt class="sig sig-object py" id="bse.BSE.deliveryReport">
<span class="sig-prename descclassname"><span class="pre">BSE.</span></span><span class="sig-name descname"><span class="pre">deliveryReport</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">date</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">datetime</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">folder</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Path</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#bse.BSE.deliveryReport" title="Link to this definition">#</a></dt>
<span class="sig-prename descclassname"><span class="pre">BSE.</span></span><span class="sig-name descname"><span class="pre">deliveryReport</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">date</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">datetime</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">folder</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Path</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#bse.BSE.deliveryReport" title="Link to this definition">#</a></dt>
<dd><p>Download the daily delivery report for specified <code class="docutils literal notranslate"><span class="pre">date</span></code></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>date</strong> (<em>datetime.datetime</em>) – date of report</p></li>
<li><p><strong>folder</strong> (<em>str</em><em> or </em><em>pathlib.Path</em>) – dir/folder to download the file to</p></li>
<li><p><strong>folder</strong> (<em>str</em><em> or </em><em>pathlib.Path</em><em> or </em><em>None</em>) – Optional dir/folder to save the file to</p></li>
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">folder</span></code> is not a dir/folder.</p></li>
<li><p><strong>RuntimeError</strong> – if report is unavailable or not yet updated.</p></li>
<li><p><strong>FileNotFoundError</strong> – if file download failed or file is corrupt.</p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
Expand Down Expand Up @@ -347,7 +359,11 @@ <h2>Corporate Filings<a class="headerlink" href="#corporate-filings" title="Link
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">from_date</span></code> is greater than <code class="docutils literal notranslate"><span class="pre">to_date</span></code> or <code class="docutils literal notranslate"><span class="pre">subcategory</span></code> argument is passed without <code class="docutils literal notranslate"><span class="pre">category</span></code></p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">from_date</span></code> is greater than <code class="docutils literal notranslate"><span class="pre">to_date</span></code> or <code class="docutils literal notranslate"><span class="pre">subcategory</span></code> argument is passed without <code class="docutils literal notranslate"><span class="pre">category</span></code></p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>All announcements. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/announcements.json">Sample response</a></p>
Expand Down Expand Up @@ -402,7 +418,11 @@ <h2>Corporate Filings<a class="headerlink" href="#corporate-filings" title="Link
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">from_date</span></code> is greater than <code class="docutils literal notranslate"><span class="pre">to_date</span></code></p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">from_date</span></code> is greater than <code class="docutils literal notranslate"><span class="pre">to_date</span></code></p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>List of actions. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/actions.json">Sample response</a></p>
Expand Down Expand Up @@ -437,7 +457,11 @@ <h2>Corporate Filings<a class="headerlink" href="#corporate-filings" title="Link
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">from_date</span></code> is greater than <code class="docutils literal notranslate"><span class="pre">to_date</span></code></p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">from_date</span></code> is greater than <code class="docutils literal notranslate"><span class="pre">to_date</span></code></p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>List of Corporate results. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/resultCalendar.json">Sample response</a></p>
Expand Down Expand Up @@ -467,7 +491,11 @@ <h2>Market Updates and Summary<a class="headerlink" href="#market-updates-and-su
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">name</span></code> is not a valid BSE stock group.</p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">name</span></code> is not a valid BSE stock group.</p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>List of top gainers by percent change. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/gainers.json">Sample response</a></p>
Expand Down Expand Up @@ -506,7 +534,11 @@ <h2>Market Updates and Summary<a class="headerlink" href="#market-updates-and-su
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">name</span></code> is not a valid BSE stock group.</p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">name</span></code> is not a valid BSE stock group.</p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>List of top losers by percent change. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/losers.json">Sample response</a></p>
Expand Down Expand Up @@ -544,7 +576,11 @@ <h2>Market Updates and Summary<a class="headerlink" href="#market-updates-and-su
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">name</span></code> is not a valid BSE stock group.</p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">name</span></code> is not a valid BSE stock group.</p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>Stocks near 52 week high and lows. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/near52WeekHighLow.json">Sample response</a></p>
Expand Down Expand Up @@ -577,11 +613,17 @@ <h2>Market Updates and Summary<a class="headerlink" href="#market-updates-and-su
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>scripcode</strong> (<em>str</em>) – BSE scrip code</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>OHLC data for given scripcode. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/quote.json">Sample response</a></p>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><ul class="simple">
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>OHLC data for given scripcode. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/quote.json">Sample response</a></p>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p>dict[str, float]</p>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p>dict[str, float]</p>
</dd>
</dl>
</dd></dl>
Expand All @@ -594,11 +636,17 @@ <h2>Market Updates and Summary<a class="headerlink" href="#market-updates-and-su
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>scripcode</strong> (<em>str</em>) – BSE scrip code</p>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>Weekly and monthly high and lows with dates. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/quoteWeeklyHL.json">Sample response</a></p>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><ul class="simple">
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p>dict</p>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>Weekly and monthly high and lows with dates. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/quoteWeeklyHL.json">Sample response</a></p>
</dd>
<dt class="field-even">Return type<span class="colon">:</span></dt>
<dd class="field-even"><p>dict</p>
</dd>
</dl>
</dd></dl>
Expand All @@ -618,7 +666,11 @@ <h2>Market Updates and Summary<a class="headerlink" href="#market-updates-and-su
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">group</span></code> is not a valid BSE stock group</p>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – if <code class="docutils literal notranslate"><span class="pre">group</span></code> is not a valid BSE stock group</p></li>
<li><p><strong>TimeoutError</strong> – if request timed out with no response</p></li>
<li><p><strong>ConnectionError</strong> – in case of HTTP error or server returns error response.</p></li>
</ul>
</dd>
<dt class="field-odd">Returns<span class="colon">:</span></dt>
<dd class="field-odd"><p>list of securities with meta info. <a class="reference external" href="https://github.com/BennyThadikaran/BseIndiaApi/blob/main/src/samples/listSecurities.json">Sample response</a></p>
Expand Down

0 comments on commit 27e801f

Please sign in to comment.