2
0
Эх сурвалжийг харах

Market

- refactoring: `Cash() (float64, error)`
- add: Equity() (float64, error)
Alexey Kim 1 сар өмнө
parent
commit
0d44308ecb
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      market.go

+ 2 - 1
market.go

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