@reyaxyz/api-v2-sdk 0.301.5 → 0.301.7

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 +312 -17
  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 +320 -18
  38. package/rest/runtime.ts +1 -1
  39. package/websocket/types.ts +70 -0
@@ -21,10 +21,10 @@ export interface Account {
21
21
  name: string;
22
22
  /**
23
23
  *
24
- * @type {number}
24
+ * @type {AccountType}
25
25
  * @memberof Account
26
26
  */
27
- lastUpdateAt: number;
27
+ type: AccountType;
28
28
  }
29
29
  /**
30
30
  *
@@ -51,7 +51,25 @@ export interface AccountBalance {
51
51
  * @memberof AccountBalance
52
52
  */
53
53
  realBalance: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof AccountBalance
58
+ */
59
+ balanceDEPRECATED: string;
54
60
  }
61
+
62
+ /**
63
+ * SPOT = account that can only trade spot, MAINPERP = main perp account, SUBPERP = sub perp account
64
+ * @export
65
+ */
66
+ export const AccountType = {
67
+ MAINPERP: 'MAINPERP',
68
+ SUBPERP: 'SUBPERP',
69
+ SPOT: 'SPOT'
70
+ } as const;
71
+ export type AccountType = typeof AccountType[keyof typeof AccountType];
72
+
55
73
  /**
56
74
  *
57
75
  * @export
@@ -66,7 +84,7 @@ export interface AssetDefinition {
66
84
  */
67
85
  asset: string;
68
86
  /**
69
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
87
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
70
88
  * @type {string}
71
89
  * @memberof AssetDefinition
72
90
  */
@@ -83,13 +101,36 @@ export interface AssetDefinition {
83
101
  * @memberof AssetDefinition
84
102
  */
85
103
  liquidationDiscount: string;
104
+ /**
105
+ * Status of asset (ENABLED = deposits and withdrawals allowed, WITHDRAWAL_ONLY = only withdrawals allowed)
106
+ * @type {string}
107
+ * @memberof AssetDefinition
108
+ */
109
+ status: AssetDefinitionStatusEnum;
86
110
  /**
87
111
  *
88
112
  * @type {number}
89
113
  * @memberof AssetDefinition
90
114
  */
91
- timestamp: number;
115
+ decimals: number;
116
+ /**
117
+ *
118
+ * @type {number}
119
+ * @memberof AssetDefinition
120
+ */
121
+ displayDecimals: number;
92
122
  }
123
+
124
+
125
+ /**
126
+ * @export
127
+ */
128
+ export const AssetDefinitionStatusEnum = {
129
+ ENABLED: 'ENABLED',
130
+ WITHDRAWAL_ONLY: 'WITHDRAWAL_ONLY'
131
+ } as const;
132
+ export type AssetDefinitionStatusEnum = typeof AssetDefinitionStatusEnum[keyof typeof AssetDefinitionStatusEnum];
133
+
93
134
  /**
94
135
  *
95
136
  * @export
@@ -98,17 +139,47 @@ export interface AssetDefinition {
98
139
  export interface CancelOrderRequest {
99
140
  [key: string]: any | any;
100
141
  /**
101
- * Order ID to cancel
142
+ * Internal matching engine order ID to cancel. Provide either orderId OR clientOrderId, not both. For spot markets, this is the order ID returned in the CreateOrderResponse.
102
143
  * @type {string}
103
144
  * @memberof CancelOrderRequest
104
145
  */
105
- orderId: string;
146
+ orderId?: string;
147
+ /**
148
+ *
149
+ * @type {number}
150
+ * @memberof CancelOrderRequest
151
+ */
152
+ clientOrderId?: number;
153
+ /**
154
+ *
155
+ * @type {number}
156
+ * @memberof CancelOrderRequest
157
+ */
158
+ accountId?: number;
159
+ /**
160
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
161
+ * @type {string}
162
+ * @memberof CancelOrderRequest
163
+ */
164
+ symbol?: string;
106
165
  /**
107
166
  * See signatures section for more details on how to generate.
108
167
  * @type {string}
109
168
  * @memberof CancelOrderRequest
110
169
  */
111
170
  signature: string;
