-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathclient-message.proto
More file actions
88 lines (86 loc) · 2.25 KB
/
client-message.proto
File metadata and controls
88 lines (86 loc) · 2.25 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
syntax = "proto3";
package websocket_api;
import "make-transfer.proto";
import "create-market.proto";
import "create-universe.proto";
import "create-market-type.proto";
import "delete-market-type.proto";
import "create-market-group.proto";
import "create-auction.proto";
import "settle-market.proto";
import "edit-market.proto";
import "settle-auction.proto";
import "edit-auction.proto";
import "create-order.proto";
import "out.proto";
import "redeem.proto";
import "buy-auction.proto";
message ClientMessage {
reserved 24;
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;
CreateAuction create_auction = 15;
SettleAuction settle_auction = 16;
DeleteAuction delete_auction = 17;
EditMarket edit_market = 18;
EditAuction edit_auction = 25;
RevokeOwnership revoke_ownership = 19;
BuyAuction buy_auction = 20;
CreateMarketType create_market_type = 21;
DeleteMarketType delete_market_type = 22;
CreateMarketGroup create_market_group = 23;
SetSudo set_sudo = 26;
CreateUniverse create_universe = 27;
}
}
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;
int64 universe_id = 3; // Which universe (default 0)
double initial_balance = 4; // Optional starting clips
optional string color = 5; // Optional account color in #RRGGBB format
}
message ShareOwnership {
int64 of_account_id = 1;
int64 to_account_id = 2;
}
message RevokeOwnership {
int64 of_account_id = 1;
int64 from_account_id = 2;
}
message DeleteAuction {
int64 auction_id = 1;
}
message SetSudo {
bool enabled = 1;
}