Browse Source

Refactoring

Alexey Kim 6 months ago
parent
commit
834c7f042a
2 changed files with 4 additions and 0 deletions
  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
 }