Skip to content

Commit 38e2f29

Browse files
eyo-chenEyo Chen
andauthored
Feat: update create stock logic usecase (#16)
* feat: update create stock logic in usecase * test: add unit testing --------- Co-authored-by: Eyo Chen <[email protected]>
1 parent a4b0af0 commit 38e2f29

File tree

4 files changed

+433
-57
lines changed

4 files changed

+433
-57
lines changed

src/adapters/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ class AbstractPortfolioRepository(ABC):
1919
@abstractmethod
2020
def update(self, portfolio: Portfolio) -> None:
2121
"""Update portfolio in the repository"""
22+
23+
@abstractmethod
24+
def get(self, user_id: int) -> Portfolio:
25+
"""Get Portfolio"""

0 commit comments

Comments
 (0)