@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,343 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_spot_exchange_rpc.proto" (package "injective_spot_exchange_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveSpotExchangeRPC protocol buffer definition
|
|
8
|
+
//
|
|
9
|
+
// Command:
|
|
10
|
+
// $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../
|
|
11
|
+
//
|
|
12
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
13
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
14
|
+
import { InjectiveSpotExchangeRPC } from "./injective_spot_exchange_rpc_pb";
|
|
15
|
+
import type { AtomicSwapHistoryResponse } from "./injective_spot_exchange_rpc_pb";
|
|
16
|
+
import type { AtomicSwapHistoryRequest } from "./injective_spot_exchange_rpc_pb";
|
|
17
|
+
import type { StreamOrdersHistoryResponse } from "./injective_spot_exchange_rpc_pb";
|
|
18
|
+
import type { StreamOrdersHistoryRequest } from "./injective_spot_exchange_rpc_pb";
|
|
19
|
+
import type { OrdersHistoryResponse } from "./injective_spot_exchange_rpc_pb";
|
|
20
|
+
import type { OrdersHistoryRequest } from "./injective_spot_exchange_rpc_pb";
|
|
21
|
+
import type { SubaccountTradesListResponse } from "./injective_spot_exchange_rpc_pb";
|
|
22
|
+
import type { SubaccountTradesListRequest } from "./injective_spot_exchange_rpc_pb";
|
|
23
|
+
import type { SubaccountOrdersListResponse } from "./injective_spot_exchange_rpc_pb";
|
|
24
|
+
import type { SubaccountOrdersListRequest } from "./injective_spot_exchange_rpc_pb";
|
|
25
|
+
import type { StreamTradesV2Response } from "./injective_spot_exchange_rpc_pb";
|
|
26
|
+
import type { StreamTradesV2Request } from "./injective_spot_exchange_rpc_pb";
|
|
27
|
+
import type { TradesV2Response } from "./injective_spot_exchange_rpc_pb";
|
|
28
|
+
import type { TradesV2Request } from "./injective_spot_exchange_rpc_pb";
|
|
29
|
+
import type { StreamTradesResponse } from "./injective_spot_exchange_rpc_pb";
|
|
30
|
+
import type { StreamTradesRequest } from "./injective_spot_exchange_rpc_pb";
|
|
31
|
+
import type { TradesResponse } from "./injective_spot_exchange_rpc_pb";
|
|
32
|
+
import type { TradesRequest } from "./injective_spot_exchange_rpc_pb";
|
|
33
|
+
import type { StreamOrdersResponse } from "./injective_spot_exchange_rpc_pb";
|
|
34
|
+
import type { StreamOrdersRequest } from "./injective_spot_exchange_rpc_pb";
|
|
35
|
+
import type { OrdersResponse } from "./injective_spot_exchange_rpc_pb";
|
|
36
|
+
import type { OrdersRequest } from "./injective_spot_exchange_rpc_pb";
|
|
37
|
+
import type { StreamOrderbookUpdateResponse } from "./injective_spot_exchange_rpc_pb";
|
|
38
|
+
import type { StreamOrderbookUpdateRequest } from "./injective_spot_exchange_rpc_pb";
|
|
39
|
+
import type { StreamOrderbookV2Response } from "./injective_spot_exchange_rpc_pb";
|
|
40
|
+
import type { StreamOrderbookV2Request } from "./injective_spot_exchange_rpc_pb";
|
|
41
|
+
import type { OrderbooksV2Response } from "./injective_spot_exchange_rpc_pb";
|
|
42
|
+
import type { OrderbooksV2Request } from "./injective_spot_exchange_rpc_pb";
|
|
43
|
+
import type { OrderbookV2Response } from "./injective_spot_exchange_rpc_pb";
|
|
44
|
+
import type { OrderbookV2Request } from "./injective_spot_exchange_rpc_pb";
|
|
45
|
+
import type { StreamMarketsResponse } from "./injective_spot_exchange_rpc_pb";
|
|
46
|
+
import type { StreamMarketsRequest } from "./injective_spot_exchange_rpc_pb";
|
|
47
|
+
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
48
|
+
import type { MarketResponse } from "./injective_spot_exchange_rpc_pb";
|
|
49
|
+
import type { MarketRequest } from "./injective_spot_exchange_rpc_pb";
|
|
50
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
51
|
+
import type { MarketsResponse } from "./injective_spot_exchange_rpc_pb";
|
|
52
|
+
import type { MarketsRequest } from "./injective_spot_exchange_rpc_pb";
|
|
53
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
54
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
55
|
+
/**
|
|
56
|
+
* InjectiveSpotExchangeRPC defines gRPC API of Spot Exchange provider.
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf service injective_spot_exchange_rpc.InjectiveSpotExchangeRPC
|
|
59
|
+
*/
|
|
60
|
+
export interface IInjectiveSpotExchangeRPCClient {
|
|
61
|
+
/**
|
|
62
|
+
* Get a list of Spot Markets
|
|
63
|
+
*
|
|
64
|
+
* @generated from protobuf rpc: Markets
|
|
65
|
+
*/
|
|
66
|
+
markets(input: MarketsRequest, options?: RpcOptions): UnaryCall<MarketsRequest, MarketsResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Get details of a single spot market
|
|
69
|
+
*
|
|
70
|
+
* @generated from protobuf rpc: Market
|
|
71
|
+
*/
|
|
72
|
+
market(input: MarketRequest, options?: RpcOptions): UnaryCall<MarketRequest, MarketResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Stream live updates of selected spot markets
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf rpc: StreamMarkets
|
|
77
|
+
*/
|
|
78
|
+
streamMarkets(input: StreamMarketsRequest, options?: RpcOptions): ServerStreamingCall<StreamMarketsRequest, StreamMarketsResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Orderbook of a Spot Market
|
|
81
|
+
*
|
|
82
|
+
* @generated from protobuf rpc: OrderbookV2
|
|
83
|
+
*/
|
|
84
|
+
orderbookV2(input: OrderbookV2Request, options?: RpcOptions): UnaryCall<OrderbookV2Request, OrderbookV2Response>;
|
|
85
|
+
/**
|
|
86
|
+
* Orderbook of Spot Markets
|
|
87
|
+
*
|
|
88
|
+
* @generated from protobuf rpc: OrderbooksV2
|
|
89
|
+
*/
|
|
90
|
+
orderbooksV2(input: OrderbooksV2Request, options?: RpcOptions): UnaryCall<OrderbooksV2Request, OrderbooksV2Response>;
|
|
91
|
+
/**
|
|
92
|
+
* Stream live snapshot updates of selected spot market orderbook
|
|
93
|
+
*
|
|
94
|
+
* @generated from protobuf rpc: StreamOrderbookV2
|
|
95
|
+
*/
|
|
96
|
+
streamOrderbookV2(input: StreamOrderbookV2Request, options?: RpcOptions): ServerStreamingCall<StreamOrderbookV2Request, StreamOrderbookV2Response>;
|
|
97
|
+
/**
|
|
98
|
+
* Stream live level updates of selected spot market orderbook
|
|
99
|
+
*
|
|
100
|
+
* @generated from protobuf rpc: StreamOrderbookUpdate
|
|
101
|
+
*/
|
|
102
|
+
streamOrderbookUpdate(input: StreamOrderbookUpdateRequest, options?: RpcOptions): ServerStreamingCall<StreamOrderbookUpdateRequest, StreamOrderbookUpdateResponse>;
|
|
103
|
+
/**
|
|
104
|
+
* Orders of a Spot Market
|
|
105
|
+
*
|
|
106
|
+
* @generated from protobuf rpc: Orders
|
|
107
|
+
*/
|
|
108
|
+
orders(input: OrdersRequest, options?: RpcOptions): UnaryCall<OrdersRequest, OrdersResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Stream updates to individual orders of a Spot Market
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf rpc: StreamOrders
|
|
113
|
+
*/
|
|
114
|
+
streamOrders(input: StreamOrdersRequest, options?: RpcOptions): ServerStreamingCall<StreamOrdersRequest, StreamOrdersResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* Trades of a Spot Market
|
|
117
|
+
*
|
|
118
|
+
* @generated from protobuf rpc: Trades
|
|
119
|
+
*/
|
|
120
|
+
trades(input: TradesRequest, options?: RpcOptions): UnaryCall<TradesRequest, TradesResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* Stream newly executed trades from Spot Market
|
|
123
|
+
*
|
|
124
|
+
* @generated from protobuf rpc: StreamTrades
|
|
125
|
+
*/
|
|
126
|
+
streamTrades(input: StreamTradesRequest, options?: RpcOptions): ServerStreamingCall<StreamTradesRequest, StreamTradesResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Trades of a Spot Market
|
|
129
|
+
*
|
|
130
|
+
* @generated from protobuf rpc: TradesV2
|
|
131
|
+
*/
|
|
132
|
+
tradesV2(input: TradesV2Request, options?: RpcOptions): UnaryCall<TradesV2Request, TradesV2Response>;
|
|
133
|
+
/**
|
|
134
|
+
* Stream newly executed trades from Spot Market
|
|
135
|
+
*
|
|
136
|
+
* @generated from protobuf rpc: StreamTradesV2
|
|
137
|
+
*/
|
|
138
|
+
streamTradesV2(input: StreamTradesV2Request, options?: RpcOptions): ServerStreamingCall<StreamTradesV2Request, StreamTradesV2Response>;
|
|
139
|
+
/**
|
|
140
|
+
* List orders posted from this subaccount
|
|
141
|
+
*
|
|
142
|
+
* @generated from protobuf rpc: SubaccountOrdersList
|
|
143
|
+
*/
|
|
144
|
+
subaccountOrdersList(input: SubaccountOrdersListRequest, options?: RpcOptions): UnaryCall<SubaccountOrdersListRequest, SubaccountOrdersListResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* List trades executed by this subaccount
|
|
147
|
+
*
|
|
148
|
+
* @generated from protobuf rpc: SubaccountTradesList
|
|
149
|
+
*/
|
|
150
|
+
subaccountTradesList(input: SubaccountTradesListRequest, options?: RpcOptions): UnaryCall<SubaccountTradesListRequest, SubaccountTradesListResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* Lists history orders posted from this subaccount
|
|
153
|
+
*
|
|
154
|
+
* @generated from protobuf rpc: OrdersHistory
|
|
155
|
+
*/
|
|
156
|
+
ordersHistory(input: OrdersHistoryRequest, options?: RpcOptions): UnaryCall<OrdersHistoryRequest, OrdersHistoryResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* Stream updates to historical orders of a spot Market
|
|
159
|
+
*
|
|
160
|
+
* @generated from protobuf rpc: StreamOrdersHistory
|
|
161
|
+
*/
|
|
162
|
+
streamOrdersHistory(input: StreamOrdersHistoryRequest, options?: RpcOptions): ServerStreamingCall<StreamOrdersHistoryRequest, StreamOrdersHistoryResponse>;
|
|
163
|
+
/**
|
|
164
|
+
* Get historical atomic swaps
|
|
165
|
+
*
|
|
166
|
+
* @generated from protobuf rpc: AtomicSwapHistory
|
|
167
|
+
*/
|
|
168
|
+
atomicSwapHistory(input: AtomicSwapHistoryRequest, options?: RpcOptions): UnaryCall<AtomicSwapHistoryRequest, AtomicSwapHistoryResponse>;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* InjectiveSpotExchangeRPC defines gRPC API of Spot Exchange provider.
|
|
172
|
+
*
|
|
173
|
+
* @generated from protobuf service injective_spot_exchange_rpc.InjectiveSpotExchangeRPC
|
|
174
|
+
*/
|
|
175
|
+
export class InjectiveSpotExchangeRPCClient implements IInjectiveSpotExchangeRPCClient, ServiceInfo {
|
|
176
|
+
typeName = InjectiveSpotExchangeRPC.typeName;
|
|
177
|
+
methods = InjectiveSpotExchangeRPC.methods;
|
|
178
|
+
options = InjectiveSpotExchangeRPC.options;
|
|
179
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Get a list of Spot Markets
|
|
183
|
+
*
|
|
184
|
+
* @generated from protobuf rpc: Markets
|
|
185
|
+
*/
|
|
186
|
+
markets(input: MarketsRequest, options?: RpcOptions): UnaryCall<MarketsRequest, MarketsResponse> {
|
|
187
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
188
|
+
return stackIntercept<MarketsRequest, MarketsResponse>("unary", this._transport, method, opt, input);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Get details of a single spot market
|
|
192
|
+
*
|
|
193
|
+
* @generated from protobuf rpc: Market
|
|
194
|
+
*/
|
|
195
|
+
market(input: MarketRequest, options?: RpcOptions): UnaryCall<MarketRequest, MarketResponse> {
|
|
196
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
197
|
+
return stackIntercept<MarketRequest, MarketResponse>("unary", this._transport, method, opt, input);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Stream live updates of selected spot markets
|
|
201
|
+
*
|
|
202
|
+
* @generated from protobuf rpc: StreamMarkets
|
|
203
|
+
*/
|
|
204
|
+
streamMarkets(input: StreamMarketsRequest, options?: RpcOptions): ServerStreamingCall<StreamMarketsRequest, StreamMarketsResponse> {
|
|
205
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
206
|
+
return stackIntercept<StreamMarketsRequest, StreamMarketsResponse>("serverStreaming", this._transport, method, opt, input);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Orderbook of a Spot Market
|
|
210
|
+
*
|
|
211
|
+
* @generated from protobuf rpc: OrderbookV2
|
|
212
|
+
*/
|
|
213
|
+
orderbookV2(input: OrderbookV2Request, options?: RpcOptions): UnaryCall<OrderbookV2Request, OrderbookV2Response> {
|
|
214
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
215
|
+
return stackIntercept<OrderbookV2Request, OrderbookV2Response>("unary", this._transport, method, opt, input);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Orderbook of Spot Markets
|
|
219
|
+
*
|
|
220
|
+
* @generated from protobuf rpc: OrderbooksV2
|
|
221
|
+
*/
|
|
222
|
+
orderbooksV2(input: OrderbooksV2Request, options?: RpcOptions): UnaryCall<OrderbooksV2Request, OrderbooksV2Response> {
|
|
223
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
224
|
+
return stackIntercept<OrderbooksV2Request, OrderbooksV2Response>("unary", this._transport, method, opt, input);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Stream live snapshot updates of selected spot market orderbook
|
|
228
|
+
*
|
|
229
|
+
* @generated from protobuf rpc: StreamOrderbookV2
|
|
230
|
+
*/
|
|
231
|
+
streamOrderbookV2(input: StreamOrderbookV2Request, options?: RpcOptions): ServerStreamingCall<StreamOrderbookV2Request, StreamOrderbookV2Response> {
|
|
232
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
233
|
+
return stackIntercept<StreamOrderbookV2Request, StreamOrderbookV2Response>("serverStreaming", this._transport, method, opt, input);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Stream live level updates of selected spot market orderbook
|
|
237
|
+
*
|
|
238
|
+
* @generated from protobuf rpc: StreamOrderbookUpdate
|
|
239
|
+
*/
|
|
240
|
+
streamOrderbookUpdate(input: StreamOrderbookUpdateRequest, options?: RpcOptions): ServerStreamingCall<StreamOrderbookUpdateRequest, StreamOrderbookUpdateResponse> {
|
|
241
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
242
|
+
return stackIntercept<StreamOrderbookUpdateRequest, StreamOrderbookUpdateResponse>("serverStreaming", this._transport, method, opt, input);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Orders of a Spot Market
|
|
246
|
+
*
|
|
247
|
+
* @generated from protobuf rpc: Orders
|
|
248
|
+
*/
|
|
249
|
+
orders(input: OrdersRequest, options?: RpcOptions): UnaryCall<OrdersRequest, OrdersResponse> {
|
|
250
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
251
|
+
return stackIntercept<OrdersRequest, OrdersResponse>("unary", this._transport, method, opt, input);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Stream updates to individual orders of a Spot Market
|
|
255
|
+
*
|
|
256
|
+
* @generated from protobuf rpc: StreamOrders
|
|
257
|
+
*/
|
|
258
|
+
streamOrders(input: StreamOrdersRequest, options?: RpcOptions): ServerStreamingCall<StreamOrdersRequest, StreamOrdersResponse> {
|
|
259
|
+
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
260
|
+
return stackIntercept<StreamOrdersRequest, StreamOrdersResponse>("serverStreaming", this._transport, method, opt, input);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Trades of a Spot Market
|
|
264
|
+
*
|
|
265
|
+
* @generated from protobuf rpc: Trades
|
|
266
|
+
*/
|
|
267
|
+
trades(input: TradesRequest, options?: RpcOptions): UnaryCall<TradesRequest, TradesResponse> {
|
|
268
|
+
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
269
|
+
return stackIntercept<TradesRequest, TradesResponse>("unary", this._transport, method, opt, input);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Stream newly executed trades from Spot Market
|
|
273
|
+
*
|
|
274
|
+
* @generated from protobuf rpc: StreamTrades
|
|
275
|
+
*/
|
|
276
|
+
streamTrades(input: StreamTradesRequest, options?: RpcOptions): ServerStreamingCall<StreamTradesRequest, StreamTradesResponse> {
|
|
277
|
+
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
278
|
+
return stackIntercept<StreamTradesRequest, StreamTradesResponse>("serverStreaming", this._transport, method, opt, input);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Trades of a Spot Market
|
|
282
|
+
*
|
|
283
|
+
* @generated from protobuf rpc: TradesV2
|
|
284
|
+
*/
|
|
285
|
+
tradesV2(input: TradesV2Request, options?: RpcOptions): UnaryCall<TradesV2Request, TradesV2Response> {
|
|
286
|
+
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
287
|
+
return stackIntercept<TradesV2Request, TradesV2Response>("unary", this._transport, method, opt, input);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Stream newly executed trades from Spot Market
|
|
291
|
+
*
|
|
292
|
+
* @generated from protobuf rpc: StreamTradesV2
|
|
293
|
+
*/
|
|
294
|
+
streamTradesV2(input: StreamTradesV2Request, options?: RpcOptions): ServerStreamingCall<StreamTradesV2Request, StreamTradesV2Response> {
|
|
295
|
+
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
296
|
+
return stackIntercept<StreamTradesV2Request, StreamTradesV2Response>("serverStreaming", this._transport, method, opt, input);
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* List orders posted from this subaccount
|
|
300
|
+
*
|
|
301
|
+
* @generated from protobuf rpc: SubaccountOrdersList
|
|
302
|
+
*/
|
|
303
|
+
subaccountOrdersList(input: SubaccountOrdersListRequest, options?: RpcOptions): UnaryCall<SubaccountOrdersListRequest, SubaccountOrdersListResponse> {
|
|
304
|
+
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
305
|
+
return stackIntercept<SubaccountOrdersListRequest, SubaccountOrdersListResponse>("unary", this._transport, method, opt, input);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* List trades executed by this subaccount
|
|
309
|
+
*
|
|
310
|
+
* @generated from protobuf rpc: SubaccountTradesList
|
|
311
|
+
*/
|
|
312
|
+
subaccountTradesList(input: SubaccountTradesListRequest, options?: RpcOptions): UnaryCall<SubaccountTradesListRequest, SubaccountTradesListResponse> {
|
|
313
|
+
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
314
|
+
return stackIntercept<SubaccountTradesListRequest, SubaccountTradesListResponse>("unary", this._transport, method, opt, input);
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Lists history orders posted from this subaccount
|
|
318
|
+
*
|
|
319
|
+
* @generated from protobuf rpc: OrdersHistory
|
|
320
|
+
*/
|
|
321
|
+
ordersHistory(input: OrdersHistoryRequest, options?: RpcOptions): UnaryCall<OrdersHistoryRequest, OrdersHistoryResponse> {
|
|
322
|
+
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
323
|
+
return stackIntercept<OrdersHistoryRequest, OrdersHistoryResponse>("unary", this._transport, method, opt, input);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Stream updates to historical orders of a spot Market
|
|
327
|
+
*
|
|
328
|
+
* @generated from protobuf rpc: StreamOrdersHistory
|
|
329
|
+
*/
|
|
330
|
+
streamOrdersHistory(input: StreamOrdersHistoryRequest, options?: RpcOptions): ServerStreamingCall<StreamOrdersHistoryRequest, StreamOrdersHistoryResponse> {
|
|
331
|
+
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
332
|
+
return stackIntercept<StreamOrdersHistoryRequest, StreamOrdersHistoryResponse>("serverStreaming", this._transport, method, opt, input);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Get historical atomic swaps
|
|
336
|
+
*
|
|
337
|
+
* @generated from protobuf rpc: AtomicSwapHistory
|
|
338
|
+
*/
|
|
339
|
+
atomicSwapHistory(input: AtomicSwapHistoryRequest, options?: RpcOptions): UnaryCall<AtomicSwapHistoryRequest, AtomicSwapHistoryResponse> {
|
|
340
|
+
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
341
|
+
return stackIntercept<AtomicSwapHistoryRequest, AtomicSwapHistoryResponse>("unary", this._transport, method, opt, input);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { InjectiveSpotExchangeRPC } from "./injective_spot_exchange_rpc_pb.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
class InjectiveSpotExchangeRPCClient {
|
|
4
|
+
constructor(_transport) {
|
|
5
|
+
this._transport = _transport;
|
|
6
|
+
this.typeName = InjectiveSpotExchangeRPC.typeName;
|
|
7
|
+
this.methods = InjectiveSpotExchangeRPC.methods;
|
|
8
|
+
this.options = InjectiveSpotExchangeRPC.options;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get a list of Spot 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
|
+
* Get details of a single spot 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
|
+
* Stream live updates of selected spot markets
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf rpc: StreamMarkets
|
|
32
|
+
*/
|
|
33
|
+
streamMarkets(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
|
+
* Orderbook of a Spot Market
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf rpc: OrderbookV2
|
|
41
|
+
*/
|
|
42
|
+
orderbookV2(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
|
+
* Orderbook of Spot Markets
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf rpc: OrderbooksV2
|
|
50
|
+
*/
|
|
51
|
+
orderbooksV2(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
|
+
* Stream live snapshot updates of selected spot market orderbook
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf rpc: StreamOrderbookV2
|
|
59
|
+
*/
|
|
60
|
+
streamOrderbookV2(input, options) {
|
|
61
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
62
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Stream live level updates of selected spot market orderbook
|
|
66
|
+
*
|
|
67
|
+
* @generated from protobuf rpc: StreamOrderbookUpdate
|
|
68
|
+
*/
|
|
69
|
+
streamOrderbookUpdate(input, options) {
|
|
70
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
71
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Orders of a Spot Market
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf rpc: Orders
|
|
77
|
+
*/
|
|
78
|
+
orders(input, options) {
|
|
79
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
80
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Stream updates to individual orders of a Spot Market
|
|
84
|
+
*
|
|
85
|
+
* @generated from protobuf rpc: StreamOrders
|
|
86
|
+
*/
|
|
87
|
+
streamOrders(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
|
+
* Trades of a Spot Market
|
|
93
|
+
*
|
|
94
|
+
* @generated from protobuf rpc: Trades
|
|
95
|
+
*/
|
|
96
|
+
trades(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
|
+
* Stream newly executed trades from Spot Market
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf rpc: StreamTrades
|
|
104
|
+
*/
|
|
105
|
+
streamTrades(input, options) {
|
|
106
|
+
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
107
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Trades of a Spot Market
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf rpc: TradesV2
|
|
113
|
+
*/
|
|
114
|
+
tradesV2(input, options) {
|
|
115
|
+
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
116
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Stream newly executed trades from Spot Market
|
|
120
|
+
*
|
|
121
|
+
* @generated from protobuf rpc: StreamTradesV2
|
|
122
|
+
*/
|
|
123
|
+
streamTradesV2(input, options) {
|
|
124
|
+
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
125
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* List orders posted from this subaccount
|
|
129
|
+
*
|
|
130
|
+
* @generated from protobuf rpc: SubaccountOrdersList
|
|
131
|
+
*/
|
|
132
|
+
subaccountOrdersList(input, options) {
|
|
133
|
+
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
134
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* List trades executed by this subaccount
|
|
138
|
+
*
|
|
139
|
+
* @generated from protobuf rpc: SubaccountTradesList
|
|
140
|
+
*/
|
|
141
|
+
subaccountTradesList(input, options) {
|
|
142
|
+
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
143
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Lists history orders posted from this subaccount
|
|
147
|
+
*
|
|
148
|
+
* @generated from protobuf rpc: OrdersHistory
|
|
149
|
+
*/
|
|
150
|
+
ordersHistory(input, options) {
|
|
151
|
+
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
152
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Stream updates to historical orders of a spot Market
|
|
156
|
+
*
|
|
157
|
+
* @generated from protobuf rpc: StreamOrdersHistory
|
|
158
|
+
*/
|
|
159
|
+
streamOrdersHistory(input, options) {
|
|
160
|
+
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
161
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Get historical atomic swaps
|
|
165
|
+
*
|
|
166
|
+
* @generated from protobuf rpc: AtomicSwapHistory
|
|
167
|
+
*/
|
|
168
|
+
atomicSwapHistory(input, options) {
|
|
169
|
+
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
170
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
export {
|
|
174
|
+
InjectiveSpotExchangeRPCClient
|
|
175
|
+
};
|