Documentation ¶
Index ¶
- type MarketDataService
- type Server
- type TradingService
- func (s *TradingService) CancelOrder(ctx context.Context, request *pb.CancelOrderRequest) (*pb.CancelOrderResponse, error)
- func (s *TradingService) QueryOrder(ctx context.Context, request *pb.QueryOrderRequest) (*pb.QueryOrderResponse, error)
- func (s *TradingService) QueryOrders(ctx context.Context, request *pb.QueryOrdersRequest) (*pb.QueryOrdersResponse, error)
- func (s *TradingService) QueryTrades(ctx context.Context, request *pb.QueryTradesRequest) (*pb.QueryTradesResponse, error)
- func (s *TradingService) SubmitOrder(ctx context.Context, request *pb.SubmitOrderRequest) (*pb.SubmitOrderResponse, error)
- type UserDataService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarketDataService ¶
type MarketDataService struct { Config *bbgo.Config Environ *bbgo.Environment Trader *bbgo.Trader pb.UnimplementedMarketDataServiceServer }
func (*MarketDataService) QueryKLines ¶
func (s *MarketDataService) QueryKLines(ctx context.Context, request *pb.QueryKLinesRequest) (*pb.QueryKLinesResponse, error)
func (*MarketDataService) Subscribe ¶
func (s *MarketDataService) Subscribe(request *pb.SubscribeRequest, server pb.MarketDataService_SubscribeServer) error
type Server ¶
func (*Server) ListenAndServe ¶
type TradingService ¶
type TradingService struct { Config *bbgo.Config Environ *bbgo.Environment Trader *bbgo.Trader pb.UnimplementedTradingServiceServer }
func (*TradingService) CancelOrder ¶
func (s *TradingService) CancelOrder(ctx context.Context, request *pb.CancelOrderRequest) (*pb.CancelOrderResponse, error)
func (*TradingService) QueryOrder ¶
func (s *TradingService) QueryOrder(ctx context.Context, request *pb.QueryOrderRequest) (*pb.QueryOrderResponse, error)
func (*TradingService) QueryOrders ¶
func (s *TradingService) QueryOrders(ctx context.Context, request *pb.QueryOrdersRequest) (*pb.QueryOrdersResponse, error)
func (*TradingService) QueryTrades ¶
func (s *TradingService) QueryTrades(ctx context.Context, request *pb.QueryTradesRequest) (*pb.QueryTradesResponse, error)
func (*TradingService) SubmitOrder ¶
func (s *TradingService) SubmitOrder(ctx context.Context, request *pb.SubmitOrderRequest) (*pb.SubmitOrderResponse, error)
type UserDataService ¶
type UserDataService struct { Config *bbgo.Config Environ *bbgo.Environment Trader *bbgo.Trader pb.UnimplementedUserDataServiceServer }
func (*UserDataService) Subscribe ¶
func (s *UserDataService) Subscribe(request *pb.UserDataRequest, server pb.UserDataService_SubscribeServer) error
Click to show internal directories.
Click to hide internal directories.