Parcourir la source

Market

- refactoring LatestBar(symbol string) (*Bar, error)
Alexey Kim il y a 1 mois
Parent
commit
eec3ca0f16
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      market.go

+ 1 - 1
market.go

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