Skip to content

Commit

Permalink
🪨
Browse files Browse the repository at this point in the history
  • Loading branch information
HA authored and HA committed Jan 1, 2024
1 parent 8dd6ab9 commit 7d004ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ venv/
ENV/
env.bak/
venv.bak/
ngx_dash

# Spyder project settings
.spyderproject
Expand Down
4 changes: 3 additions & 1 deletion stock_view/data_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pandas as pd
import json
from gazpacho import get,Soup
from datetime import datetime

# Data Ingestion and Transformation
def load_equities_data(url="https://doclib.ngxgroup.com/REST/api/statistics/equities/?market=&sector=&orderby=&pageSize=300&pageNo=0"):
Expand Down Expand Up @@ -95,7 +96,8 @@ def filter_top_losers(data):


# Define the URL endpoint for corporate actions in 2023
CORP_ACTIONS_URL = "https://ngxgroup.com/wp-json/corporate-actions/v1/by-year/2023"
get_year = datetime.now().year
CORP_ACTIONS_URL = f"https://ngxgroup.com/wp-json/corporate-actions/v1/by-year/{get_year}"

# Define a function that retrieves and processes data for the dividend tracker feature
def dividend_tracker_data():
Expand Down
20 changes: 0 additions & 20 deletions stock_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,23 +299,3 @@ def viz_index():
st.text("Ooops!... Sorry can't retrieve data at the moment,try later!")


components.html(
"""
<!-- Default Statcounter code for nsedash
https://stock-das.herokuapp.com/ -->
<script type="text/javascript">
var sc_project=12556146;
var sc_invisible=1;
var sc_security="f71a25cb";
</script>
<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<noscript><div class="statcounter"><a title="Web Analytics"
href="https://statcounter.com/" target="_blank"><img
class="statcounter"
src="https://c.statcounter.com/12556146/0/f71a25cb/1/"
alt="Web Analytics"></a></div></noscript>
<!-- End of Statcounter Code -->
"""
)

0 comments on commit 7d004ae

Please sign in to comment.