瀏覽代碼

Market

- refactoring LatestBar(symbol string) (*Bar, error)
Alexey Kim 9 月之前
父節點
當前提交
eec3ca0f16
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      market.go

+ 1 - 1
market.go

@@ -19,7 +19,7 @@ type Market interface {
 	IsMarketOpened() bool
 	IsMarketOpened() bool
 	Time() Clock
 	Time() Clock
 
 
-	LatestBar(symbol string) (Bar, error)
+	LatestBar(symbol string) (*Bar, error)
 
 
 	Buy(ctx context.Context, symbol string, ratio float64) (Order, error)
 	Buy(ctx context.Context, symbol string, ratio float64) (Order, error)
 	Sell(ctx context.Context, symbol string, ratio float64) (Order, error)
 	Sell(ctx context.Context, symbol string, ratio float64) (Order, error)