2
0
Alexey Kim 3 долоо хоног өмнө
parent
commit
07098a6578
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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)