Browse Source

Market

- refactoring: `Cash() (float64, error)`
- add: Equity() (float64, error)
Alexey Kim 1 month ago
parent
commit
0d44308ecb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      market.go

+ 2 - 1
market.go

@@ -28,6 +28,7 @@ type Market interface {
 	Orders() ([]Order, error)
 	Orders() ([]Order, error)
 	Portfolio() (Portfolio, error)
 	Portfolio() (Portfolio, error)
 
 
-	AvailableCash() (float64, error)
+	Cash() (float64, error)
+	Equity() (float64, error)
 	MaxBudget() float64
 	MaxBudget() float64
 }
 }