@reyaxyz/api-v2-sdk 0.301.8 → 0.301.10

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 (35) hide show
  1. package/dist/rest/apis/MarketDataApi.js +53 -1
  2. package/dist/rest/apis/MarketDataApi.js.map +1 -1
  3. package/dist/rest/apis/OrderEntryApi.js +1 -1
  4. package/dist/rest/apis/OrderEntryApi.js.map +1 -1
  5. package/dist/rest/apis/ReferenceDataApi.js +1 -1
  6. package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
  7. package/dist/rest/apis/SpecsApi.js +1 -1
  8. package/dist/rest/apis/SpecsApi.js.map +1 -1
  9. package/dist/rest/apis/WalletDataApi.js +53 -1
  10. package/dist/rest/apis/WalletDataApi.js.map +1 -1
  11. package/dist/rest/models/index.js.map +1 -1
  12. package/dist/rest/runtime.js +1 -1
  13. package/dist/rest/runtime.js.map +1 -1
  14. package/dist/types/rest/apis/MarketDataApi.d.ts +17 -2
  15. package/dist/types/rest/apis/MarketDataApi.d.ts.map +1 -1
  16. package/dist/types/rest/apis/OrderEntryApi.d.ts +1 -1
  17. package/dist/types/rest/apis/ReferenceDataApi.d.ts +1 -1
  18. package/dist/types/rest/apis/SpecsApi.d.ts +1 -1
  19. package/dist/types/rest/apis/WalletDataApi.d.ts +17 -2
  20. package/dist/types/rest/apis/WalletDataApi.d.ts.map +1 -1
  21. package/dist/types/rest/models/index.d.ts +94 -0
  22. package/dist/types/rest/models/index.d.ts.map +1 -1
  23. package/dist/types/rest/runtime.d.ts +1 -1
  24. package/dist/types/websocket/types.d.ts +26 -0
  25. package/dist/types/websocket/types.d.ts.map +1 -1
  26. package/dist/websocket/types.js.map +1 -1
  27. package/package.json +2 -2
  28. package/rest/apis/MarketDataApi.ts +48 -1
  29. package/rest/apis/OrderEntryApi.ts +1 -1
  30. package/rest/apis/ReferenceDataApi.ts +1 -1
  31. package/rest/apis/SpecsApi.ts +1 -1
  32. package/rest/apis/WalletDataApi.ts +48 -1
  33. package/rest/models/index.ts +94 -0
  34. package/rest/runtime.ts +1 -1
  35. package/websocket/types.ts +29 -0
@@ -58,6 +58,12 @@ export interface MarketPerpExecutionUpdatePayload {
58
58
  channel: string;
59
59
  data: PerpExecution[];
60
60
  }
