-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## New Features * Add a way to load historical daily OHLCV data from Bhav Copy released by BSE everyday ## Bug Fixes * Change the source of the scrip code list to fix the broken list of codes ## Maintenance * Add a pipenv environment for development * Update years in license statements * Update time & actions used in `daily-tests` workflow * Increase tests coverage * Add contributing guidelines
- Loading branch information
Showing
28 changed files
with
1,482 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: update-scrip-code-list | ||
|
||
on: | ||
schedule: | ||
- cron: '20 1 * * *' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requires.ci.txt | ||
- name: Run script to update scrip codes | ||
env: | ||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} | ||
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} | ||
run: | | ||
python cron/update_scrip_code_list.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# How to contribute | ||
|
||
## Did you find a bug? | ||
|
||
* **Ensure the bug was not already reported** by searching on GitHub under [issues](https://github.com/sdabhi23/bsedata/issues). | ||
|
||
* If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/sdabhi23/bsedata/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** demonstrating the expected behavior that is not occurring. Don't forget to the tag `bug` on your issue. | ||
|
||
## Did you write a patch that fixes a bug? | ||
|
||
* Open a new GitHub pull request with the patch. | ||
|
||
* Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable. | ||
|
||
## Do you intend to add a new feature or change an existing one? | ||
|
||
* Suggest your change by [opening a new issue on GitHub](https://github.com/sdabhi23/bsedata/issues/new). Don't forget to the tag `enhancement` on your issue. | ||
|
||
* Changes which create a dependency on the APIs used by the [new BSE website](https://www.bseindia.com/) are generally rejected as they keep breaking because of security changes on the APIs. These APIs generally start with something like **`https://api.bseindia.com/BseIndiaAPI/api/`**. [Example 1](https://github.com/sdabhi23/bsedata/pull/30) [Example 2](https://github.com/sdabhi23/bsedata/pull/29) [Example 3](https://github.com/sdabhi23/bsedata/pull/45) | ||
|
||
## Do you want to contribute to the documentation? | ||
|
||
* Please make sure that you fully understand what this library does & do not propose irrelevant or bad changes. [Example](https://github.com/sdabhi23/bsedata/pull/44). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
sphinxext-opengraph = "*" | ||
sphinx-copybutton = "*" | ||
beautifulsoup4 = "*" | ||
pytest-xdist = "*" | ||
pytest-cov = "*" | ||
autopep8 = "*" | ||
requests = "*" | ||
pytest = "*" | ||
pandas = "*" | ||
sphinx = "*" | ||
boto3 = "*" | ||
furo = "*" | ||
lxml = "*" | ||
|
||
[requires] | ||
python_version = "3.10" |
Oops, something went wrong.