mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 17:25:16 +00:00
23 lines
372 B
Go
23 lines
372 B
Go
package grpc
|
|
|
|
import (
|
|
"github.com/c9s/bbgo/pkg/bbgo"
|
|
"github.com/c9s/bbgo/pkg/pb"
|
|
)
|
|
|
|
import "google.golang.org/grpc"
|
|
|
|
|
|
type Server struct {
|
|
Config *bbgo.Config
|
|
Environ *bbgo.Environment
|
|
Trader *bbgo.Trader
|
|
}
|
|
|
|
func (s *Server) Run(bind string) error {
|
|
var grpcServer = grpc.NewServer()
|
|
_ = grpcServer
|
|
_ = pb.QueryTradesResponse{}
|
|
return nil
|
|
}
|