forked from tradingbootcamp/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient-message.proto
More file actions
53 lines (51 loc) · 1.14 KB
/
client-message.proto
File metadata and controls
53 lines (51 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
syntax = "proto3";
package websocket_api;
import "make-transfer.proto";
import "create-market.proto";
import "settle-market.proto";
import "create-order.proto";
import "out.proto";
import "redeem.proto";
message ClientMessage {
string request_id = 14;
oneof message {
CreateMarket create_market = 1;
SettleMarket settle_market = 2;
CreateOrder create_order = 3;
CancelOrder cancel_order = 4;
Out out = 5;
MakeTransfer make_transfer = 6;
Authenticate authenticate = 7;
ActAs act_as = 8;
CreateAccount create_account = 9;
ShareOwnership share_ownership = 10;
GetFullOrderHistory get_full_order_history = 11;
GetFullTradeHistory get_full_trade_history = 12;
Redeem redeem = 13;
}
}
message GetFullOrderHistory {
int64 market_id = 1;
}
message GetFullTradeHistory {
int64 market_id = 1;
}
message CancelOrder {
int64 id = 1;
}
message Authenticate {
string jwt = 1;
string id_jwt = 2;
int64 act_as = 4;
}
message ActAs {
int64 account_id = 1;
}
message CreateAccount {
int64 owner_id = 1;
string name = 2;
}
message ShareOwnership {
int64 of_account_id = 1;
int64 to_account_id = 2;
}