mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-23 23:35:14 +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
|
|
}
|