@reyaxyz/api-v2-sdk 0.301.5 → 0.301.6

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.
Files changed (39) hide show
  1. package/dist/index.js.map +1 -1
  2. package/dist/rest/apis/MarketDataApi.js +99 -1
  3. package/dist/rest/apis/MarketDataApi.js.map +1 -1
  4. package/dist/rest/apis/OrderEntryApi.js +47 -1
  5. package/dist/rest/apis/OrderEntryApi.js.map +1 -1
  6. package/dist/rest/apis/ReferenceDataApi.js +42 -1
  7. package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
  8. package/dist/rest/apis/SpecsApi.js +1 -1
  9. package/dist/rest/apis/SpecsApi.js.map +1 -1
  10. package/dist/rest/apis/WalletDataApi.js +1 -1
  11. package/dist/rest/apis/WalletDataApi.js.map +1 -1
  12. package/dist/rest/models/index.js +32 -2
  13. package/dist/rest/models/index.js.map +1 -1
  14. package/dist/rest/runtime.js +1 -1
  15. package/dist/rest/runtime.js.map +1 -1
  16. package/dist/types/index.d.ts.map +1 -1
  17. package/dist/types/rest/apis/MarketDataApi.d.ts +30 -2
  18. package/dist/types/rest/apis/MarketDataApi.d.ts.map +1 -1
  19. package/dist/types/rest/apis/OrderEntryApi.d.ts +15 -2
  20. package/dist/types/rest/apis/OrderEntryApi.d.ts.map +1 -1
  21. package/dist/types/rest/apis/ReferenceDataApi.d.ts +10 -2
  22. package/dist/types/rest/apis/ReferenceDataApi.d.ts.map +1 -1
  23. package/dist/types/rest/apis/SpecsApi.d.ts +1 -1
  24. package/dist/types/rest/apis/WalletDataApi.d.ts +1 -1
  25. package/dist/types/rest/models/index.d.ts +321 -14
  26. package/dist/types/rest/models/index.d.ts.map +1 -1
  27. package/dist/types/rest/runtime.d.ts +1 -1
  28. package/dist/types/websocket/types.d.ts +61 -0
  29. package/dist/types/websocket/types.d.ts.map +1 -1
  30. package/dist/websocket/types.js.map +1 -1
  31. package/package.json +2 -2
  32. package/rest/apis/MarketDataApi.ts +85 -1
  33. package/rest/apis/OrderEntryApi.ts +38 -1
  34. package/rest/apis/ReferenceDataApi.ts +28 -1
  35. package/rest/apis/SpecsApi.ts +1 -1
  36. package/rest/apis/WalletDataApi.ts +1 -1
  37. package/rest/models/index.ts +329 -15
  38. package/rest/runtime.ts +1 -1
  39. package/websocket/types.ts +70 -0
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"/","sources":["websocket/types.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,+BAA+B;AAClB,QAAA,gBAAgB,GAAG;IAC9B,UAAU,EAAE,mBAAmB;IAC/B,OAAO,EAAE,2BAA2B;IACpC,IAAI,EAAE,kCAAkC;CAChC,CAAC","sourcesContent":["/**\n * WebSocket Types for Reya DEX Trading API v2\n * \n * Generated from AsyncAPI specification using AsyncAPI CLI + Modelina.\n * These types can be used to implement WebSocket clients.\n * \n * AsyncAPI Spec: specs/asyncapi-trading-v2.yaml\n */\n\n// WebSocket connection servers\nexport const WebSocketServers = {\n production: 'wss://ws.reya.xyz',\n staging: 'wss://ws-staging.reya.xyz',\n test: 'wss://websocket-testnet.reya.xyz'\n} as const;\n\nexport type ChannelDataMessageType = \"channel_data\";\n\nexport interface ErrorMessagePayload {\n type: ErrorMessageType;\n message: string;\n channel?: string;\n}\n\nexport type ErrorMessageType = \"error\";\n\nexport type ExecutionType = \"ORDER_MATCH\" | \"LIQUIDATION\" | \"ADL\";\n\nexport interface MarketPerpExecutionUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: PerpExecution[];\n}\n\nexport interface MarketSummary {\n symbol: string;\n updatedAt: number;\n longOiQty: string;\n shortOiQty: string;\n oiQty: string;\n fundingRate: string;\n longFundingValue: string;\n shortFundingValue: string;\n fundingRateVelocity: string;\n volume24h: string;\n pxChange24h?: string;\n throttledOraclePrice?: string;\n throttledPoolPrice?: string;\n pricesUpdatedAt?: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface MarketSummaryUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: MarketSummary;\n}\n\nexport type MarketsSummaryChannel = \"/v2/markets/summary\";\n\nexport interface MarketsSummaryUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: MarketsSummaryChannel;\n data: MarketSummary[];\n}\n\nexport interface Order {\n exchangeId: number;\n symbol: string;\n accountId: number;\n orderId: string;\n qty?: string;\n execQty?: string;\n side: Side;\n limitPx: string;\n orderType: OrderType;\n triggerPx?: string;\n timeInForce?: TimeInForce;\n reduceOnly?: boolean;\n status: OrderStatus;\n createdAt: number;\n lastUpdateAt: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface OrderChangeUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: Order[];\n}\n\nexport type OrderStatus = \"OPEN\" | \"FILLED\" | \"CANCELLED\" | \"REJECTED\";\n\nexport type OrderType = \"LIMIT\" | \"TP\" | \"SL\";\n\nexport interface PerpExecution {\n exchangeId: number;\n symbol: string;\n accountId: number;\n qty: string;\n side: Side;\n price: string;\n fee: string;\n type: ExecutionType;\n timestamp: number;\n sequenceNumber: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface PingMessagePayload {\n type: PingMessageType;\n timestamp?: number;\n}\n\nexport type PingMessageType = \"ping\";\n\nexport interface PongMessagePayload {\n type: PongMessageType;\n timestamp?: number;\n}\n\nexport type PongMessageType = \"pong\";\n\nexport interface Position {\n exchangeId: number;\n symbol: string;\n accountId: number;\n qty: string;\n side: Side;\n avgEntryPrice: string;\n avgEntryFundingValue: string;\n lastTradeSequenceNumber: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface PositionUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: Position[];\n}\n\nexport interface Price {\n symbol: string;\n oraclePrice: string;\n poolPrice?: string;\n updatedAt: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface PriceUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: Price;\n}\n\nexport type PricesChannel = \"/v2/prices\";\n\nexport interface PricesUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: PricesChannel;\n data: Price[];\n}\n\nexport type Side = \"B\" | \"A\";\n\nexport interface SubscribeMessagePayload {\n type: SubscribeMessageType;\n channel: string;\n id?: string;\n}\n\nexport type SubscribeMessageType = \"subscribe\";\n\nexport interface SubscribedMessagePayload {\n type: SubscribedMessageType;\n channel: string;\n contents?: Map<string, any>;\n}\n\nexport type SubscribedMessageType = \"subscribed\";\n\nexport type TimeInForce = \"IOC\" | \"GTC\";\n\nexport interface UnsubscribeMessagePayload {\n type: UnsubscribeMessageType;\n channel: string;\n id?: string;\n}\n\nexport type UnsubscribeMessageType = \"unsubscribe\";\n\nexport interface UnsubscribedMessagePayload {\n type: UnsubscribedMessageType;\n channel: string;\n}\n\nexport type UnsubscribedMessageType = \"unsubscribed\";\n\nexport interface WalletPerpExecutionUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: PerpExecution[];\n}\n\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"/","sources":["websocket/types.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,+BAA+B;AAClB,QAAA,gBAAgB,GAAG;IAC9B,UAAU,EAAE,mBAAmB;IAC/B,OAAO,EAAE,2BAA2B;IACpC,IAAI,EAAE,kCAAkC;CAChC,CAAC","sourcesContent":["/**\n * WebSocket Types for Reya DEX Trading API v2\n * \n * Generated from AsyncAPI specification using AsyncAPI CLI + Modelina.\n * These types can be used to implement WebSocket clients.\n * \n * AsyncAPI Spec: specs/asyncapi-trading-v2.yaml\n */\n\n// WebSocket connection servers\nexport const WebSocketServers = {\n production: 'wss://ws.reya.xyz',\n staging: 'wss://ws-staging.reya.xyz',\n test: 'wss://websocket-testnet.reya.xyz'\n} as const;\n\nexport interface AccountBalance {\n accountId: number;\n asset: string;\n realBalance: string;\n balanceDeprecated: string;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface AccountBalanceUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: AccountBalance[];\n}\n\nexport type ChannelDataMessageType = \"channel_data\";\n\nexport interface Depth {\n symbol: string;\n type: DepthType;\n bids: Level[];\n asks: Level[];\n updatedAt: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport type DepthType = \"SNAPSHOT\" | \"UPDATE\";\n\nexport interface ErrorMessagePayload {\n type: ErrorMessageType;\n message: string;\n channel?: string;\n}\n\nexport type ErrorMessageType = \"error\";\n\nexport type ExecutionType = \"ORDER_MATCH\" | \"LIQUIDATION\" | \"ADL\";\n\nexport interface Level {\n px: string;\n qty: string;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface MarketDepthUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: Depth;\n}\n\nexport interface MarketPerpExecutionUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: PerpExecution[];\n}\n\nexport interface MarketSpotExecutionUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: SpotExecution[];\n}\n\nexport interface MarketSummary {\n symbol: string;\n updatedAt: number;\n longOiQty: string;\n shortOiQty: string;\n oiQty: string;\n fundingRate: string;\n longFundingValue: string;\n shortFundingValue: string;\n fundingRateVelocity: string;\n volume24h: string;\n pxChange24h?: string;\n throttledOraclePrice?: string;\n throttledPoolPrice?: string;\n pricesUpdatedAt?: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface MarketSummaryUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: MarketSummary;\n}\n\nexport type MarketsSummaryChannel = \"/v2/markets/summary\";\n\nexport interface MarketsSummaryUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: MarketsSummaryChannel;\n data: MarketSummary[];\n}\n\nexport interface Order {\n exchangeId: number;\n symbol: string;\n accountId: number;\n orderId: string;\n qty?: string;\n execQty?: string;\n cumQty?: string;\n side: Side;\n limitPx: string;\n orderType: OrderType;\n triggerPx?: string;\n timeInForce?: TimeInForce;\n reduceOnly?: boolean;\n status: OrderStatus;\n createdAt: number;\n lastUpdateAt: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface OrderChangeUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: Order[];\n}\n\nexport type OrderStatus = \"OPEN\" | \"FILLED\" | \"CANCELLED\" | \"REJECTED\";\n\nexport type OrderType = \"LIMIT\" | \"TP\" | \"SL\";\n\nexport interface PerpExecution {\n exchangeId: number;\n symbol: string;\n accountId: number;\n qty: string;\n side: Side;\n price: string;\n fee: string;\n type: ExecutionType;\n timestamp: number;\n sequenceNumber: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface PingMessagePayload {\n type: PingMessageType;\n timestamp?: number;\n}\n\nexport type PingMessageType = \"ping\";\n\nexport interface PongMessagePayload {\n type: PongMessageType;\n timestamp?: number;\n}\n\nexport type PongMessageType = \"pong\";\n\nexport interface Position {\n exchangeId: number;\n symbol: string;\n accountId: number;\n qty: string;\n side: Side;\n avgEntryPrice: string;\n avgEntryFundingValue: string;\n lastTradeSequenceNumber: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface PositionUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: Position[];\n}\n\nexport interface Price {\n symbol: string;\n oraclePrice: string;\n poolPrice?: string;\n updatedAt: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface PriceUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: Price;\n}\n\nexport type PricesChannel = \"/v2/prices\";\n\nexport interface PricesUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: PricesChannel;\n data: Price[];\n}\n\nexport type Side = \"B\" | \"A\";\n\nexport interface SpotExecution {\n exchangeId?: number;\n symbol: string;\n accountId: number;\n makerAccountId: number;\n orderId?: string;\n makerOrderId?: string;\n side: Side;\n qty: string;\n price: string;\n fee: string;\n type: ExecutionType;\n timestamp: number;\n additionalProperties?: Map<string, any>;\n}\n\nexport interface SubscribeMessagePayload {\n type: SubscribeMessageType;\n channel: string;\n id?: string;\n}\n\nexport type SubscribeMessageType = \"subscribe\";\n\nexport interface SubscribedMessagePayload {\n type: SubscribedMessageType;\n channel: string;\n contents?: Map<string, any>;\n}\n\nexport type SubscribedMessageType = \"subscribed\";\n\nexport type TimeInForce = \"IOC\" | \"GTC\";\n\nexport interface UnsubscribeMessagePayload {\n type: UnsubscribeMessageType;\n channel: string;\n id?: string;\n}\n\nexport type UnsubscribeMessageType = \"unsubscribe\";\n\nexport interface UnsubscribedMessagePayload {\n type: UnsubscribedMessageType;\n channel: string;\n}\n\nexport type UnsubscribedMessageType = \"unsubscribed\";\n\nexport interface WalletPerpExecutionUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: PerpExecution[];\n}\n\nexport interface WalletSpotExecutionUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: SpotExecution[];\n}\n\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyaxyz/api-v2-sdk",
3
- "version": "0.301.5",
3
+ "version": "0.301.6",
4
4
  "description": "Generated TypeScript SDK for Reya DEX Trading API v2 (REST + WebSocket types)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -39,5 +39,5 @@
39
39
  "engines": {
40
40
  "node": ">=18.18.0"
41
41
  },
42
- "gitHead": "dfb116890344ce119d55d2d1cedc46e989fe33a9"
42
+ "gitHead": "1e71952b4aeba04c435a6a8581bc391947b69365"
43
43
  }
@@ -4,7 +4,7 @@
4
4
  * Reya DEX Trading API v2
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 2.0.6
7
+ * The version of the OpenAPI document: 2.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,11 +16,13 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  CandleHistoryData,
19
+ Depth,
19
20
  MarketSummary,
20
21
  PerpExecutionList,
21
22
  Price,
22
23
  RequestError,
23
24
  ServerError,
25
+ SpotExecutionList,
24
26
  } from '../models/index';
