mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
Add Error message
This commit is contained in:
parent
3aeae99587
commit
37fbe724cf
File diff suppressed because it is too large
Load Diff
|
@ -20,6 +20,11 @@ service BBGO {
|
||||||
|
|
||||||
message Empty {}
|
message Empty {}
|
||||||
|
|
||||||
|
message Error {
|
||||||
|
int64 error_code = 1;
|
||||||
|
string error_message = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message SubscribeRequest {
|
message SubscribeRequest {
|
||||||
repeated Subscription subscriptions = 1;
|
repeated Subscription subscriptions = 1;
|
||||||
}
|
}
|
||||||
|
@ -42,8 +47,7 @@ message SubscribeResponse {
|
||||||
repeated Order orders = 8;
|
repeated Order orders = 8;
|
||||||
repeated Balance balances = 9;
|
repeated Balance balances = 9;
|
||||||
int64 subscribed_at = 10;
|
int64 subscribed_at = 10;
|
||||||
int64 error_code = 11;
|
Error error = 11;
|
||||||
string error_message = 12;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message Depth {
|
message Depth {
|
||||||
|
@ -130,8 +134,8 @@ message SubmitOrderRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message SubmitOrderResponse {
|
message SubmitOrderResponse {
|
||||||
string exchange = 1;
|
Order order = 1;
|
||||||
Order order = 2;
|
Error error = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CancelOrderRequest {
|
message CancelOrderRequest {
|
||||||
|
@ -141,9 +145,8 @@ message CancelOrderRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message CancelOrderResponse {
|
message CancelOrderResponse {
|
||||||
string exchange = 1;
|
Order order = 1;
|
||||||
Order order = 2;
|
Error error = 2;
|
||||||
int64 status_code = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message QueryOrderRequest {
|
message QueryOrderRequest {
|
||||||
|
@ -153,7 +156,7 @@ message QueryOrderRequest {
|
||||||
|
|
||||||
message QueryOrderResponse {
|
message QueryOrderResponse {
|
||||||
Order order = 1;
|
Order order = 1;
|
||||||
int64 status_code = 2;
|
Error error = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message QueryOrdersRequest {
|
message QueryOrdersRequest {
|
||||||
|
@ -169,9 +172,8 @@ message QueryOrdersRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
message QueryOrdersResponse {
|
message QueryOrdersResponse {
|
||||||
string exchange = 1;
|
repeated Order orders = 1;
|
||||||
repeated Order orders = 2;
|
Error error = 2;
|
||||||
int64 status_code = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message QueryTradesRequest {
|
message QueryTradesRequest {
|
||||||
|
@ -189,7 +191,7 @@ message QueryTradesRequest {
|
||||||
|
|
||||||
message QueryTradesResponse {
|
message QueryTradesResponse {
|
||||||
repeated Trade trades = 1;
|
repeated Trade trades = 1;
|
||||||
int64 status_code = 2;
|
Error error = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message QueryKLinesRequest {
|
message QueryKLinesRequest {
|
||||||
|
@ -202,7 +204,7 @@ message QueryKLinesRequest {
|
||||||
|
|
||||||
message QueryKLinesResponse {
|
message QueryKLinesResponse {
|
||||||
repeated KLine klines = 1;
|
repeated KLine klines = 1;
|
||||||
int64 status_code = 2;
|
Error error = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message KLine {
|
message KLine {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user