Add SubcribeUserData

This commit is contained in:
なるみ 2022-02-23 12:29:01 +08:00
parent 36fd5d648a
commit 3aeae99587

View File

@ -7,6 +7,7 @@ option go_package = "../pb";
service BBGO { service BBGO {
// should support streaming // should support streaming
rpc Subcribe(SubscribeRequest) returns (stream SubscribeResponse) {} rpc Subcribe(SubscribeRequest) returns (stream SubscribeResponse) {}
rpc SubcribeUserData(Empty) returns (stream SubscribeResponse) {}
// request-response // request-response
rpc SubmitOrder(SubmitOrderRequest) returns (SubmitOrderResponse) {} rpc SubmitOrder(SubmitOrderRequest) returns (SubmitOrderResponse) {}
@ -17,6 +18,8 @@ service BBGO {
rpc QueryKLines(QueryKLinesRequest) returns (QueryKLinesResponse) {} rpc QueryKLines(QueryKLinesRequest) returns (QueryKLinesResponse) {}
} }
message Empty {}
message SubscribeRequest { message SubscribeRequest {
repeated Subscription subscriptions = 1; repeated Subscription subscriptions = 1;
} }