25
27
 
26
28
  export interface GetCandlesRequest {
@@ -29,12 +31,22 @@ export interface GetCandlesRequest {
29
31
  endTime?: number;
30
32
  }
31
33
 
34
+ export interface GetMarketDepthRequest {
35
+ symbol: string;
36
+ }
37
+
32
38
  export interface GetMarketPerpExecutionsRequest {
33
39
  symbol: string;
34
40
  startTime?: number;
35
41
  endTime?: number;
36
42
  }
37
43
 
44
+ export interface GetMarketSpotExecutionsRequest {
45
+ symbol: string;
46
+ startTime?: number;
47
+ endTime?: number;
48
+ }
49
+
38
50
  export interface GetMarketSummaryRequest {
39
51
  symbol: string;
40
52
  }
@@ -88,6 +100,38 @@ export class MarketDataApi extends runtime.BaseAPI {
88
100
  return await response.value();
89
101
  }
90
102
 
103
+ /**
104
+ * Returns an L2 order book snapshot with aggregated price levels for the specified market.
105
+ * Get market depth snapshot
106
+ */
107
+ async getMarketDepthRaw(requestParameters: GetMarketDepthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Depth>> {
108
+ if (requestParameters.symbol === null || requestParameters.symbol === undefined) {
109
+ throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getMarketDepth.');
110
+ }
111
+
112
+ const queryParameters: any = {};
113
+
114
+ const headerParameters: runtime.HTTPHeaders = {};
115
+
116
+ const response = await this.request({
117
+ path: `/market/{symbol}/depth`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters.symbol))),
118
+ method: 'GET',
119
+ headers: headerParameters,
120
+ query: queryParameters,
121
+ }, initOverrides);
122
+
123
+ return new runtime.JSONApiResponse(response);
124
+ }
125
+
126
+ /**
127
+ * Returns an L2 order book snapshot with aggregated price levels for the specified market.
128
+ * Get market depth snapshot
129
+ */
130
+ async getMarketDepth(requestParameters: GetMarketDepthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Depth> {
131
+ const response = await this.getMarketDepthRaw(requestParameters, initOverrides);
132
+ return await response.value();
133
+ }
134
+
91
135
  /**
92
136
  * Returns up to 100 perp executions for a given market.
93
137
  * Get perp executions for market
@@ -128,6 +172,46 @@ export class MarketDataApi extends runtime.BaseAPI {
128
172
  return await response.value();
129
173
  }
130
174
 
175
+ /**
176
+ * Returns up to 100 spot executions for a given market.
177
+ * Get spot executions for market
178
+ */
179
+ async getMarketSpotExecutionsRaw(requestParameters: GetMarketSpotExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpotExecutionList>> {
180
+ if (requestParameters.symbol === null || requestParameters.symbol === undefined) {
181
+ throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getMarketSpotExecutions.');
182
+ }
183
+
184
+ const queryParameters: any = {};
185
+
186
+ if (requestParameters.startTime !== undefined) {
187
+ queryParameters['startTime'] = requestParameters.startTime;
188
+ }
189
+
190
+ if (requestParameters.endTime !== undefined) {
191
+ queryParameters['endTime'] = requestParameters.endTime;
192
+ }
193
+
194
+ const headerParameters: runtime.HTTPHeaders = {};
195
+
196
+ const response = await this.request({
197
+ path: `/market/{symbol}/spotExecutions`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters.symbol))),
198
+ method: 'GET',
199
+ headers: headerParameters,
200
+ query: queryParameters,
201
+ }, initOverrides);
202
+
203
+ return new runtime.JSONApiResponse(response);
204
+ }
205
+
206
+ /**
207
+ * Returns up to 100 spot executions for a given market.
208
+ * Get spot executions for market
209
+ */
210
+ async getMarketSpotExecutions(requestParameters: GetMarketSpotExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpotExecutionList> {
211
+ const response = await this.getMarketSpotExecutionsRaw(requestParameters, initOverrides);
212
+ return await response.value();
213
+ }
214
+
131
215
  /**
132
216
  * Statistics and throttled data for a specific market. Recalculated every 0.5s
133
217
  * Get market summary
@@ -4,7 +4,7 @@
4
4
  * Reya DEX Trading API v2
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 2.0.6
7
+ * The version of the OpenAPI document: 2.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,10 +19,16 @@ import type {
19
19
  CancelOrderResponse,
20
20
  CreateOrderRequest,
21
21
  CreateOrderResponse,
22
+ MassCancelRequest,
23
+ MassCancelResponse,
22
24
  RequestError,
23
25
  ServerError,
24
26
  } from '../models/index';
25
27
 
28
+ export interface CancelAllRequest {
29
+ massCancelRequest?: MassCancelRequest;
30
+ }
31
+
26
32
  export interface CancelOrderOperationRequest {
27
33
  cancelOrderRequest: CancelOrderRequest;
28
34
  }
@@ -36,6 +42,37 @@ export interface CreateOrderOperationRequest {
36
42
  */
37
43
  export class OrderEntryApi extends runtime.BaseAPI {
38
44
 
45
+ /**
46
+ * Cancel all orders matching the specified filters (mass cancel)
47
+ * Cancel all orders
48
+ */
49
+ async cancelAllRaw(requestParameters: CancelAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MassCancelResponse>> {
50
+ const queryParameters: any = {};
51
+
52
+ const headerParameters: runtime.HTTPHeaders = {};
53
+
54
+ headerParameters['Content-Type'] = 'application/json';
55
+
56
+ const response = await this.request({
57
+ path: `/cancelAll`,
58
+ method: 'POST',
59
+ headers: headerParameters,
60
+ query: queryParameters,
61
+ body: requestParameters.massCancelRequest,
62
+ }, initOverrides);
63
+
64
+ return new runtime.JSONApiResponse(response);
65
+ }
66
+
67
+ /**
68
+ * Cancel all orders matching the specified filters (mass cancel)
69
+ * Cancel all orders
70
+ */
71
+ async cancelAll(requestParameters: CancelAllRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MassCancelResponse> {
72
+ const response = await this.cancelAllRaw(requestParameters, initOverrides);
73
+ return await response.value();
74
+ }
75
+
39
76
  /**
40
77
  * Cancel an existing order
41
78
  * Cancel order
@@ -4,7 +4,7 @@
4
4
  * Reya DEX Trading API v2
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 2.0.6
7
+ * The version of the OpenAPI document: 2.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,6 +22,7 @@ import type {
22
22
  MarketDefinition,
23
23
  RequestError,
24
24
  ServerError,
25
+ SpotMarketDefinition,
25
26
  } from '../models/index';
26
27
 
27
28
  /**
@@ -159,4 +160,30 @@ export class ReferenceDataApi extends runtime.BaseAPI {
159
160
  return await response.value();
160
161
  }
161
162
 
163
+ /**
164
+ * Get spot market definitions
165
+ */
166
+ async getSpotMarketDefinitionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SpotMarketDefinition>>> {
167
+ const queryParameters: any = {};
168
+
169
+ const headerParameters: runtime.HTTPHeaders = {};
170
+
171
+ const response = await this.request({
172
+ path: `/spotMarketDefinitions`,
173
+ method: 'GET',
174
+ headers: headerParameters,
175
+ query: queryParameters,
176
+ }, initOverrides);
177
+
178
+ return new runtime.JSONApiResponse(response);
179
+ }
180
+
181
+ /**
182
+ * Get spot market definitions
183
+ */
184
+ async getSpotMarketDefinitions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SpotMarketDefinition>> {
185
+ const response = await this.getSpotMarketDefinitionsRaw(initOverrides);
186
+ return await response.value();
187
+ }
188
+
162
189
  }
@@ -4,7 +4,7 @@
4
4
  * Reya DEX Trading API v2
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 2.0.6
7
+ * The version of the OpenAPI document: 2.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Reya DEX Trading API v2
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 2.0.6
7
+ * The version of the OpenAPI document: 2.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).