Skip to content

Commit ecc663b

Browse files
committed
Added WIP definition of ISummaryService
1 parent 9ab5772 commit ecc663b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Services/Services/SummaryService.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using Model;
2+
3+
namespace Services
4+
{
5+
public interface ISummaryService
6+
{
7+
public record Summary(decimal AbsoluteProfit, decimal RelativeProfit, decimal MarketValue);
8+
9+
public Summary GetMarketOrderSummary(MarketOrder order, decimal assetPrice);
10+
11+
public Summary GetPortfolioEntrySummary(PortfolioEntry entry, decimal assetPrice);
12+
13+
public Summary GetPortfolioSummary(Portfolio entry, decimal assetPrice);
14+
}
15+
16+
public class SummaryServiceImpl
17+
{
18+
19+
}
20+
}

0 commit comments

Comments
 (0)