171
+ /**
172
+ * See signatures and nonces section for more details. Compulsory for spot orders.
173
+ * @type {string}
174
+ * @memberof CancelOrderRequest
175
+ */
176
+ nonce?: string;
177
+ /**
178
+ *
179
+ * @type {number}
180
+ * @memberof CancelOrderRequest
181
+ */
182
+ expiresAfter?: number;
112
183
  }
113
184
  /**
114
185
  *
@@ -129,6 +200,12 @@ export interface CancelOrderResponse {
129
200
  * @memberof CancelOrderResponse
130
201
  */
131
202
  orderId: string;
203
+ /**
204
+ * Client-provided order ID echoed back from the request
205
+ * @type {number}
206
+ * @memberof CancelOrderResponse
207
+ */
208
+ clientOrderId?: number;
132
209
  }
133
210
  /**
134
211
  *
@@ -182,7 +259,7 @@ export interface CreateOrderRequest {
182
259
  */
183
260
  exchangeId: number;
184
261
  /**
185
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
262
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
186
263
  * @type {string}
187
264
  * @memberof CreateOrderRequest
188
265
  */
@@ -259,6 +336,12 @@ export interface CreateOrderRequest {
259
336
  * @memberof CreateOrderRequest
260
337
  */
261
338
  expiresAfter?: number;
339
+ /**
340
+ *
341
+ * @type {number}
342
+ * @memberof CreateOrderRequest
343
+ */
344
+ clientOrderId?: number;
262
345
  }
263
346
  /**
264
347
  *
@@ -273,13 +356,80 @@ export interface CreateOrderResponse {
273
356
  * @memberof CreateOrderResponse
274
357
  */
275
358
  status: OrderStatus;
359
+ /**
360
+ *
361
+ * @type {string}
362
+ * @memberof CreateOrderResponse
363
+ */
364
+ execQty?: string;
365
+ /**
366
+ *
367
+ * @type {string}
368
+ * @memberof CreateOrderResponse
369
+ */
370
+ cumQty?: string;
276
371
  /**
277
372
  * Created order ID (currently generated for all order types except IOC)
278
373
  * @type {string}
279
374
  * @memberof CreateOrderResponse
280
375
  */
281
376
  orderId?: string;
377
+ /**
378
+ *
379
+ * @type {number}
380
+ * @memberof CreateOrderResponse
381
+ */
382
+ clientOrderId?: number;
282
383
  }
384
+ /**
385
+ *
386
+ * @export
387
+ * @interface Depth
388
+ */
389
+ export interface Depth {
390
+ [key: string]: any | any;
391
+ /**
392
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
393
+ * @type {string}
394
+ * @memberof Depth
395
+ */
396
+ symbol: string;
397
+ /**
398
+ *
399
+ * @type {DepthType}
400
+ * @memberof Depth
401
+ */
402
+ type: DepthType;
403
+ /**
404
+ * Bid side levels aggregated by price, sorted descending by price
405
+ * @type {Array<Level>}
406
+ * @memberof Depth
407
+ */
408
+ bids: Array<Level>;
409
+ /**
410
+ * Ask side levels aggregated by price, sorted ascending by price
411
+ * @type {Array<Level>}
412
+ * @memberof Depth
413
+ */
414
+ asks: Array<Level>;
415
+ /**
416
+ *
417
+ * @type {number}
418
+ * @memberof Depth
419
+ */
420
+ updatedAt: number;
421
+ }
422
+
423
+ /**
424
+ * Depth message type (SNAPSHOT = full book, UPDATE = single level change)
425
+ * @export
426
+ */
427
+ export const DepthType = {
428
+ SNAPSHOT: 'SNAPSHOT',
429
+ UPDATE: 'UPDATE'
430
+ } as const;
431
+ export type DepthType = typeof DepthType[keyof typeof DepthType];
432
+
283
433
 
284
434
  /**
285
435
  * Type of execution
@@ -362,6 +512,26 @@ export interface GlobalFeeParameters {
362
512
  */
363
513
  affiliateReferrerRebate: string;
364
514
  }
