You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
486 B
24 lines
486 B
syntax = "proto3"; |
|
|
|
import "api/pub.proto"; |
|
|
|
option go_package = "./pb"; |
|
|
|
service TradingService { |
|
rpc SubIndicator(IndicatorSubReq) returns (stream Indicator); // 订阅指标 |
|
} |
|
|
|
message IndicatorSubReq { |
|
string topic = 1; |
|
string instId = 2; |
|
int32 window = 3; |
|
} |
|
|
|
message Indicator { |
|
ExchangeType exhcange = 1; |
|
string instId = 2; |
|
string indicator = 3; |
|
string sub = 4; // 指标子标题, MA5, MA10, MA20 |
|
int64 Ts = 5; |
|
bytes payload = 8; |
|
}
|
|
|