瀏覽代碼

Market

- return pnl
Alexey Kim 3 周之前
父節點
當前提交
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)