@usherlabs/cex-broker 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/cli.js +169 -19
- package/dist/helpers/constants.d.ts +5 -2
- package/dist/index.js +170 -20
- package/dist/index.js.map +8 -5
- package/dist/proto/node.descriptor.d.ts +125 -0
- package/dist/proto-loader-options.d.ts +7 -0
- package/dist/proto-package-definition.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
declare const descriptor: {
|
|
2
|
+
readonly nested: {
|
|
3
|
+
readonly cex_broker: {
|
|
4
|
+
readonly nested: {
|
|
5
|
+
readonly ActionRequest: {
|
|
6
|
+
readonly fields: {
|
|
7
|
+
readonly action: {
|
|
8
|
+
readonly type: "Action";
|
|
9
|
+
readonly id: 1;
|
|
10
|
+
};
|
|
11
|
+
readonly payload: {
|
|
12
|
+
readonly keyType: "string";
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly id: 2;
|
|
15
|
+
};
|
|
16
|
+
readonly cex: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly id: 3;
|
|
19
|
+
};
|
|
20
|
+
readonly symbol: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly id: 4;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly ActionResponse: {
|
|
27
|
+
readonly fields: {
|
|
28
|
+
readonly result: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly id: 1;
|
|
31
|
+
};
|
|
32
|
+
readonly proof: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly id: 2;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly SubscribeRequest: {
|
|
39
|
+
readonly fields: {
|
|
40
|
+
readonly cex: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
readonly id: 1;
|
|
43
|
+
};
|
|
44
|
+
readonly symbol: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
readonly id: 2;
|
|
47
|
+
};
|
|
48
|
+
readonly type: {
|
|
49
|
+
readonly type: "SubscriptionType";
|
|
50
|
+
readonly id: 3;
|
|
51
|
+
};
|
|
52
|
+
readonly options: {
|
|
53
|
+
readonly keyType: "string";
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
readonly id: 4;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly SubscribeResponse: {
|
|
60
|
+
readonly fields: {
|
|
61
|
+
readonly data: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly id: 1;
|
|
64
|
+
};
|
|
65
|
+
readonly timestamp: {
|
|
66
|
+
readonly type: "int64";
|
|
67
|
+
readonly id: 2;
|
|
68
|
+
};
|
|
69
|
+
readonly symbol: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly id: 3;
|
|
72
|
+
};
|
|
73
|
+
readonly type: {
|
|
74
|
+
readonly type: "SubscriptionType";
|
|
75
|
+
readonly id: 4;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly SubscriptionType: {
|
|
80
|
+
readonly values: {
|
|
81
|
+
readonly NO_ACTION: 0;
|
|
82
|
+
readonly ORDERBOOK: 1;
|
|
83
|
+
readonly TRADES: 2;
|
|
84
|
+
readonly TICKER: 3;
|
|
85
|
+
readonly OHLCV: 4;
|
|
86
|
+
readonly BALANCE: 5;
|
|
87
|
+
readonly ORDERS: 6;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly cex_service: {
|
|
91
|
+
readonly methods: {
|
|
92
|
+
readonly ExecuteAction: {
|
|
93
|
+
readonly requestType: "ActionRequest";
|
|
94
|
+
readonly responseType: "ActionResponse";
|
|
95
|
+
};
|
|
96
|
+
readonly Subscribe: {
|
|
97
|
+
readonly requestType: "SubscribeRequest";
|
|
98
|
+
readonly responseType: "SubscribeResponse";
|
|
99
|
+
readonly responseStream: true;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly Action: {
|
|
104
|
+
readonly values: {
|
|
105
|
+
readonly NoAction: 0;
|
|
106
|
+
readonly Deposit: 1;
|
|
107
|
+
readonly Withdraw: 2;
|
|
108
|
+
readonly CreateOrder: 3;
|
|
109
|
+
readonly GetOrderDetails: 4;
|
|
110
|
+
readonly CancelOrder: 5;
|
|
111
|
+
readonly FetchBalances: 6;
|
|
112
|
+
readonly FetchDepositAddresses: 7;
|
|
113
|
+
readonly FetchTicker: 8;
|
|
114
|
+
readonly FetchCurrency: 9;
|
|
115
|
+
readonly Call: 10;
|
|
116
|
+
readonly FetchAccountId: 11;
|
|
117
|
+
readonly FetchFees: 12;
|
|
118
|
+
readonly InternalTransfer: 13;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export default descriptor;
|