2
0
Pārlūkot izejas kodu

Market

- return pnl
Alexey Kim 3 nedēļas atpakaļ
vecāks
revīzija
07098a6578
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      market.go

+ 2 - 2
market.go

@@ -17,8 +17,8 @@ type Market interface {
 	IsMarketOpened() bool
 	Time() Clock
 
-	Buy(ctx context.Context, symbol string, ratio float64) (Order, error)
-	Sell(ctx context.Context, symbol string, ratio float64) (Order, error)
+	Buy(ctx context.Context, symbol string, ratio float64) (float64, Order, error)
+	Sell(ctx context.Context, symbol string, ratio float64) (float64, Order, error)
 	CancelOrder(id string) error
 
 	Orders() ([]Order, error)