Skip to content

Commit

Permalink
v1.36 - Data Source updated
Browse files Browse the repository at this point in the history
* CSV links updated to New NSE Server (#113)
* New Workflow Job added for Squashing Commits of actions-data-downloads
* Pillow added to requirements for MacOS build
* Codefactor Improvements
  • Loading branch information
pranjal-joshi committed May 12, 2022
1 parent ad6f6de commit e8d297f
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/squash.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
if c_msg in l:
cnt += 1
else:
hash = l.split(" ")[0]
commit_hash = l.split(" ")[0]
cnt -= 1
break


print(f"[+] Reset at HEAD~{cnt}")
print(f"[+] Reset hash = {hash}")
print(f"git reset --soft {hash}")
print(f"[+] Reset hash = {commit_hash}")
print(f"git reset --soft {commit_hash}")
print(f"git commit -m '{c_msg}'")

if cnt < 1:
print("[+] No Need to Squash! Skipping...")
else:
os.system(f"git reset --soft HEAD~{cnt}")
os.system(f"git commit -m '{c_msg}'")
os.system(f"git push")
os.system(f"git push -f")

os.remove("msg.log")
sleep(5)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-download-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
rmdir /s /q actions-data-download
mkdir actions-data-download
python src/screenipy.py -d
copy "stock_data_*.pkl" "actions-data-download"
copy "stock_data_*.pkl" "actions-data-download"
- name: Push Pickle Data
run: |
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ta-lib
tabulate
yfinance
alive-progress==1.6.2
Pillow
altgraph # Installed as dependency for pyinstaller
atomicwrites # Installed as dependency for pytest
attrs # Installed as dependency for pytest
Expand Down
5 changes: 4 additions & 1 deletion src/classes/Changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from classes.ColorText import colorText

VERSION = "1.35"
VERSION = "1.36"

changelog = colorText.BOLD + '[ChangeLog]\n' + colorText.END + colorText.BLUE + '''
[1.00 - Beta]
Expand Down Expand Up @@ -168,5 +168,8 @@
1. Separate Algorithms for NR depending on Live/After-Market hours.
2. NRx results fixed in Momentum Gainer Screening.
[1.36]
1. Updated CSV URLs to New NSE Site. (#113)
--- END ---
''' + colorText.END
23 changes: 12 additions & 11 deletions src/classes/Fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ def fetchCodes(self, tickerOption,proxyServer=None):
if tickerOption == 12:
return list(nse.get_stock_codes(cached=False))[1:]
tickerMapping = {
1: "https://www1.nseindia.com/content/indices/ind_nifty50list.csv",
2: "https://www1.nseindia.com/content/indices/ind_niftynext50list.csv",
3: "https://www1.nseindia.com/content/indices/ind_nifty100list.csv",
4: "https://www1.nseindia.com/content/indices/ind_nifty200list.csv",
5: "https://www1.nseindia.com/content/indices/ind_nifty500list.csv",
6: "https://www1.nseindia.com/content/indices/ind_niftysmallcap50list.csv",
7: "https://www1.nseindia.com/content/indices/ind_niftysmallcap100list.csv",
8: "https://www1.nseindia.com/content/indices/ind_niftysmallcap250list.csv",
9: "https://www1.nseindia.com/content/indices/ind_niftymidcap50list.csv",
10: "https://www1.nseindia.com/content/indices/ind_niftymidcap100list.csv",
11: "https://www1.nseindia.com/content/indices/ind_niftymidcap150list.csv"}
1: "https://archives.nseindia.com/content/indices/ind_nifty50list.csv",
2: "https://archives.nseindia.com/content/indices/ind_niftynext50list.csv",
3: "https://archives.nseindia.com/content/indices/ind_nifty100list.csv",
4: "https://archives.nseindia.com/content/indices/ind_nifty200list.csv",
5: "https://archives.nseindia.com/content/indices/ind_nifty500list.csv",
6: "https://archives.nseindia.com/content/indices/ind_niftysmallcap50list.csv",
7: "https://archives.nseindia.com/content/indices/ind_niftysmallcap100list.csv",
8: "https://archives.nseindia.com/content/indices/ind_niftysmallcap250list.csv",
9: "https://archives.nseindia.com/content/indices/ind_niftymidcap50list.csv",
10: "https://archives.nseindia.com/content/indices/ind_niftymidcap100list.csv",
11: "https://archives.nseindia.com/content/indices/ind_niftymidcap150list.csv"
}

url = tickerMapping.get(tickerOption)

Expand Down
13 changes: 6 additions & 7 deletions src/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@

Celebrating more than 1,000 Downloads - Thank You for your support <3

1. **Narrow Range** Algorithm chages dynamically with Live/Post-Market Analysis - Try `Option 6 > 6`
2. Alternate Data Source for faster After-Market Analysis - Optimizations and Cosmetic Updates!
3. **Experimental** Feature - **VCP** Detection - Try `Option > 7 > 4`
1. Data Sources updated to New NSE Website.
2. **Narrow Range** Algorithm chages dynamically with Live/Post-Market Analysis - Try `Option 6 > 6`
3. Alternate Data Source for faster After-Market Analysis - Optimizations and Cosmetic Updates!
4. **New Tickers Group** - Screen only for **Newly Listed IPOs** (Last 1 Yr)
5. **Volume Spread Analysis** : BugFixes for catching Bullish Reversals - Try `Option > 6 > 5`
6. BugFixes for Stock Data caching with [@swarpatel23](https://github.com/swarpatel23)

## Downloads
* For :desktop_computer: **Windows** users, download **[screenipy.exe](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.35/screenipy.exe)**
* For :penguin: **Linux** users, download **[screenipy.bin](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.35/screenipy.bin)**
* For :apple: **MacOS** users, download **[screenipy.run](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.35/screenipy.run)** ([Read Installation Guide](https://github.com/pranjal-joshi/Screeni-py/blob/main/INSTALLATION.md#for-macos))
* For :desktop_computer: **Windows** users, download **[screenipy.exe](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.36/screenipy.exe)**
* For :penguin: **Linux** users, download **[screenipy.bin](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.36/screenipy.bin)**
* For :apple: **MacOS** users, download **[screenipy.run](https://github.com/pranjal-joshi/Screeni-py/releases/download/1.36/screenipy.run)** ([Read Installation Guide](https://github.com/pranjal-joshi/Screeni-py/blob/main/INSTALLATION.md#for-macos))

## How to use?

Expand Down

0 comments on commit e8d297f

Please sign in to comment.