@injectivelabs/indexer-proto-ts-v2 1.0.0
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/generated/event_provider_api_pb.client.d.ts +156 -0
- package/generated/event_provider_api_pb.client.js +76 -0
- package/generated/event_provider_api_pb.d.ts +1980 -0
- package/generated/event_provider_api_pb.js +1776 -0
- package/generated/health_pb.client.d.ts +53 -0
- package/generated/health_pb.client.js +22 -0
- package/generated/health_pb.d.ts +309 -0
- package/generated/health_pb.js +265 -0
- package/generated/injective_accounts_rpc_pb.client.d.ts +211 -0
- package/generated/injective_accounts_rpc_pb.client.js +105 -0
- package/generated/injective_accounts_rpc_pb.d.ts +5307 -0
- package/generated/injective_accounts_rpc_pb.js +4784 -0
- package/generated/injective_archiver_rpc_pb.client.d.ts +224 -0
- package/generated/injective_archiver_rpc_pb.client.js +112 -0
- package/generated/injective_archiver_rpc_pb.d.ts +2944 -0
- package/generated/injective_archiver_rpc_pb.js +2603 -0
- package/generated/injective_auction_rpc_pb.client.d.ts +190 -0
- package/generated/injective_auction_rpc_pb.client.js +94 -0
- package/generated/injective_auction_rpc_pb.d.ts +2131 -0
- package/generated/injective_auction_rpc_pb.js +1917 -0
- package/generated/injective_campaign_rpc_pb.client.d.ts +138 -0
- package/generated/injective_campaign_rpc_pb.client.js +67 -0
- package/generated/injective_campaign_rpc_pb.d.ts +2766 -0
- package/generated/injective_campaign_rpc_pb.js +2542 -0
- package/generated/injective_chart_rpc_pb.client.d.ts +159 -0
- package/generated/injective_chart_rpc_pb.client.js +78 -0
- package/generated/injective_chart_rpc_pb.d.ts +1840 -0
- package/generated/injective_chart_rpc_pb.js +1690 -0
- package/generated/injective_derivative_exchange_rpc_pb.client.d.ts +504 -0
- package/generated/injective_derivative_exchange_rpc_pb.client.js +259 -0
- package/generated/injective_derivative_exchange_rpc_pb.d.ts +9214 -0
- package/generated/injective_derivative_exchange_rpc_pb.js +8407 -0
- package/generated/injective_exchange_rpc_pb.client.d.ts +155 -0
- package/generated/injective_exchange_rpc_pb.client.js +76 -0
- package/generated/injective_exchange_rpc_pb.d.ts +1925 -0
- package/generated/injective_exchange_rpc_pb.js +1740 -0
- package/generated/injective_explorer_rpc_pb.client.d.ts +495 -0
- package/generated/injective_explorer_rpc_pb.client.js +255 -0
- package/generated/injective_explorer_rpc_pb.d.ts +9394 -0
- package/generated/injective_explorer_rpc_pb.js +8921 -0
- package/generated/injective_insurance_rpc_pb.client.d.ts +87 -0
- package/generated/injective_insurance_rpc_pb.client.js +40 -0
- package/generated/injective_insurance_rpc_pb.d.ts +904 -0
- package/generated/injective_insurance_rpc_pb.js +807 -0
- package/generated/injective_megavault_rpc_pb.client.d.ts +155 -0
- package/generated/injective_megavault_rpc_pb.client.js +76 -0
- package/generated/injective_megavault_rpc_pb.d.ts +3408 -0
- package/generated/injective_megavault_rpc_pb.js +3019 -0
- package/generated/injective_meta_rpc_pb.client.d.ts +124 -0
- package/generated/injective_meta_rpc_pb.client.js +59 -0
- package/generated/injective_meta_rpc_pb.d.ts +825 -0
- package/generated/injective_meta_rpc_pb.js +716 -0
- package/generated/injective_oracle_rpc_pb.client.d.ts +124 -0
- package/generated/injective_oracle_rpc_pb.client.js +59 -0
- package/generated/injective_oracle_rpc_pb.d.ts +1117 -0
- package/generated/injective_oracle_rpc_pb.js +987 -0
- package/generated/injective_portfolio_rpc_pb.client.d.ts +105 -0
- package/generated/injective_portfolio_rpc_pb.client.js +49 -0
- package/generated/injective_portfolio_rpc_pb.d.ts +1492 -0
- package/generated/injective_portfolio_rpc_pb.js +1314 -0
- package/generated/injective_referral_rpc_pb.client.d.ts +89 -0
- package/generated/injective_referral_rpc_pb.client.js +41 -0
- package/generated/injective_referral_rpc_pb.d.ts +575 -0
- package/generated/injective_referral_rpc_pb.js +497 -0
- package/generated/injective_rfqrpc_pb.client.d.ts +208 -0
- package/generated/injective_rfqrpc_pb.client.js +103 -0
- package/generated/injective_rfqrpc_pb.d.ts +2241 -0
- package/generated/injective_rfqrpc_pb.js +1940 -0
- package/generated/injective_spot_exchange_rpc_pb.client.d.ts +343 -0
- package/generated/injective_spot_exchange_rpc_pb.client.js +175 -0
- package/generated/injective_spot_exchange_rpc_pb.d.ts +5958 -0
- package/generated/injective_spot_exchange_rpc_pb.js +5426 -0
- package/generated/injective_trading_rpc_pb.client.d.ts +90 -0
- package/generated/injective_trading_rpc_pb.client.js +40 -0
- package/generated/injective_trading_rpc_pb.d.ts +1882 -0
- package/generated/injective_trading_rpc_pb.js +1754 -0
- package/index.d.ts +43 -0
- package/index.js +78 -0
- package/package.json +37 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { InjectiveDerivativeExchangeRPC } from "./injective_derivative_exchange_rpc_pb.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
class InjectiveDerivativeExchangeRPCClient {
|
|
4
|
+
constructor(_transport) {
|
|
5
|
+
this._transport = _transport;
|
|
6
|
+
this.typeName = InjectiveDerivativeExchangeRPC.typeName;
|
|
7
|
+
this.methods = InjectiveDerivativeExchangeRPC.methods;
|
|
8
|
+
this.options = InjectiveDerivativeExchangeRPC.options;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Markets gets a list of Derivative Markets
|
|
12
|
+
*
|
|
13
|
+
* @generated from protobuf rpc: Markets
|
|
14
|
+
*/
|
|
15
|
+
markets(input, options) {
|
|
16
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
17
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Market gets details of a single derivative market
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf rpc: Market
|
|
23
|
+
*/
|
|
24
|
+
market(input, options) {
|
|
25
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
26
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* StreamMarket streams live updates of selected derivative markets
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf rpc: StreamMarket
|
|
32
|
+
*/
|
|
33
|
+
streamMarket(input, options) {
|
|
34
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
35
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* BinaryOptionsMarkets gets a list of Binary Options Markets
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf rpc: BinaryOptionsMarkets
|
|
41
|
+
*/
|
|
42
|
+
binaryOptionsMarkets(input, options) {
|
|
43
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
44
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* BinaryOptionMarket gets details of a single binary options market
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf rpc: BinaryOptionsMarket
|
|
50
|
+
*/
|
|
51
|
+
binaryOptionsMarket(input, options) {
|
|
52
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
53
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Orderbook gets the Orderbook of a Derivative Market
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf rpc: OrderbookV2
|
|
59
|
+
*/
|
|
60
|
+
orderbookV2(input, options) {
|
|
61
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
62
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Orderbooks gets the Orderbooks of requested derivative markets
|
|
66
|
+
*
|
|
67
|
+
* @generated from protobuf rpc: OrderbooksV2
|
|
68
|
+
*/
|
|
69
|
+
orderbooksV2(input, options) {
|
|
70
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
71
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Stream live snapshot updates of selected derivative market orderbook
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf rpc: StreamOrderbookV2
|
|
77
|
+
*/
|
|
78
|
+
streamOrderbookV2(input, options) {
|
|
79
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
80
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Stream live level updates of selected derivative market orderbook
|
|
84
|
+
*
|
|
85
|
+
* @generated from protobuf rpc: StreamOrderbookUpdate
|
|
86
|
+
*/
|
|
87
|
+
streamOrderbookUpdate(input, options) {
|
|
88
|
+
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
89
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* DerivativeLimitOrders gets the limit orders of a derivative Market.
|
|
93
|
+
*
|
|
94
|
+
* @generated from protobuf rpc: Orders
|
|
95
|
+
*/
|
|
96
|
+
orders(input, options) {
|
|
97
|
+
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
98
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Positions gets the positions for a trader.
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf rpc: Positions
|
|
104
|
+
*/
|
|
105
|
+
positions(input, options) {
|
|
106
|
+
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
107
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Positions gets the positions for a trader. V2 removed some redundant fields
|
|
111
|
+
* and had performance improvements
|
|
112
|
+
*
|
|
113
|
+
* @generated from protobuf rpc: PositionsV2
|
|
114
|
+
*/
|
|
115
|
+
positionsV2(input, options) {
|
|
116
|
+
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
117
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* LiquidablePositions gets all the liquidable positions.
|
|
121
|
+
*
|
|
122
|
+
* @generated from protobuf rpc: LiquidablePositions
|
|
123
|
+
*/
|
|
124
|
+
liquidablePositions(input, options) {
|
|
125
|
+
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
126
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* FundingPayments gets the funding payments for a trader.
|
|
130
|
+
*
|
|
131
|
+
* @generated from protobuf rpc: FundingPayments
|
|
132
|
+
*/
|
|
133
|
+
fundingPayments(input, options) {
|
|
134
|
+
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
135
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* FundingRates gets the historical funding rates for a market.
|
|
139
|
+
*
|
|
140
|
+
* @generated from protobuf rpc: FundingRates
|
|
141
|
+
*/
|
|
142
|
+
fundingRates(input, options) {
|
|
143
|
+
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
144
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* StreamPositions streams derivatives position updates. This is the legacy
|
|
148
|
+
* version of the streamPositionsV2 endpoint. Use streamPositionsV2 instead.
|
|
149
|
+
*
|
|
150
|
+
* @generated from protobuf rpc: StreamPositions
|
|
151
|
+
*/
|
|
152
|
+
streamPositions(input, options) {
|
|
153
|
+
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
154
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* StreamPositionsV2 streams derivatives position updates.
|
|
158
|
+
*
|
|
159
|
+
* @generated from protobuf rpc: StreamPositionsV2
|
|
160
|
+
*/
|
|
161
|
+
streamPositionsV2(input, options) {
|
|
162
|
+
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
163
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* StreamOrders streams updates to individual orders of a Derivative Market.
|
|
167
|
+
*
|
|
168
|
+
* @generated from protobuf rpc: StreamOrders
|
|
169
|
+
*/
|
|
170
|
+
streamOrders(input, options) {
|
|
171
|
+
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
172
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Trades gets the trades of a Derivative Market.
|
|
176
|
+
*
|
|
177
|
+
* @generated from protobuf rpc: Trades
|
|
178
|
+
*/
|
|
179
|
+
trades(input, options) {
|
|
180
|
+
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
181
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Trades gets the trades of a Derivative Market.
|
|
185
|
+
*
|
|
186
|
+
* @generated from protobuf rpc: TradesV2
|
|
187
|
+
*/
|
|
188
|
+
tradesV2(input, options) {
|
|
189
|
+
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
|
190
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* StreamTrades streams newly executed trades from Derivative Market.
|
|
194
|
+
*
|
|
195
|
+
* @generated from protobuf rpc: StreamTrades
|
|
196
|
+
*/
|
|
197
|
+
streamTrades(input, options) {
|
|
198
|
+
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
|
199
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* StreamTrades streams newly executed trades from Derivative Market.
|
|
203
|
+
*
|
|
204
|
+
* @generated from protobuf rpc: StreamTradesV2
|
|
205
|
+
*/
|
|
206
|
+
streamTradesV2(input, options) {
|
|
207
|
+
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
|
208
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* SubaccountOrdersList lists orders posted from this subaccount.
|
|
212
|
+
*
|
|
213
|
+
* @generated from protobuf rpc: SubaccountOrdersList
|
|
214
|
+
*/
|
|
215
|
+
subaccountOrdersList(input, options) {
|
|
216
|
+
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
|
217
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* SubaccountTradesList gets a list of derivatives trades executed by this
|
|
221
|
+
* subaccount.
|
|
222
|
+
*
|
|
223
|
+
* @generated from protobuf rpc: SubaccountTradesList
|
|
224
|
+
*/
|
|
225
|
+
subaccountTradesList(input, options) {
|
|
226
|
+
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
|
227
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Lists history orders posted from a subaccount
|
|
231
|
+
*
|
|
232
|
+
* @generated from protobuf rpc: OrdersHistory
|
|
233
|
+
*/
|
|
234
|
+
ordersHistory(input, options) {
|
|
235
|
+
const method = this.methods[24], opt = this._transport.mergeOptions(options);
|
|
236
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Stream updates to historical orders of a derivative Market
|
|
240
|
+
*
|
|
241
|
+
* @generated from protobuf rpc: StreamOrdersHistory
|
|
242
|
+
*/
|
|
243
|
+
streamOrdersHistory(input, options) {
|
|
244
|
+
const method = this.methods[25], opt = this._transport.mergeOptions(options);
|
|
245
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* OpenInterest gets the open interest for a derivative market.
|
|
249
|
+
*
|
|
250
|
+
* @generated from protobuf rpc: OpenInterest
|
|
251
|
+
*/
|
|
252
|
+
openInterest(input, options) {
|
|
253
|
+
const method = this.methods[26], opt = this._transport.mergeOptions(options);
|
|
254
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
export {
|
|
258
|
+
InjectiveDerivativeExchangeRPCClient
|
|
259
|
+
};
|