Alexey Kim 6 hónapja
szülő
commit
834c7f042a
2 módosított fájl, 4 hozzáadás és 0 törlés
  1. 1 0
      .gitignore
  2. 3 0
      portfolio.go

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
 .idea
+.env

+ 3 - 0
portfolio.go

@@ -3,4 +3,7 @@ package sentio
 type Portfolio interface {
 	// Get returns Position of the symbol if exists in Portfolio
 	Get(symbol string) (Position, bool)
+
+	// Positions returns each Position we have in Portfolio
+	Positions() []Position
 }