Skip to content

Commit

Permalink
Feature (#99)
Browse files Browse the repository at this point in the history
* Data update as of 2024-10-08 (#98)

Co-authored-by: PtPrashantTripathi <[email protected]>

* ETL NEW

* tbd

* notebooks

* update

* pn;l

* pn;l

* data

* notbook

* UPDATE

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
PtPrashantTripathi and github-actions[bot] authored Oct 10, 2024
1 parent 6c90d2e commit a48423c
Show file tree
Hide file tree
Showing 44 changed files with 2,609 additions and 7,337 deletions.
8 changes: 6 additions & 2 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## [0.5.19] - 2024-10-09

- **Introduced** a comprehensive brokerage calculation tool for accurate stock market transaction cost analysis.

## [0.4.22] - 2024-10-04

- **Added** advanced financial analysis tools for in-depth stock performance insights.
Expand All @@ -15,9 +19,9 @@ All notable changes to this project will be documented in this file.
## [0.3.4] - 2024-09-26

- **Enhanced** error handling during data extraction from stock exchanges.
- **Added** support for additional stock market indices and customizable ETL pipelines.
- **Added** support for additional stock market indices and customizable ETL PIPELINES.

## [0.3.1] - 2024-09-24

- **Completed** ETL pipeline for stock exchanges and introduced PNL amount calculations.
- **Completed** ETL PIPELINES for stock exchanges and introduced PNL amount calculations.
- **Added** new financial metrics to support portfolio analysis.
2 changes: 1 addition & 1 deletion .github/workflows/data_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Run Jupyter notebooks
run: |
echo "Running all Jupyter notebooks..."
bash ./PIPELINE/all_runner.sh
bash ./PIPELINES/all_runner.sh
# Step 6: Create a pull request with the data updates
- name: Create Pull Request
Expand Down
4 changes: 4 additions & 0 deletions CONFIG/DATA_CONTRACTS/GOLD/ProfitLoss.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
{
"col_name": "pnl_percentage",
"data_type": "float64"
},
{
"col_name": "brokerage",
"data_type": "float64"
}
],
"order_by": [
Expand Down
126 changes: 63 additions & 63 deletions DATA/API/current_holding_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"quantity": 214.0,
"price": 70.0,
"amount": 14980.0,
"close_price": 150.6,
"close_amount": 32228.4,
"pnl_amount": 17248.4
"close_price": 150.84,
"close_amount": 32279.76,
"pnl_amount": 17299.76
},
{
"scrip_name": "INDIAN RAILWAY CATERING AND TO",
Expand All @@ -24,9 +24,9 @@
"quantity": 3.0,
"price": 896.2,
"amount": 2688.6,
"close_price": 872.75,
"close_amount": 2618.25,
"pnl_amount": -70.35
"close_price": 882.65,
"close_amount": 2647.95,
"pnl_amount": -40.65
},
{
"scrip_name": "KPIT TECHNOLOGIES LTD",
Expand All @@ -38,9 +38,9 @@
"quantity": 2.0,
"price": 1500.0,
"amount": 3000.0,
"close_price": 1691.25,
"close_amount": 3382.5,
"pnl_amount": 382.5
"close_price": 1731.75,
"close_amount": 3463.5,
"pnl_amount": 463.5
},
{
"scrip_name": "TATA MOTORS",
Expand All @@ -52,9 +52,9 @@
"quantity": 14.0,
"price": 75.1,
"amount": 1051.4,
"close_price": 930.75,
"close_amount": 13030.5,
"pnl_amount": 11979.1
"close_price": 928.5,
"close_amount": 12999.0,
"pnl_amount": 11947.6
},
{
"scrip_name": "TATA MOTORS",
Expand All @@ -66,9 +66,9 @@
"quantity": 5.0,
"price": 83.8,
"amount": 419.0,
"close_price": 930.75,
"close_amount": 4653.75,
"pnl_amount": 4234.75
"close_price": 928.5,
"close_amount": 4642.5,
"pnl_amount": 4223.5
},
{
"scrip_name": "TATA MOTORS",
Expand All @@ -80,9 +80,9 @@
"quantity": 15.0,
"price": 104.0,
"amount": 1560.0,
"close_price": 930.75,
"close_amount": 13961.25,
"pnl_amount": 12401.25
"close_price": 928.5,
"close_amount": 13927.5,
"pnl_amount": 12367.5
},
{
"scrip_name": "TATA MOTORS",
Expand All @@ -94,9 +94,9 @@
"quantity": 26.0,
"price": 295.0,
"amount": 7670.0,
"close_price": 930.75,
"close_amount": 24199.5,
"pnl_amount": 16529.5
"close_price": 928.5,
"close_amount": 24141.0,
"pnl_amount": 16471.0
},
{
"scrip_name": "TATA MOTORS",
Expand All @@ -108,9 +108,9 @@
"quantity": 40.0,
"price": 385.0,
"amount": 15400.0,
"close_price": 930.75,
"close_amount": 37230.0,
"pnl_amount": 21830.0
"close_price": 928.5,
"close_amount": 37140.0,
"pnl_amount": 21740.0
},
{
"scrip_name": "TATA POWER",
Expand All @@ -122,9 +122,9 @@
"quantity": 53.0,
"price": 90.0,
"amount": 4770.0,
"close_price": 466.65,
"close_amount": 24732.45,
"pnl_amount": 19962.45
"close_price": 465.65,
"close_amount": 24679.45,
"pnl_amount": 19909.45
},
{
"scrip_name": "TATA POWER",
Expand All @@ -136,9 +136,9 @@
"quantity": 33.0,
"price": 90.0,
"amount": 2970.0,
"close_price": 466.65,
"close_amount": 15399.45,
"pnl_amount": 12429.45
"close_price": 465.65,
"close_amount": 15366.45,
"pnl_amount": 12396.45
},
{
"scrip_name": "TATA POWER",
Expand All @@ -150,9 +150,9 @@
"quantity": 64.0,
"price": 224.75,
"amount": 14384.0,
"close_price": 466.65,
"close_amount": 29865.6,
"pnl_amount": 15481.6
"close_price": 465.65,
"close_amount": 29801.6,
"pnl_amount": 15417.6
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
Expand All @@ -164,9 +164,9 @@
"quantity": 20.51,
"price": 48.77,
"amount": 1000.27,
"close_price": 54.46,
"close_amount": 1116.97,
"pnl_amount": 116.7
"close_price": 54.53,
"close_amount": 1118.41,
"pnl_amount": 118.14
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
Expand All @@ -178,9 +178,9 @@
"quantity": 19.29,
"price": 51.84,
"amount": 999.99,
"close_price": 54.46,
"close_amount": 1050.53,
"pnl_amount": 50.54
"close_price": 54.53,
"close_amount": 1051.88,
"pnl_amount": 51.89
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
Expand All @@ -192,9 +192,9 @@
"quantity": 18.61,
"price": 53.74,
"amount": 1000.1,
"close_price": 54.46,
"close_amount": 1013.5,
"pnl_amount": 13.4
"close_price": 54.53,
"close_amount": 1014.8,
"pnl_amount": 14.7
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
Expand All @@ -206,9 +206,9 @@
"quantity": 18.2,
"price": 54.94,
"amount": 999.91,
"close_price": 54.46,
"close_amount": 991.17,
"pnl_amount": -8.74
"close_price": 54.53,
"close_amount": 992.45,
"pnl_amount": -7.46
},
{
"scrip_name": "MIRAE ASSET TAX SAVER FUND - D",
Expand All @@ -220,9 +220,9 @@
"quantity": 18.22,
"price": 54.89,
"amount": 1000.1,
"close_price": 54.46,
"close_amount": 992.26,
"pnl_amount": -7.84
"close_price": 54.53,
"close_amount": 993.54,
"pnl_amount": -6.56
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
Expand All @@ -234,9 +234,9 @@
"quantity": 2.33,
"price": 428.89,
"amount": 999.31,
"close_price": 478.4,
"close_amount": 1114.67,
"pnl_amount": 115.36
"close_price": 479.28,
"close_amount": 1116.72,
"pnl_amount": 117.41
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
Expand All @@ -248,9 +248,9 @@
"quantity": 2.2,
"price": 455.11,
"amount": 1001.24,
"close_price": 478.4,
"close_amount": 1052.48,
"pnl_amount": 51.24
"close_price": 479.28,
"close_amount": 1054.42,
"pnl_amount": 53.18
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
Expand All @@ -262,9 +262,9 @@
"quantity": 2.11,
"price": 474.32,
"amount": 1000.82,
"close_price": 478.4,
"close_amount": 1009.42,
"pnl_amount": 8.6
"close_price": 479.28,
"close_amount": 1011.28,
"pnl_amount": 10.46
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
Expand All @@ -276,9 +276,9 @@
"quantity": 2.08,
"price": 481.11,
"amount": 1000.71,
"close_price": 478.4,
"close_amount": 995.07,
"pnl_amount": -5.64
"close_price": 479.28,
"close_amount": 996.9,
"pnl_amount": -3.81
},
{
"scrip_name": "SBI MAGNUM TAX GAIN SCHEME - D",
Expand All @@ -290,9 +290,9 @@
"quantity": 2.07,
"price": 482.09,
"amount": 997.93,
"close_price": 478.4,
"close_amount": 990.29,
"pnl_amount": -7.64
"close_price": 479.28,
"close_amount": 992.11,
"pnl_amount": -5.82
}
],
"load_timestamp": "2024-10-04 11:30:06.114242"
Expand Down
Loading

0 comments on commit a48423c

Please sign in to comment.