Merge SuccessResponse and SubscribeResponse

This commit is contained in:
なるみ 2022-02-23 12:21:49 +08:00
parent 9fd4074d37
commit 6b10d1160f
2 changed files with 412 additions and 460 deletions

File diff suppressed because it is too large Load Diff

View File

@ -29,10 +29,6 @@ message Subscription {
} }
message SubscribeResponse { message SubscribeResponse {
repeated SuccessResponse success_responses = 1;
}
message SuccessResponse {
string exchange = 1; string exchange = 1;
string channel = 2; // book, trade, ticker, user string channel = 2; // book, trade, ticker, user
string event = 3; // snapshot, update, order_snapshot, ... string event = 3; // snapshot, update, order_snapshot, ...
@ -42,7 +38,9 @@ message SuccessResponse {
Ticker ticker = 7; Ticker ticker = 7;
repeated Order orders = 8; repeated Order orders = 8;
repeated Balance balances = 9; repeated Balance balances = 9;
int64 created_at = 10; int64 subscribed_at = 10;
int64 error_code = 11;
string error_message = 12;
} }
message Depth { message Depth {