Alexey Kim преди 6 месеца
родител
ревизия
b6f0c99eb1
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      market.go

+ 2 - 2
market.go

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