515
+ /**
516
+ *
517
+ * @export
518
+ * @interface Level
519
+ */
520
+ export interface Level {
521
+ [key: string]: any | any;
522
+ /**
523
+ *
524
+ * @type {string}
525
+ * @memberof Level
526
+ */
527
+ px: string;
528
+ /**
529
+ *
530
+ * @type {string}
531
+ * @memberof Level
532
+ */
533
+ qty: string;
534
+ }
365
535
  /**
366
536
  *
367
537
  * @export
@@ -370,7 +540,7 @@ export interface GlobalFeeParameters {
370
540
  export interface LiquidityParameters {
371
541
  [key: string]: any | any;
372
542
  /**
373
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
543
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
374
544
  * @type {string}
375
545
  * @memberof LiquidityParameters
376
546
  */
@@ -396,7 +566,7 @@ export interface LiquidityParameters {
396
566
  export interface MarketDefinition {
397
567
  [key: string]: any | any;
398
568
  /**
399
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
569
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
400
570
  * @type {string}
401
571
  * @memberof MarketDefinition
402
572
  */
@@ -458,7 +628,7 @@ export interface MarketDefinition {
458
628
  export interface MarketSummary {
459
629
  [key: string]: any | any;
460
630
  /**
461
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
631
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
462
632
  * @type {string}
463
633
  * @memberof MarketSummary
464
634
  */
@@ -542,6 +712,58 @@ export interface MarketSummary {
542
712
  */
543
713
  pricesUpdatedAt?: number;
544
714
  }
715
+ /**
716
+ * Request to cancel all orders matching the specified filters
717
+ * @export
718
+ * @interface MassCancelRequest
719
+ */
720
+ export interface MassCancelRequest {
721
+ [key: string]: any | any;
722
+ /**
723
+ *
724
+ * @type {number}
725
+ * @memberof MassCancelRequest
726
+ */
727
+ accountId: number;
728
+ /**
729
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
730
+ * @type {string}
731
+ * @memberof MassCancelRequest
732
+ */
733
+ symbol?: string;
734
+ /**
735
+ * See signatures and nonces section for more details on how to generate.
736
+ * @type {string}
737
+ * @memberof MassCancelRequest
738
+ */
739
+ signature: string;
740
+ /**
741
+ * See signatures and nonces section for more details.
742
+ * @type {string}
743
+ * @memberof MassCancelRequest
744
+ */
745
+ nonce: string;
746
+ /**
747
+ *
748
+ * @type {number}
749
+ * @memberof MassCancelRequest
750
+ */
751
+ expiresAfter: number;
752
+ }
753
+ /**
754
+ *
755
+ * @export
756
+ * @interface MassCancelResponse
757
+ */
758
+ export interface MassCancelResponse {
759
+ [key: string]: any | any;
760
+ /**
761
+ *
762
+ * @type {number}
763
+ * @memberof MassCancelResponse
764
+ */
765
+ cancelledCount: number;
766
+ }
545
767
  /**
546
768
  *
547
769
  * @export
@@ -556,7 +778,7 @@ export interface Order {
556
778
  */
557
779
  exchangeId: number;
558
780
  /**
559
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
781
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
560
782
  * @type {string}
561
783
  * @memberof Order
562
784
  */
@@ -585,6 +807,12 @@ export interface Order {
585
807
  * @memberof Order
586
808
  */
587
809
  execQty?: string;
810
+ /**
811
+ *
812
+ * @type {string}
813
+ * @memberof Order
814
+ */
815
+ cumQty?: string;
588
816
  /**
589
817
  *
590
818
  * @type {Side}
@@ -711,7 +939,7 @@ export interface PerpExecution {
711
939
  */
712
940
  exchangeId: number;
713
941
  /**
714
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
942
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
715
943
  * @type {string}
716
944
  * @memberof PerpExecution
717
945
  */
@@ -799,7 +1027,7 @@ export interface Position {
799
1027
  */
800
1028
  exchangeId: number;
801
1029
  /**
802
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
1030
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
803
1031
  * @type {string}
804
1032
  * @memberof Position
805
1033
  */
@@ -849,7 +1077,7 @@ export interface Position {
849
1077
  export interface Price {
850
1078
  [key: string]: any | any;
851
1079
  /**
852
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
1080
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
853
1081
  * @type {string}
854
1082
  * @memberof Price
855
1083
  */
@@ -904,7 +1132,13 @@ export const RequestErrorCode = {
904
1132
  NO_PRICES_FOUND_FOR_SYMBOL: 'NO_PRICES_FOUND_FOR_SYMBOL',
905
1133
  INPUT_VALIDATION_ERROR: 'INPUT_VALIDATION_ERROR',
906
1134
  CREATE_ORDER_OTHER_ERROR: 'CREATE_ORDER_OTHER_ERROR',
907
- CANCEL_ORDER_OTHER_ERROR: 'CANCEL_ORDER_OTHER_ERROR'
1135
+ CANCEL_ORDER_OTHER_ERROR: 'CANCEL_ORDER_OTHER_ERROR',
1136
+ ORDER_DEADLINE_PASSED_ERROR: 'ORDER_DEADLINE_PASSED_ERROR',
1137
+ ORDER_DEADLINE_TOO_HIGH_ERROR: 'ORDER_DEADLINE_TOO_HIGH_ERROR',
1138
+ INVALID_NONCE_ERROR: 'INVALID_NONCE_ERROR',
1139
+ UNAVAILABLE_MATCHING_ENGINE_ERROR: 'UNAVAILABLE_MATCHING_ENGINE_ERROR',
1140
+ UNAUTHORIZED_SIGNATURE_ERROR: 'UNAUTHORIZED_SIGNATURE_ERROR',
1141
+ NUMERIC_OVERFLOW_ERROR: 'NUMERIC_OVERFLOW_ERROR'
908
1142
  } as const;
909
1143
  export type RequestErrorCode = typeof RequestErrorCode[keyof typeof RequestErrorCode];
910
1144
 
@@ -961,9 +1195,9 @@ export interface SpotExecution {
961
1195
  * @type {number}
962
1196
  * @memberof SpotExecution
963
1197
  */
964
- exchangeId: number;
1198
+ exchangeId?: number;
965
1199
  /**
966
- * Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
1200
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
967
1201
  * @type {string}
968
1202
  * @memberof SpotExecution
969
1203
  */
@@ -974,6 +1208,24 @@ export interface SpotExecution {
974
1208
  * @memberof SpotExecution
975
1209
  */
976
1210
  accountId: number;
1211
+ /**
1212
+ *
1213
+ * @type {number}
1214
+ * @memberof SpotExecution
1215
+ */
1216
+ makerAccountId: number;
1217
+ /**
1218
+ * Order ID for the taker
1219
+ * @type {string}
1220
+ * @memberof SpotExecution
1221
+ */
1222
+ orderId?: string;
1223
+ /**
1224
+ * Order ID for the maker
1225
+ * @type {string}
1226
+ * @memberof SpotExecution
1227
+ */
1228
+ makerOrderId?: string;
977
1229
  /**
978
1230
  *
979
1231
  * @type {Side}
@@ -991,7 +1243,7 @@ export interface SpotExecution {
991
1243
  * @type {string}
992
1244
  * @memberof SpotExecution
993
1245
  */
994
- price?: string;
1246
+ price: string;
995
1247
  /**
996
1248
  *
997
1249
  * @type {string}
@@ -1031,6 +1283,56 @@ export interface SpotExecutionList {
1031
1283
  */
1032
1284
  meta: PaginationMeta;
1033
1285
  }
1286
+ /**
1287
+ *
1288
+ * @export
1289
+ * @interface SpotMarketDefinition
1290
+ */
1291
+ export interface SpotMarketDefinition {
1292
+ [key: string]: any | any;
1293
+ /**
1294
+ * Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
1295
+ * @type {string}
1296
+ * @memberof SpotMarketDefinition
1297
+ */
1298
+ symbol: string;
1299
+ /**
1300
+ *
1301
+ * @type {number}
1302
+ * @memberof SpotMarketDefinition
1303
+ */
1304
+ marketId: number;
1305
+ /**
1306
+ * Base asset symbol
1307
+ * @type {string}
1308
+ * @memberof SpotMarketDefinition
1309
+ */
1310
+ baseAsset: string;
1311
+ /**
1312
+ * Quote asset symbol
1313
+ * @type {string}
1314
+ * @memberof SpotMarketDefinition
1315
+ */
1316
+ quoteAsset: string;
1317
+ /**
1318
+ *
1319
+ * @type {string}
1320
+ * @memberof SpotMarketDefinition
1321
+ */
1322
+ minOrderQty: string;
1323
+ /**
1324
+ *
1325
+ * @type {string}
1326
+ * @memberof SpotMarketDefinition
1327
+ */
1328
+ qtyStepSize: string;
1329
+ /**
1330
+ *
1331
+ * @type {string}
1332
+ * @memberof SpotMarketDefinition
1333
+ */
1334
+ tickSize: string;
1335
+ }
1034
1336
 
1035
1337
  /**
1036
1338
  * Fee tier type (REGULAR = Standard tier, VIP = VIP tier)
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.0.6
7
+ * The version of the OpenAPI document: 2.1.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,8 +14,34 @@ export const WebSocketServers = {
14
14
  test: 'wss://websocket-testnet.reya.xyz'
15
15
  } as const;
16
16
 
17
+ export interface AccountBalance {
18
+ accountId: number;
19
+ asset: string;
20
+ realBalance: string;
21
+ balanceDeprecated: string;
22
+ additionalProperties?: Map<string, any>;
23
+ }
24
+
25
+ export interface AccountBalanceUpdatePayload {
26
+ type: ChannelDataMessageType;
27
+ timestamp: number;
28
+ channel: string;
29
+ data: AccountBalance[];
30
+ }
31
+
17
32
  export type ChannelDataMessageType = "channel_data";
18
33
 
34
+ export interface Depth {
35
+ symbol: string;
36
+ type: DepthType;
37
+ bids: Level[];
38
+ asks: Level[];
39
+ updatedAt: number;
40
+ additionalProperties?: Map<string, any>;
41
+ }
42
+
43
+ export type DepthType = "SNAPSHOT" | "UPDATE";
44
+
19
45
  export interface ErrorMessagePayload {
20
46
  type: ErrorMessageType;
21
47
  message: string;
@@ -26,6 +52,19 @@ export type ErrorMessageType = "error";
26
52
 
27
53
  export type ExecutionType = "ORDER_MATCH" | "LIQUIDATION" | "ADL";
28
54
 
55
+ export interface Level {
56
+ px: string;
57
+ qty: string;
58
+ additionalProperties?: Map<string, any>;
59
+ }
60
+
61
+ export interface MarketDepthUpdatePayload {
62
+ type: ChannelDataMessageType;
63
+ timestamp: number;
64
+ channel: string;
65
+ data: Depth;
66
+ }
67
+
29
68
  export interface MarketPerpExecutionUpdatePayload {
30
69
  type: ChannelDataMessageType;
31
70
  timestamp: number;
@@ -33,6 +72,13 @@ export interface MarketPerpExecutionUpdatePayload {
33
72
  data: PerpExecution[];
34
73
  }
35
74
 
75
+ export interface MarketSpotExecutionUpdatePayload {
76
+ type: ChannelDataMessageType;
77
+ timestamp: number;
78
+ channel: string;
79
+ data: SpotExecution[];
80
+ }
81
+
36
82
  export interface MarketSummary {
37
83
  symbol: string;
38
84
  updatedAt: number;
@@ -74,6 +120,7 @@ export interface Order {
74
120
  orderId: string;
75
121
  qty?: string;
76
122
  execQty?: string;
123
+ cumQty?: string;
77
124
  side: Side;
78
125
  limitPx: string;
79
126
  orderType: OrderType;
@@ -170,6 +217,22 @@ export interface PricesUpdatePayload {
170
217
 
171
218
  export type Side = "B" | "A";
172
219
 
220
+ export interface SpotExecution {
221
+ exchangeId?: number;
222
+ symbol: string;
223
+ accountId: number;
224
+ makerAccountId: number;
225
+ orderId?: string;
226
+ makerOrderId?: string;
227
+ side: Side;
228
+ qty: string;
229
+ price: string;
230
+ fee: string;
231
+ type: ExecutionType;
232
+ timestamp: number;
233
+ additionalProperties?: Map<string, any>;
234
+ }
235
+
173
236
  export interface SubscribeMessagePayload {
174
237
  type: SubscribeMessageType;
175
238
  channel: string;
@@ -210,3 +273,10 @@ export interface WalletPerpExecutionUpdatePayload {
210
273
  data: PerpExecution[];
211
274
  }
212
275
 
276
+ export interface WalletSpotExecutionUpdatePayload {
277
+ type: ChannelDataMessageType;
278
+ timestamp: number;
279
+ channel: string;
280
+ data: SpotExecution[];
281
+ }
282
+