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 {
// should support streaming
rpc Subcribe(SubscribeRequest) returns (stream SubscribeResponse) {}
rpc SubcribeUserData(Empty) returns (stream SubscribeResponse) {}
// request-response
rpc SubmitOrder(SubmitOrderRequest) returns (SubmitOrderResponse) {}
@ -17,6 +18,8 @@ service BBGO {
rpc QueryKLines(QueryKLinesRequest) returns (QueryKLinesResponse) {}
}
message Empty {}
message SubscribeRequest {
repeated Subscription subscriptions = 1;
}