-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐๏ธ update position data structure (#102)
๐๏ธ update position data structure chore: release version 0.9.5 --- <details open><summary>Generated summary (powered by <a href="https://app.graphite.dev">Graphite</a>)</summary> > ## TL;DR > This pull request updates the version of the `pyrb` package to `0.9.5`, introduces new asset class enums, refactors the `Position` model to include an `Asset` object, and updates related code to reflect these changes. > > ## What changed > - Updated the version of the `pyrb` package to `0.9.5` in `pyproject.toml`. > - Added new asset class enums (`STOCK`, `BOND`, `CASH`, `COMMODITY`, `OTHER`) in `enums.py`. > - Refactored the `Position` model to include an `Asset` object with `symbol` and `label` fields. > - Updated code in various files to use the new `Asset` object instead of directly accessing the `symbol` field. > > ## How to test > 1. Update the `pyrb` package to version `0.9.5`. > 2. Check the new asset class enums (`STOCK`, `BOND`, `CASH`, `COMMODITY`, `OTHER`) in `enums.py`. > 3. Verify that the `Position` model now includes an `Asset` object with `symbol` and `label` fields. > 4. Test related code changes in `controllers/cli/main.py`, `repositories/brokerages/ebest/portfolio.py`, `tests/conftest.py`, and `tests/controllers/test_api.py`. > > ## Why make this change > - Introduces a more structured approach to handling asset classes in the `pyrb` package. > - Enhances the readability and maintainability of the code by using an `Asset` object in the `Position` model. > - Aligns the codebase with best practices for modeling financial assets and positions. </details>
- Loading branch information
Showing
7 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pyrb" | ||
version = "0.9.4" | ||
version = "0.9.5" | ||
description = "Python Rebalancer" | ||
authors = ["Minki Kim <[email protected]>"] | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters