2
0
Quellcode durchsuchen

Market

- return pnl
Alexey Kim vor 3 Wochen
Ursprung
Commit
07098a6578
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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)