-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathserver-message.proto
More file actions
101 lines (99 loc) · 2.51 KB
/
server-message.proto
File metadata and controls
101 lines (99 loc) · 2.51 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
89
90
91
92
93
94
95
96
97
98
99
100
101
syntax = "proto3";
package websocket_api;
import "portfolio.proto";
import "market.proto";
import "market-type.proto";
import "market-group.proto";
import "market-settled.proto";
import "orders-cancelled.proto";
import "order-created.proto";
import "transfer.proto";
import "request-failed.proto";
import "out.proto";
import "account.proto";
import "redeem.proto";
import "orders.proto";
import "trades.proto";
import "auction.proto";
import "auction-settled.proto";
import "universe.proto";
import "exercise-option.proto";
import "option-contract.proto";
message ServerMessage {
reserved 31;
string request_id = 19;
oneof message {
Portfolio portfolio_updated = 1;
Portfolios portfolios = 2;
Market market = 3;
MarketSettled market_settled = 4;
OrderCreated order_created = 5;
OrdersCancelled orders_cancelled = 6;
Transfers transfers = 7;
Transfer transfer_created = 8;
Out out = 9;
Authenticated authenticated = 10;
RequestFailed request_failed = 11;
Account account_created = 12;
Accounts accounts = 13;
ActingAs acting_as = 14;
OwnershipGiven ownership_given = 17;
Redeemed redeemed = 18;
Orders orders = 20;
Trades trades = 21;
Auction auction = 22;
AuctionSettled auction_settled = 23;
AuctionDeleted auction_deleted = 24;
OwnershipRevoked ownership_revoked = 25;
MarketType market_type = 26;
MarketTypes market_types = 27;
MarketTypeDeleted market_type_deleted = 28;
MarketGroup market_group = 29;
MarketGroups market_groups = 30;
SudoStatus sudo_status = 32;
Universe universe = 33;
Universes universes = 34;
OwnerCreditRedistributed owner_credit_redistributed = 35;
OptionExercised option_exercised = 36;
OptionContracts option_contracts = 37;
}
}
message MarketTypeDeleted {
int64 market_type_id = 1;
}
message Authenticated {
int64 account_id = 1;
}
message ActingAs {
int64 account_id = 1;
int64 universe_id = 2;
int64 user_id = 3;
}
message Portfolios {
repeated Portfolio portfolios = 1;
bool are_new_ownerships = 2;
}
message OwnershipGiven {}
message Transfers {
repeated Transfer transfers = 1;
}
message Accounts {
repeated Account accounts = 1;
}
message AuctionDeleted {
int64 auction_id = 1;
}
message OwnershipRevoked {}
message MarketTypes {
repeated MarketType market_types = 1;
}
message MarketGroups {
repeated MarketGroup market_groups = 1;
}
message SudoStatus {
bool enabled = 1;
}
message Universes {
repeated Universe universes = 1;
}
message OwnerCreditRedistributed {}