mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +00:00
Add SubcribeUserData
This commit is contained in:
parent
36fd5d648a
commit
3aeae99587
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user