Parcourir la source

Market

- return pnl
Alexey Kim il y a 3 semaines
Parent
commit
07098a6578
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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)