61
+ export interface MarketSpotExecutionBustUpdatePayload {
62
+ type: ChannelDataMessageType;
63
+ timestamp: number;
64
+ channel: string;
65
+ data: SpotExecutionBust[];
66
+ }
61
67
  export interface MarketSpotExecutionUpdatePayload {
62
68
  type: ChannelDataMessageType;
63
69
  timestamp: number;
@@ -197,6 +203,20 @@ export interface SpotExecution {
197
203
  timestamp: number;
198
204
  additionalProperties?: Map<string, any>;
199
205
  }
206
+ export interface SpotExecutionBust {
207
+ symbol: string;
208
+ accountId: number;
209
+ exchangeId: number;
210
+ makerAccountId: number;
211
+ orderId: string;
212
+ makerOrderId: string;
213
+ qty: string;
214
+ side: Side;
215
+ price: string;
216
+ reason: string;
217
+ timestamp: number;
218
+ additionalProperties?: Map<string, any>;
219
+ }
200
220
  export interface SubscribeMessagePayload {
201
221
  type: SubscribeMessageType;
202
222
  channel: string;
@@ -227,6 +247,12 @@ export interface WalletPerpExecutionUpdatePayload {
227
247
  channel: string;
228
248
  data: PerpExecution[];
229
249
  }
250
+ export interface WalletSpotExecutionBustUpdatePayload {
251
+ type: ChannelDataMessageType;
252
+ timestamp: number;
253
+ channel: string;
254
+ data: SpotExecutionBust[];
255
+ }
230
256
  export interface WalletSpotExecutionUpdatePayload {
231
257
  type: ChannelDataMessageType;
232
258
  timestamp: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["websocket/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;I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MAAM,qBAAqB,GAAG,YAAY,CAAC;AAEjD,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,KAAK,CAAC;AAExC,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAEnD,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC;AAErD,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,aAAa,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,oCAAoC;IACnD,IAAI,EAAE,sBAAsB,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,aAAa,EAAE,CAAC;CACvB"}
@@ -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 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"]}
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 MarketSpotExecutionBustUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: SpotExecutionBust[];\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 SpotExecutionBust {\n symbol: string;\n accountId: number;\n exchangeId: number;\n makerAccountId: number;\n orderId: string;\n makerOrderId: string;\n qty: string;\n side: Side;\n price: string;\n reason: string;\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 WalletSpotExecutionBustUpdatePayload {\n type: ChannelDataMessageType;\n timestamp: number;\n channel: string;\n data: SpotExecutionBust[];\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.8",
3
+ "version": "0.301.10",
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": "6f42d73f1d5aae480fedac5f5448684dae09b13d"
42
+ "gitHead": "ad95bf078b3be858c45df5252e3f7096e1f362a6"
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.1.3
7
+ * The version of the OpenAPI document: 2.1.7
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
  Price,
23
23
  RequestError,
24
24
  ServerError,
25
+ SpotExecutionBustList,
25
26
  SpotExecutionList,
26
27
  } from '../models/index';
27
28
 
@@ -41,6 +42,12 @@ export interface GetMarketPerpExecutionsRequest {
41
42
  endTime?: number;
42
43
  }
43
44
 
45
+ export interface GetMarketSpotExecutionBustsRequest {
46
+ symbol: string;
47
+ startTime?: number;
48
+ endTime?: number;
49
+ }
50
+
44
51
  export interface GetMarketSpotExecutionsRequest {
45
52
  symbol: string;
46
53
  startTime?: number;
@@ -172,6 +179,46 @@ export class MarketDataApi extends runtime.BaseAPI {
172
179
  return await response.value();
173
180
  }
174
181
 
182
+ /**
183
+ * Returns up to 100 spot execution busts (failed spot fills) for a given market.
184
+ * Get spot execution busts for market
185
+ */
186
+ async getMarketSpotExecutionBustsRaw(requestParameters: GetMarketSpotExecutionBustsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpotExecutionBustList>> {
187
+ if (requestParameters.symbol === null || requestParameters.symbol === undefined) {
188
+ throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getMarketSpotExecutionBusts.');
189
+ }
190
+
191
+ const queryParameters: any = {};
192
+
193
+ if (requestParameters.startTime !== undefined) {
194
+ queryParameters['startTime'] = requestParameters.startTime;
195
+ }
196
+
197
+ if (requestParameters.endTime !== undefined) {
198
+ queryParameters['endTime'] = requestParameters.endTime;
199
+ }
200
+
201
+ const headerParameters: runtime.HTTPHeaders = {};
202
+
203
+ const response = await this.request({
204
+ path: `/market/{symbol}/spotExecutionBusts`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters.symbol))),
205
+ method: 'GET',
206
+ headers: headerParameters,
207
+ query: queryParameters,
208
+ }, initOverrides);
209
+
210
+ return new runtime.JSONApiResponse(response);
211
+ }
212
+
213
+ /**
214
+ * Returns up to 100 spot execution busts (failed spot fills) for a given market.
215
+ * Get spot execution busts for market
216
+ */
217
+ async getMarketSpotExecutionBusts(requestParameters: GetMarketSpotExecutionBustsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpotExecutionBustList> {
218
+ const response = await this.getMarketSpotExecutionBustsRaw(requestParameters, initOverrides);
219
+ return await response.value();
220
+ }
221
+
175
222
  /**
176
223
  * Returns up to 100 spot executions for a given market.
177
224
  * Get spot executions for market
@@ -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.1.3
7
+ * The version of the OpenAPI document: 2.1.7
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.1.3
7
+ * The version of the OpenAPI document: 2.1.7
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.1.3
7
+ * The version of the OpenAPI document: 2.1.7
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.1.3
7
+ * The version of the OpenAPI document: 2.1.7
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
  Position,
23
23
  RequestError,
24
24
  ServerError,
25
+ SpotExecutionBustList,
25
26
  SpotExecutionList,
26
27
  WalletConfiguration,
27
28
  } from '../models/index';
@@ -52,6 +53,12 @@ export interface GetWalletPositionsRequest {
52
53
  address: string;
53
54
  }
54
55
 
56
+ export interface GetWalletSpotExecutionBustsRequest {
57
+ address: string;
58
+ startTime?: number;
59
+ endTime?: number;
60
+ }
61
+
55
62
  export interface GetWalletSpotExecutionsRequest {
56
63
  address: string;
57
64
  startTime?: number;
@@ -259,6 +266,46 @@ export class WalletDataApi extends runtime.BaseAPI {
259
266
  return await response.value();
260
267
  }
261
268
 
269
+ /**
270
+ * Returns up to 100 spot execution busts (failed spot fills) for a given wallet.
271
+ * Get wallet spot execution busts
272
+ */
273
+ async getWalletSpotExecutionBustsRaw(requestParameters: GetWalletSpotExecutionBustsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpotExecutionBustList>> {
274
+ if (requestParameters.address === null || requestParameters.address === undefined) {
275
+ throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletSpotExecutionBusts.');
276
+ }
277
+
278
+ const queryParameters: any = {};
279
+
280
+ if (requestParameters.startTime !== undefined) {
281
+ queryParameters['startTime'] = requestParameters.startTime;
282
+ }
283
+
284
+ if (requestParameters.endTime !== undefined) {
285
+ queryParameters['endTime'] = requestParameters.endTime;
286
+ }
287
+
288
+ const headerParameters: runtime.HTTPHeaders = {};
289
+
290
+ const response = await this.request({
291
+ path: `/wallet/{address}/spotExecutionBusts`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
292
+ method: 'GET',
293
+ headers: headerParameters,
294
+ query: queryParameters,
295
+ }, initOverrides);
296
+
297
+ return new runtime.JSONApiResponse(response);
298
+ }
299
+
300
+ /**
301
+ * Returns up to 100 spot execution busts (failed spot fills) for a given wallet.
302
+ * Get wallet spot execution busts
303
+ */
304
+ async getWalletSpotExecutionBusts(requestParameters: GetWalletSpotExecutionBustsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpotExecutionBustList> {
305
+ const response = await this.getWalletSpotExecutionBustsRaw(requestParameters, initOverrides);
306
+ return await response.value();
307
+ }
308
+
262
309
  /**
263
310
  * Returns up to 100 spot executions for a given wallet.
264
311
  * Get wallet spot executions
@@ -1263,6 +1263,100 @@ export interface SpotExecution {
1263
1263
  */
1264
1264
  timestamp: number;
1265
1265
  }
1266
+ /**
1267
+ *
1268
+ * @export
1269
+ * @interface SpotExecutionBust
1270
+ */
1271
+ export interface SpotExecutionBust {
1272
+ [key: string]: any | any;
1273
+ /**
1274
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
1275
+ * @type {string}
1276
+ * @memberof SpotExecutionBust
1277
+ */
1278
+ symbol: string;
1279
+ /**
1280
+ *
1281
+ * @type {number}
1282
+ * @memberof SpotExecutionBust
1283
+ */
1284
+ accountId: number;
1285
+ /**
1286
+ *
1287
+ * @type {number}
1288
+ * @memberof SpotExecutionBust
1289
+ */
1290
+ exchangeId: number;
1291
+ /**
1292
+ *
1293
+ * @type {number}
1294
+ * @memberof SpotExecutionBust
1295
+ */
1296
+ makerAccountId: number;
1297
+ /**
1298
+ * Order ID for the taker
1299
+ * @type {string}
1300
+ * @memberof SpotExecutionBust
1301
+ */
1302
+ orderId: string;
1303
+ /**
1304
+ * Order ID for the maker
1305
+ * @type {string}
1306
+ * @memberof SpotExecutionBust
1307
+ */
1308
+ makerOrderId: string;
1309
+ /**
1310
+ *
1311
+ * @type {string}
1312
+ * @memberof SpotExecutionBust
1313
+ */
1314
+ qty: string;
1315
+ /**
1316
+ *
1317
+ * @type {Side}
1318
+ * @memberof SpotExecutionBust
1319
+ */
1320
+ side: Side;
1321
+ /**
1322
+ *
1323
+ * @type {string}
1324
+ * @memberof SpotExecutionBust
1325
+ */
1326
+ price: string;
1327
+ /**
1328
+ * Hex-encoded revert reason bytes
1329
+ * @type {string}
1330
+ * @memberof SpotExecutionBust
1331
+ */
1332
+ reason: string;
1333
+ /**
1334
+ *
1335
+ * @type {number}
1336
+ * @memberof SpotExecutionBust
1337
+ */
1338
+ timestamp: number;
1339
+ }
1340
+ /**
1341
+ *
1342
+ * @export
1343
+ * @interface SpotExecutionBustList
1344
+ */
1345
+ export interface SpotExecutionBustList {
1346
+ [key: string]: any | any;
1347
+ /**
1348
+ *
1349
+ * @type {Array<SpotExecutionBust>}
1350
+ * @memberof SpotExecutionBustList
1351
+ */
1352
+ data: Array<SpotExecutionBust>;
1353
+ /**
1354
+ *
1355
+ * @type {PaginationMeta}
1356
+ * @memberof SpotExecutionBustList
1357
+ */
1358
+ meta: PaginationMeta;
1359
+ }
1266
1360
  /**
1267
1361
  *
1268
1362
  * @export
package/rest/runtime.ts CHANGED
@@ -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.1.3
7
+ * The version of the OpenAPI document: 2.1.7
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -72,6 +72,13 @@ export interface MarketPerpExecutionUpdatePayload {
72
72
  data: PerpExecution[];
73
73
  }
74
74
 
75
+ export interface MarketSpotExecutionBustUpdatePayload {
76
+ type: ChannelDataMessageType;
77
+ timestamp: number;
78
+ channel: string;
79
+ data: SpotExecutionBust[];
80
+ }
81
+
75
82
  export interface MarketSpotExecutionUpdatePayload {
76
83
  type: ChannelDataMessageType;
77
84
  timestamp: number;
@@ -233,6 +240,21 @@ export interface SpotExecution {
233
240
  additionalProperties?: Map<string, any>;
234
241
  }
235
242
 
243
+ export interface SpotExecutionBust {
244
+ symbol: string;
245
+ accountId: number;
246
+ exchangeId: number;
247
+ makerAccountId: number;
248
+ orderId: string;
249
+ makerOrderId: string;
250
+ qty: string;
251
+ side: Side;
252
+ price: string;
253
+ reason: string;
254
+ timestamp: number;
255
+ additionalProperties?: Map<string, any>;
256
+ }
257
+
236
258
  export interface SubscribeMessagePayload {
237
259
  type: SubscribeMessageType;
238
260
  channel: string;
@@ -273,6 +295,13 @@ export interface WalletPerpExecutionUpdatePayload {
273
295
  data: PerpExecution[];
274
296
  }
275
297
 
298
+ export interface WalletSpotExecutionBustUpdatePayload {
299
+ type: ChannelDataMessageType;
300
+ timestamp: number;
301
+ channel: string;
302
+ data: SpotExecutionBust[];
303
+ }
304
+
276
305
  export interface WalletSpotExecutionUpdatePayload {
277
306
  type: ChannelDataMessageType;
278
307
  timestamp: number;