Skip to content

Commit

Permalink
Merge pull request #86 from PtPrashantTripathi/data-update
Browse files Browse the repository at this point in the history
Data update
  • Loading branch information
PtPrashantTripathi authored Sep 30, 2024
2 parents 6a66156 + 30c0ad5 commit 47b3ca7
Show file tree
Hide file tree
Showing 1,601 changed files with 47,296 additions and 41,975 deletions.
48 changes: 24 additions & 24 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
---
name: Feature request 💄
about: Suggest a new idea for PortfolioTracker.
labels: enhancement
---

<!-- Provide a general summary of the feature in the Title above -->

## Summary 💡

<!-- Describe how it should work. -->

## Examples 🌈

<!--
Provide a link to the PortfolioTracker specification, other implementations,
or screenshots of the expected behavior.
-->

## Motivation 🔦

<!--
What are you trying to accomplish? How has the lack of this feature affected you?
Providing context helps us come up with a solution that is most useful in the real world.
---
name: Feature request 💄
about: Suggest a new idea for PortfolioTracker.
labels: enhancement
---

<!-- Provide a general summary of the feature in the Title above -->

## Summary 💡

<!-- Describe how it should work. -->

## Examples 🌈

<!--
Provide a link to the PortfolioTracker specification, other implementations,
or screenshots of the expected behavior.
-->

## Motivation 🔦

<!--
What are you trying to accomplish? How has the lack of this feature affected you?
Providing context helps us come up with a solution that is most useful in the real world.
-->
2 changes: 1 addition & 1 deletion CONFIG/DATA_CONTRACTS/BRONZE/StockData.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"col_name": "volume",
"data_type": "int64"
"data_type": "float64"
},
{
"col_name": "dividends",
Expand Down
40 changes: 40 additions & 0 deletions CONFIG/DATA_CONTRACTS/GOLD/CurrentHolding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"data_schema": [
{
"col_name": "scrip_name",
"data_type": "object"
},
{
"col_name": "symbol",
"data_type": "object"
},
{
"col_name": "exchange",
"data_type": "object"
},
{
"col_name": "segment",
"data_type": "object"
},
{
"col_name": "datetime",
"data_type": "datetime64[ns]"
},
{
"col_name": "side",
"data_type": "object"
},
{
"col_name": "quantity",
"data_type": "float64"
},
{
"col_name": "price",
"data_type": "float64"
},
{
"col_name": "amount",
"data_type": "float64"
}
]
}
20 changes: 20 additions & 0 deletions CONFIG/DATA_CONTRACTS/GOLD/Dividend.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"data_schema": [
{
"col_name": "date",
"data_type": "datetime64[ns]"
},
{
"col_name": "segment",
"data_type": "object"
},
{
"col_name": "symbol",
"data_type": "object"
},
{
"col_name": "dividend_amount",
"data_type": "float64"
}
]
}
68 changes: 68 additions & 0 deletions CONFIG/DATA_CONTRACTS/GOLD/Holding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"data_schema": [
{
"col_name": "date",
"data_type": "datetime64[ns]"
},
{
"col_name": "segment",
"data_type": "object"
},
{
"col_name": "exchange",
"data_type": "object"
},
{
"col_name": "symbol",
"data_type": "object"
},
{
"col_name": "scrip_name",
"data_type": "object"
},
{
"col_name": "holding_quantity",
"data_type": "float64"
},
{
"col_name": "avg_price",
"data_type": "float64"
},
{
"col_name": "holding_amount",
"data_type": "float64"
},
{
"col_name": "open_price",
"data_type": "float64"
},
{
"col_name": "open_amount",
"data_type": "float64"
},
{
"col_name": "high_price",
"data_type": "float64"
},
{
"col_name": "high_amount",
"data_type": "float64"
},
{
"col_name": "low_price",
"data_type": "float64"
},
{
"col_name": "low_amount",
"data_type": "float64"
},
{
"col_name": "close_price",
"data_type": "float64"
},
{
"col_name": "close_amount",
"data_type": "float64"
}
]
}
68 changes: 68 additions & 0 deletions CONFIG/DATA_CONTRACTS/GOLD/ProfitLoss.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"data_schema": [
{
"col_name": "exchange",
"data_type": "object"
},
{
"col_name": "segment",
"data_type": "object"
},
{
"col_name": "symbol",
"data_type": "object"
},
{
"col_name": "scrip_name",
"data_type": "object"
},
{
"col_name": "position",
"data_type": "object"
},
{
"col_name": "quantity",
"data_type": "float64"
},
{
"col_name": "open_datetime",
"data_type": "datetime64[ns]"
},
{
"col_name": "open_side",
"data_type": "object"
},
{
"col_name": "open_price",
"data_type": "float64"
},
{
"col_name": "open_amount",
"data_type": "float64"
},
{
"col_name": "close_datetime",
"data_type": "datetime64[ns]"
},
{
"col_name": "close_side",
"data_type": "object"
},
{
"col_name": "close_price",
"data_type": "float64"
},
{
"col_name": "close_amount",
"data_type": "float64"
},
{
"col_name": "pnl_amount",
"data_type": "float64"
},
{
"col_name": "pnl_percentage",
"data_type": "float64"
}
]
}
20 changes: 20 additions & 0 deletions CONFIG/DATA_CONTRACTS/SILVER/StockEvents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"data_schema": [
{
"col_name": "date",
"data_type": "object"
},
{
"col_name": "symbol",
"data_type": "object"
},
{
"col_name": "event",
"data_type": "object"
},
{
"col_name": "value",
"data_type": "float64"
}
]
}
32 changes: 32 additions & 0 deletions CONFIG/DATA_CONTRACTS/SILVER/StockPrice.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"data_schema": [
{
"col_name": "date",
"data_type": "object"
},
{
"col_name": "symbol",
"data_type": "object"
},
{
"col_name": "open",
"data_type": "float64"
},
{
"col_name": "high",
"data_type": "float64"
},
{
"col_name": "low",
"data_type": "float64"
},
{
"col_name": "close",
"data_type": "float64"
},
{
"col_name": "volume",
"data_type": "float64"
}
]
}
24 changes: 24 additions & 0 deletions CONFIG/DATA_CONTRACTS/SILVER/Symbol.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"data_schema": [
{
"col_name": "instrument_type",
"data_type": "object"
},
{
"col_name": "isin",
"data_type": "object"
},
{
"col_name": "symbol",
"data_type": "object"
},
{
"col_name": "scrip_name",
"data_type": "object"
},
{
"col_name": "scrip_code",
"data_type": "object"
}
]
}
28 changes: 28 additions & 0 deletions CONFIG/DATA_CONTRACTS/SOURCE/Holding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"data_schema": [
{
"col_name": "segment",
"data_type": "object"
},
{
"col_name": "exchange",
"data_type": "object"
},
{
"col_name": "symbol",
"data_type": "object"
},
{
"col_name": "min_date",
"data_type": "datetime64[ns]"
},
{
"col_name": "max_date",
"data_type": "datetime64[ns]"
},
{
"col_name": "isin",
"data_type": "object"
}
]
}
Loading

0 comments on commit 47b3ca7

Please sign in to comment.