Skip to content

Commit

Permalink
Merge pull request #94 from PtPrashantTripathi/92-fix-code-scanning-a…
Browse files Browse the repository at this point in the history
…lert-overly-permissive-regular-expression-range

92 fix code scanning alert overly permissive regular expression range
  • Loading branch information
PtPrashantTripathi authored Oct 4, 2024
2 parents 3572fe1 + a7fb47b commit dcbb037
Show file tree
Hide file tree
Showing 111 changed files with 6,395 additions and 5,027 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Continuous Integration workflow for automated monthly data updates
name: CI
name: Data Update

on:
# Schedule to run on the 1st day of every month at midnight UTC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Workflow for deploying static content to GitHub Pages
name: CD
name: Deploy Github Pages

on:
# Trigger workflow on pushes to the 'main' branch, limited to changes in 'FRONTEND' or workflow files
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Update API Path in render.js
run: |
echo "Replacing local API path with live URL..."
sed -i 's|../DATA/API/API_data.json|https://raw.githubusercontent.com/${{ github.repository }}/${{ github.event.repository.default_branch }}/DATA/API/API_data.json|' ./FRONTEND/asset/js/render.js
sed -i 's|../DATA/API|https://raw.githubusercontent.com/${{ github.repository }}/${{ github.event.repository.default_branch }}/DATA/API|' ./FRONTEND/asset/js/render.js
# Step 4: Upload static site content from 'FRONTEND' directory as an artifact
- name: Upload static site content
Expand Down
4 changes: 4 additions & 0 deletions CONFIG/DATA_CONTRACTS/GOLD/Dividend.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"data_schema": [
{
"col_name": "financial_year",
"data_type": "string"
},
{
"col_name": "date",
"data_type": "datetime64[ns]"
Expand Down
271 changes: 271 additions & 0 deletions DATA/API/current_holding_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
{
"load_timestamp": "2024-10-04 11:30:06.114242",
"data": [
{
"scrip_name": "BAJAJ HOUSING FINANCE LIMITED",
"symbol": "BAJAJHFL",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2024-09-13 00:00:00",
"side": "BUY",
"quantity": 214.0,
"price": 70.0,
"amount": 14980.0,
"close_price": 150.6,
"close_amount": 32228.4,
"pnl_amount": 17248.4
},
{
"scrip_name": "INDIAN RAILWAY CATERING AND TO",
"symbol": "IRCTC",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2024-06-04 12:19:21",
"side": "BUY",
"quantity": 3.0,
"price": 896.2,
"amount": 2688.6,
"close_price": 872.75,
"close_amount": 2618.25,
"pnl_amount": -70.35
},
{
"scrip_name": "KPIT TECHNOLOGIES LTD",
"symbol": "KPITTECH",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2024-06-13 13:58:03",
"side": "BUY",
"quantity": 2.0,
"price": 1500.0,
"amount": 3000.0,
"close_price": 1691.25,
"close_amount": 3382.5,
"pnl_amount": 382.5
},
{
"scrip_name": "TATA MOTORS",
"symbol": "TATAMOTORS",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2020-04-21 14:41:30",
"side": "BUY",
"quantity": 14.0,
"price": 75.1,
"amount": 1051.4,
"close_price": 930.75,
"close_amount": 13030.5,
"pnl_amount": 11979.1
},
{
"scrip_name": "TATA MOTORS",
"symbol": "TATAMOTORS",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2020-05-04 14:33:45",
"side": "BUY",
"quantity": 5.0,
"price": 83.8,
"amount": 419.0,
"close_price": 930.75,
"close_amount": 4653.75,
"pnl_amount": 4234.75
},
{
"scrip_name": "TATA MOTORS",
"symbol": "TATAMOTORS",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2020-07-03 13:31:19",
"side": "BUY",
"quantity": 15.0,
"price": 104.0,
"amount": 1560.0,
"close_price": 930.75,
"close_amount": 13961.25,
"pnl_amount": 12401.25
},
{
"scrip_name": "TATA MOTORS",
"symbol": "TATAMOTORS",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2021-04-12 10:44:33",
"side": "BUY",
"quantity": 26.0,
"price": 295.0,
"amount": 7670.0,
"close_price": 930.75,
"close_amount": 24199.5,
"pnl_amount": 16529.5
},
{
"scrip_name": "TATA MOTORS",
"symbol": "TATAMOTORS",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2022-05-11 11:50:35",
"side": "BUY",
"quantity": 40.0,
"price": 385.0,
"amount": 15400.0,
"close_price": 930.75,
"close_amount": 37230.0,
"pnl_amount": 21830.0
},
{
"scrip_name": "TATA POWER",
"symbol": "TATAPOWER",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2021-02-08 11:39:33",
"side": "BUY",
"quantity": 53.0,
"price": 90.0,
"amount": 4770.0,
"close_price": 466.65,
"close_amount": 24732.45,
"pnl_amount": 19962.45
},
{
"scrip_name": "TATA POWER",
"symbol": "TATAPOWER",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2021-02-22 11:44:35",
"side": "BUY",
"quantity": 33.0,
"price": 90.0,
"amount": 2970.0,
"close_price": 466.65,
"close_amount": 15399.45,
"pnl_amount": 12429.45
},
{
"scrip_name": "TATA POWER",
"symbol": "TATAPOWER",
"exchange": "NSE",
"segment": "EQ",
"datetime": "2022-05-11 11:58:14",
"side": "BUY",
"quantity": 64.0,
"price": 224.75,
"amount": 14384.0,
"close_price": 466.65,
"close_amount": 29865.6,
"pnl_amount": 15481.6
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
"symbol": "MIRAE_ASSET_ELSS_TAX_SAVER_FUND_DIRECT_PLAN_GROWTH",
"exchange": "BMF",
"segment": "MF",
"datetime": "2024-05-24 00:00:00",
"side": "BUY",
"quantity": 20.51,
"price": 48.77,
"amount": 1000.27,
"close_price": 56.0,
"close_amount": 1148.56,
"pnl_amount": 148.29
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
"symbol": "MIRAE_ASSET_ELSS_TAX_SAVER_FUND_DIRECT_PLAN_GROWTH",
"exchange": "BMF",
"segment": "MF",
"datetime": "2024-07-02 00:00:00",
"side": "BUY",
"quantity": 19.29,
"price": 51.84,
"amount": 999.99,
"close_price": 56.0,
"close_amount": 1080.24,
"pnl_amount": 80.25
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
"symbol": "MIRAE_ASSET_ELSS_TAX_SAVER_FUND_DIRECT_PLAN_GROWTH",
"exchange": "BMF",
"segment": "MF",
"datetime": "2024-08-02 00:00:00",
"side": "BUY",
"quantity": 18.61,
"price": 53.74,
"amount": 1000.1,
"close_price": 56.0,
"close_amount": 1042.16,
"pnl_amount": 42.06
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
"symbol": "MIRAE_ASSET_ELSS_TAX_SAVER_FUND_DIRECT_PLAN_GROWTH",
"exchange": "BMF",
"segment": "MF",
"datetime": "2024-09-02 00:00:00",
"side": "BUY",
"quantity": 18.2,
"price": 54.94,
"amount": 999.91,
"close_price": 56.0,
"close_amount": 1019.2,
"pnl_amount": 19.29
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
"symbol": "SBI_LONG_TERM_EQUITY_FUND_DIRECT_PLAN_GROWTH",
"exchange": "BMF",
"segment": "MF",
"datetime": "2024-05-24 00:00:00",
"side": "BUY",
"quantity": 2.33,
"price": 428.89,
"amount": 999.31,
"close_price": 490.08,
"close_amount": 1141.89,
"pnl_amount": 142.58
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
"symbol": "SBI_LONG_TERM_EQUITY_FUND_DIRECT_PLAN_GROWTH",
"exchange": "BMF",
"segment": "MF",
"datetime": "2024-07-02 00:00:00",
"side": "BUY",
"quantity": 2.2,
"price": 455.11,
"amount": 1001.24,
"close_price": 490.08,
"close_amount": 1078.18,
"pnl_amount": 76.94
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
"symbol": "SBI_LONG_TERM_EQUITY_FUND_DIRECT_PLAN_GROWTH",
"exchange": "BMF",
"segment": "MF",
"datetime": "2024-08-02 00:00:00",
"side": "BUY",
"quantity": 2.11,
"price": 474.32,
"amount": 1000.82,
"close_price": 490.08,
"close_amount": 1034.07,
"pnl_amount": 33.25
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
"symbol": "SBI_LONG_TERM_EQUITY_FUND_DIRECT_PLAN_GROWTH",
"exchange": "BMF",
"segment": "MF",
"datetime": "2024-09-02 00:00:00",
"side": "BUY",
"quantity": 2.08,
"price": 481.11,
"amount": 1000.71,
"close_price": 490.08,
"close_amount": 1019.37,
"pnl_amount": 18.66
}
]
}
Loading

0 comments on commit dcbb037

Please sign in to comment.