mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
grpc: register trading service to grpc
This commit is contained in:
parent
cb51352d58
commit
d78370e355
|
@ -333,6 +333,12 @@ func (s *Server) ListenAndServe(bind string) error {
|
|||
Trader: s.Trader,
|
||||
})
|
||||
|
||||
pb.RegisterTradingServiceServer(grpcServer, &TradingService{
|
||||
Config: s.Config,
|
||||
Environ: s.Environ,
|
||||
Trader: s.Trader,
|
||||
})
|
||||
|
||||
pb.RegisterUserDataServiceServer(grpcServer, &UserDataService{
|
||||
Config: s.Config,
|
||||
Environ: s.Environ,
|
||||
|
|
Loading…
Reference in New Issue
Block a user