File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ [PortfolioEntry|id: int;symbol: string;name: string;portfolio_id: int]
2
+ [MarketOrder|id: int;filledPrice: decimal;fee: decimal;size: decimal,date: datetime;buy: bool;portfolio_entry_id: int]
3
+ [Portfolio|id: int; name: string;description: string;currencyCode: int]
4
+
5
+ [Portfolio]<>-0..*>[PortfolioEntry]
6
+ [PortfolioEntry]<>-0..*>[MarketOrder]
7
+
8
+ [PortfolioRepository]
9
+ [PortfolioEntryRepository]
10
+ [MarketOrderRepository]
11
+
12
+ [PortfolioRepository] -> [Portfolio]
13
+ [PortfolioEntryRepository] -> [PortfolioEntry]
14
+ [MarketOrderRepository] -> [MarketOrder]
15
+
16
+ [PortfolioService|createPortfolio();updatePortfolio();deletePortfolio();getPortfolio();getAllPortfolios()]
17
+
18
+ [PortfolioEntryService|addEntryTo(entry;portfolio_id: int); updateEntry(entry);deleteEntry(entry);getPortfolioEntries(portfolio_id: int)]
19
+
20
+ [MarketOrderService|addOrder(order, portfolio_entry_id: int);updateOrder(order);deleteOrder(order);getAllPortfolioEntryOrders(portfolio_entry_id: int)]
21
+
22
+ [SummaryService|getMarketEntrySummary(market_entry_id: int);getPortfolioEntrySummary(portfolio_entry_summary: int);getPortfolioSummary(portfolio_id: int)]
23
+
24
+
25
+ [CryptoStatsSource|getMarketEntries(currency, ids)]
26
+
27
+ [PortfolioService] -> [PortfolioRepository]
28
+ [PortfolioEntryService] -> [PortfolioEntryRepository]
29
+ [MarketOrderService] -> [MarketOrderRepository]
30
+
31
+ [SummaryService] -> [MarketOrderService]
32
+ [SummaryService] -> [PortfolioEntryService]
33
+ [SummaryService] -> [CryptoStatsSource]
34
+
35
+
36
+
You can’t perform that action at this time.
0 commit comments