@reyaxyz/api-v2-sdk 0.301.4 → 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.
- package/dist/index.js.map +1 -1
- package/dist/rest/apis/MarketDataApi.js +99 -1
- package/dist/rest/apis/MarketDataApi.js.map +1 -1
- package/dist/rest/apis/OrderEntryApi.js +47 -1
- package/dist/rest/apis/OrderEntryApi.js.map +1 -1
- package/dist/rest/apis/ReferenceDataApi.js +42 -1
- package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
- package/dist/rest/apis/SpecsApi.js +1 -1
- package/dist/rest/apis/SpecsApi.js.map +1 -1
- package/dist/rest/apis/WalletDataApi.js +1 -1
- package/dist/rest/apis/WalletDataApi.js.map +1 -1
- package/dist/rest/models/index.js +32 -2
- package/dist/rest/models/index.js.map +1 -1
- package/dist/rest/runtime.js +1 -1
- package/dist/rest/runtime.js.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/rest/apis/MarketDataApi.d.ts +30 -2
- package/dist/types/rest/apis/MarketDataApi.d.ts.map +1 -1
- package/dist/types/rest/apis/OrderEntryApi.d.ts +15 -2
- package/dist/types/rest/apis/OrderEntryApi.d.ts.map +1 -1
- package/dist/types/rest/apis/ReferenceDataApi.d.ts +10 -2
- package/dist/types/rest/apis/ReferenceDataApi.d.ts.map +1 -1
- package/dist/types/rest/apis/SpecsApi.d.ts +1 -1
- package/dist/types/rest/apis/WalletDataApi.d.ts +1 -1
- package/dist/types/rest/models/index.d.ts +373 -98
- package/dist/types/rest/models/index.d.ts.map +1 -1
- package/dist/types/rest/runtime.d.ts +1 -1
- package/dist/types/websocket/types.d.ts +61 -0
- package/dist/types/websocket/types.d.ts.map +1 -1
- package/dist/websocket/types.js.map +1 -1
- package/package.json +2 -2
- package/rest/apis/MarketDataApi.ts +85 -1
- package/rest/apis/OrderEntryApi.ts +38 -1
- package/rest/apis/ReferenceDataApi.ts +28 -1
- package/rest/apis/SpecsApi.ts +1 -1
- package/rest/apis/WalletDataApi.ts +1 -1
- package/rest/models/index.ts +381 -99
- package/rest/runtime.ts +1 -1
- package/websocket/types.ts +70 -0
|
@@ -18,7 +18,13 @@ export interface Account {
|
|
|
18
18
|
*/
|
|
19
19
|
name: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
*
|
|
22
|
+
* @type {AccountType}
|
|
23
|
+
* @memberof Account
|
|
24
|
+
*/
|
|
25
|
+
type: AccountType;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
22
28
|
* @type {number}
|
|
23
29
|
* @memberof Account
|
|
24
30
|
*/
|
|
@@ -44,12 +50,28 @@ export interface AccountBalance {
|
|
|
44
50
|
*/
|
|
45
51
|
asset: string;
|
|
46
52
|
/**
|
|
47
|
-
*
|
|
53
|
+
*
|
|
48
54
|
* @type {string}
|
|
49
55
|
* @memberof AccountBalance
|
|
50
56
|
*/
|
|
51
57
|
realBalance: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AccountBalance
|
|
62
|
+
*/
|
|
63
|
+
balanceDEPRECATED: string;
|
|
52
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* SPOT = account that can only trade spot, MAINPERP = main perp account, SUBPERP = sub perp account
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const AccountType: {
|
|
70
|
+
readonly MAINPERP: "MAINPERP";
|
|
71
|
+
readonly SUBPERP: "SUBPERP";
|
|
72
|
+
readonly SPOT: "SPOT";
|
|
73
|
+
};
|
|
74
|
+
export type AccountType = typeof AccountType[keyof typeof AccountType];
|
|
53
75
|
/**
|
|
54
76
|
*
|
|
55
77
|
* @export
|
|
@@ -64,30 +86,56 @@ export interface AssetDefinition {
|
|
|
64
86
|
*/
|
|
65
87
|
asset: string;
|
|
66
88
|
/**
|
|
67
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
89
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
68
90
|
* @type {string}
|
|
69
91
|
* @memberof AssetDefinition
|
|
70
92
|
*/
|
|
71
93
|
spotMarketSymbol: string;
|
|
72
94
|
/**
|
|
73
|
-
*
|
|
95
|
+
*
|
|
74
96
|
* @type {string}
|
|
75
97
|
* @memberof AssetDefinition
|
|
76
98
|
*/
|
|
77
99
|
priceHaircut: string;
|
|
78
100
|
/**
|
|
79
|
-
*
|
|
101
|
+
*
|
|
80
102
|
* @type {string}
|
|
81
103
|
* @memberof AssetDefinition
|
|
82
104
|
*/
|
|
83
105
|
liquidationDiscount: string;
|
|
84
106
|
/**
|
|
85
|
-
*
|
|
107
|
+
*
|
|
86
108
|
* @type {number}
|
|
87
109
|
* @memberof AssetDefinition
|
|
88
110
|
*/
|
|
89
111
|
timestamp: number;
|
|
112
|
+
/**
|
|
113
|
+
* Status of asset (ENABLED = deposits and withdrawals allowed, WITHDRAWAL_ONLY = only withdrawals allowed)
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof AssetDefinition
|
|
116
|
+
*/
|
|
117
|
+
status: AssetDefinitionStatusEnum;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof AssetDefinition
|
|
122
|
+
*/
|
|
123
|
+
decimals: number;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof AssetDefinition
|
|
128
|
+
*/
|
|
129
|
+
displayDecimals: number;
|
|
90
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export declare const AssetDefinitionStatusEnum: {
|
|
135
|
+
readonly ENABLED: "ENABLED";
|
|
136
|
+
readonly WITHDRAWAL_ONLY: "WITHDRAWAL_ONLY";
|
|
137
|
+
};
|
|
138
|
+
export type AssetDefinitionStatusEnum = typeof AssetDefinitionStatusEnum[keyof typeof AssetDefinitionStatusEnum];
|
|
91
139
|
/**
|
|
92
140
|
*
|
|
93
141
|
* @export
|
|
@@ -96,17 +144,47 @@ export interface AssetDefinition {
|
|
|
96
144
|
export interface CancelOrderRequest {
|
|
97
145
|
[key: string]: any | any;
|
|
98
146
|
/**
|
|
99
|
-
*
|
|
147
|
+
* 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.
|
|
100
148
|
* @type {string}
|
|
101
149
|
* @memberof CancelOrderRequest
|
|
102
150
|
*/
|
|
103
|
-
orderId
|
|
151
|
+
orderId?: string;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {number}
|
|
155
|
+
* @memberof CancelOrderRequest
|
|
156
|
+
*/
|
|
157
|
+
clientOrderId?: number;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {number}
|
|
161
|
+
* @memberof CancelOrderRequest
|
|
162
|
+
*/
|
|
163
|
+
accountId?: number;
|
|
164
|
+
/**
|
|
165
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof CancelOrderRequest
|
|
168
|
+
*/
|
|
169
|
+
symbol?: string;
|
|
104
170
|
/**
|
|
105
171
|
* See signatures section for more details on how to generate.
|
|
106
172
|
* @type {string}
|
|
107
173
|
* @memberof CancelOrderRequest
|
|
108
174
|
*/
|
|
109
175
|
signature: string;
|
|
176
|
+
/**
|
|
177
|
+
* See signatures and nonces section for more details. Compulsory for spot orders.
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof CancelOrderRequest
|
|
180
|
+
*/
|
|
181
|
+
nonce?: string;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {number}
|
|
185
|
+
* @memberof CancelOrderRequest
|
|
186
|
+
*/
|
|
187
|
+
expiresAfter?: number;
|
|
110
188
|
}
|
|
111
189
|
/**
|
|
112
190
|
*
|
|
@@ -127,6 +205,12 @@ export interface CancelOrderResponse {
|
|
|
127
205
|
* @memberof CancelOrderResponse
|
|
128
206
|
*/
|
|
129
207
|
orderId: string;
|
|
208
|
+
/**
|
|
209
|
+
* Client-provided order ID echoed back from the request
|
|
210
|
+
* @type {number}
|
|
211
|
+
* @memberof CancelOrderResponse
|
|
212
|
+
*/
|
|
213
|
+
clientOrderId?: number;
|
|
130
214
|
}
|
|
131
215
|
/**
|
|
132
216
|
*
|
|
@@ -180,7 +264,7 @@ export interface CreateOrderRequest {
|
|
|
180
264
|
*/
|
|
181
265
|
exchangeId: number;
|
|
182
266
|
/**
|
|
183
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
267
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
184
268
|
* @type {string}
|
|
185
269
|
* @memberof CreateOrderRequest
|
|
186
270
|
*/
|
|
@@ -222,7 +306,7 @@ export interface CreateOrderRequest {
|
|
|
222
306
|
*/
|
|
223
307
|
timeInForce?: TimeInForce;
|
|
224
308
|
/**
|
|
225
|
-
*
|
|
309
|
+
*
|
|
226
310
|
* @type {string}
|
|
227
311
|
* @memberof CreateOrderRequest
|
|
228
312
|
*/
|
|
@@ -246,17 +330,23 @@ export interface CreateOrderRequest {
|
|
|
246
330
|
*/
|
|
247
331
|
nonce: string;
|
|
248
332
|
/**
|
|
249
|
-
*
|
|
333
|
+
*
|
|
250
334
|
* @type {string}
|
|
251
335
|
* @memberof CreateOrderRequest
|
|
252
336
|
*/
|
|
253
337
|
signerWallet: string;
|
|
254
338
|
/**
|
|
255
|
-
*
|
|
339
|
+
*
|
|
256
340
|
* @type {number}
|
|
257
341
|
* @memberof CreateOrderRequest
|
|
258
342
|
*/
|
|
259
343
|
expiresAfter?: number;
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @type {number}
|
|
347
|
+
* @memberof CreateOrderRequest
|
|
348
|
+
*/
|
|
349
|
+
clientOrderId?: number;
|
|
260
350
|
}
|
|
261
351
|
/**
|
|
262
352
|
*
|
|
@@ -271,13 +361,78 @@ export interface CreateOrderResponse {
|
|
|
271
361
|
* @memberof CreateOrderResponse
|
|
272
362
|
*/
|
|
273
363
|
status: OrderStatus;
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @type {string}
|
|
367
|
+
* @memberof CreateOrderResponse
|
|
368
|
+
*/
|
|
369
|
+
execQty?: string;
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
* @type {string}
|
|
373
|
+
* @memberof CreateOrderResponse
|
|
374
|
+
*/
|
|
375
|
+
cumQty?: string;
|
|
274
376
|
/**
|
|
275
377
|
* Created order ID (currently generated for all order types except IOC)
|
|
276
378
|
* @type {string}
|
|
277
379
|
* @memberof CreateOrderResponse
|
|
278
380
|
*/
|
|
279
381
|
orderId?: string;
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @type {number}
|
|
385
|
+
* @memberof CreateOrderResponse
|
|
386
|
+
*/
|
|
387
|
+
clientOrderId?: number;
|
|
280
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @export
|
|
392
|
+
* @interface Depth
|
|
393
|
+
*/
|
|
394
|
+
export interface Depth {
|
|
395
|
+
[key: string]: any | any;
|
|
396
|
+
/**
|
|
397
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @memberof Depth
|
|
400
|
+
*/
|
|
401
|
+
symbol: string;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @type {DepthType}
|
|
405
|
+
* @memberof Depth
|
|
406
|
+
*/
|
|
407
|
+
type: DepthType;
|
|
408
|
+
/**
|
|
409
|
+
* Bid side levels aggregated by price, sorted descending by price
|
|
410
|
+
* @type {Array<Level>}
|
|
411
|
+
* @memberof Depth
|
|
412
|
+
*/
|
|
413
|
+
bids: Array<Level>;
|
|
414
|
+
/**
|
|
415
|
+
* Ask side levels aggregated by price, sorted ascending by price
|
|
416
|
+
* @type {Array<Level>}
|
|
417
|
+
* @memberof Depth
|
|
418
|
+
*/
|
|
419
|
+
asks: Array<Level>;
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @type {number}
|
|
423
|
+
* @memberof Depth
|
|
424
|
+
*/
|
|
425
|
+
updatedAt: number;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Depth message type (SNAPSHOT = full book, UPDATE = single level change)
|
|
429
|
+
* @export
|
|
430
|
+
*/
|
|
431
|
+
export declare const DepthType: {
|
|
432
|
+
readonly SNAPSHOT: "SNAPSHOT";
|
|
433
|
+
readonly UPDATE: "UPDATE";
|
|
434
|
+
};
|
|
435
|
+
export type DepthType = typeof DepthType[keyof typeof DepthType];
|
|
281
436
|
/**
|
|
282
437
|
* Type of execution
|
|
283
438
|
* @export
|
|
@@ -302,19 +457,19 @@ export interface FeeTierParameters {
|
|
|
302
457
|
*/
|
|
303
458
|
tierId: number;
|
|
304
459
|
/**
|
|
305
|
-
*
|
|
460
|
+
*
|
|
306
461
|
* @type {string}
|
|
307
462
|
* @memberof FeeTierParameters
|
|
308
463
|
*/
|
|
309
464
|
takerFee: string;
|
|
310
465
|
/**
|
|
311
|
-
*
|
|
466
|
+
*
|
|
312
467
|
* @type {string}
|
|
313
468
|
* @memberof FeeTierParameters
|
|
314
469
|
*/
|
|
315
470
|
makerFee: string;
|
|
316
471
|
/**
|
|
317
|
-
*
|
|
472
|
+
*
|
|
318
473
|
* @type {string}
|
|
319
474
|
* @memberof FeeTierParameters
|
|
320
475
|
*/
|
|
@@ -334,30 +489,50 @@ export interface FeeTierParameters {
|
|
|
334
489
|
export interface GlobalFeeParameters {
|
|
335
490
|
[key: string]: any | any;
|
|
336
491
|
/**
|
|
337
|
-
*
|
|
492
|
+
*
|
|
338
493
|
* @type {string}
|
|
339
494
|
* @memberof GlobalFeeParameters
|
|
340
495
|
*/
|
|
341
496
|
ogDiscount: string;
|
|
342
497
|
/**
|
|
343
|
-
*
|
|
498
|
+
*
|
|
344
499
|
* @type {string}
|
|
345
500
|
* @memberof GlobalFeeParameters
|
|
346
501
|
*/
|
|
347
502
|
refereeDiscount: string;
|
|
348
503
|
/**
|
|
349
|
-
*
|
|
504
|
+
*
|
|
350
505
|
* @type {string}
|
|
351
506
|
* @memberof GlobalFeeParameters
|
|
352
507
|
*/
|
|
353
508
|
referrerRebate: string;
|
|
354
509
|
/**
|
|
355
|
-
*
|
|
510
|
+
*
|
|
356
511
|
* @type {string}
|
|
357
512
|
* @memberof GlobalFeeParameters
|
|
358
513
|
*/
|
|
359
514
|
affiliateReferrerRebate: string;
|
|
360
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @export
|
|
519
|
+
* @interface Level
|
|
520
|
+
*/
|
|
521
|
+
export interface Level {
|
|
522
|
+
[key: string]: any | any;
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @type {string}
|
|
526
|
+
* @memberof Level
|
|
527
|
+
*/
|
|
528
|
+
px: string;
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @type {string}
|
|
532
|
+
* @memberof Level
|
|
533
|
+
*/
|
|
534
|
+
qty: string;
|
|
535
|
+
}
|
|
361
536
|
/**
|
|
362
537
|
*
|
|
363
538
|
* @export
|
|
@@ -366,19 +541,19 @@ export interface GlobalFeeParameters {
|
|
|
366
541
|
export interface LiquidityParameters {
|
|
367
542
|
[key: string]: any | any;
|
|
368
543
|
/**
|
|
369
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
544
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
370
545
|
* @type {string}
|
|
371
546
|
* @memberof LiquidityParameters
|
|
372
547
|
*/
|
|
373
548
|
symbol: string;
|
|
374
549
|
/**
|
|
375
|
-
*
|
|
550
|
+
*
|
|
376
551
|
* @type {string}
|
|
377
552
|
* @memberof LiquidityParameters
|
|
378
553
|
*/
|
|
379
554
|
depth: string;
|
|
380
555
|
/**
|
|
381
|
-
*
|
|
556
|
+
*
|
|
382
557
|
* @type {string}
|
|
383
558
|
* @memberof LiquidityParameters
|
|
384
559
|
*/
|
|
@@ -392,13 +567,13 @@ export interface LiquidityParameters {
|
|
|
392
567
|
export interface MarketDefinition {
|
|
393
568
|
[key: string]: any | any;
|
|
394
569
|
/**
|
|
395
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
570
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
396
571
|
* @type {string}
|
|
397
572
|
* @memberof MarketDefinition
|
|
398
573
|
*/
|
|
399
574
|
symbol: string;
|
|
400
575
|
/**
|
|
401
|
-
*
|
|
576
|
+
*
|
|
402
577
|
* @type {number}
|
|
403
578
|
* @memberof MarketDefinition
|
|
404
579
|
*/
|
|
@@ -410,37 +585,37 @@ export interface MarketDefinition {
|
|
|
410
585
|
*/
|
|
411
586
|
minOrderQty: string;
|
|
412
587
|
/**
|
|
413
|
-
*
|
|
588
|
+
*
|
|
414
589
|
* @type {string}
|
|
415
590
|
* @memberof MarketDefinition
|
|
416
591
|
*/
|
|
417
592
|
qtyStepSize: string;
|
|
418
593
|
/**
|
|
419
|
-
*
|
|
594
|
+
*
|
|
420
595
|
* @type {string}
|
|
421
596
|
* @memberof MarketDefinition
|
|
422
597
|
*/
|
|
423
598
|
tickSize: string;
|
|
424
599
|
/**
|
|
425
|
-
*
|
|
600
|
+
*
|
|
426
601
|
* @type {string}
|
|
427
602
|
* @memberof MarketDefinition
|
|
428
603
|
*/
|
|
429
604
|
liquidationMarginParameter: string;
|
|
430
605
|
/**
|
|
431
|
-
*
|
|
606
|
+
*
|
|
432
607
|
* @type {string}
|
|
433
608
|
* @memberof MarketDefinition
|
|
434
609
|
*/
|
|
435
610
|
initialMarginParameter: string;
|
|
436
611
|
/**
|
|
437
|
-
*
|
|
612
|
+
*
|
|
438
613
|
* @type {number}
|
|
439
614
|
* @memberof MarketDefinition
|
|
440
615
|
*/
|
|
441
616
|
maxLeverage: number;
|
|
442
617
|
/**
|
|
443
|
-
*
|
|
618
|
+
*
|
|
444
619
|
* @type {string}
|
|
445
620
|
* @memberof MarketDefinition
|
|
446
621
|
*/
|
|
@@ -454,55 +629,55 @@ export interface MarketDefinition {
|
|
|
454
629
|
export interface MarketSummary {
|
|
455
630
|
[key: string]: any | any;
|
|
456
631
|
/**
|
|
457
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
632
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
458
633
|
* @type {string}
|
|
459
634
|
* @memberof MarketSummary
|
|
460
635
|
*/
|
|
461
636
|
symbol: string;
|
|
462
637
|
/**
|
|
463
|
-
*
|
|
638
|
+
*
|
|
464
639
|
* @type {number}
|
|
465
640
|
* @memberof MarketSummary
|
|
466
641
|
*/
|
|
467
642
|
updatedAt: number;
|
|
468
643
|
/**
|
|
469
|
-
*
|
|
644
|
+
*
|
|
470
645
|
* @type {string}
|
|
471
646
|
* @memberof MarketSummary
|
|
472
647
|
*/
|
|
473
648
|
longOiQty: string;
|
|
474
649
|
/**
|
|
475
|
-
*
|
|
650
|
+
*
|
|
476
651
|
* @type {string}
|
|
477
652
|
* @memberof MarketSummary
|
|
478
653
|
*/
|
|
479
654
|
shortOiQty: string;
|
|
480
655
|
/**
|
|
481
|
-
*
|
|
656
|
+
*
|
|
482
657
|
* @type {string}
|
|
483
658
|
* @memberof MarketSummary
|
|
484
659
|
*/
|
|
485
660
|
oiQty: string;
|
|
486
661
|
/**
|
|
487
|
-
*
|
|
662
|
+
*
|
|
488
663
|
* @type {string}
|
|
489
664
|
* @memberof MarketSummary
|
|
490
665
|
*/
|
|
491
666
|
fundingRate: string;
|
|
492
667
|
/**
|
|
493
|
-
*
|
|
668
|
+
*
|
|
494
669
|
* @type {string}
|
|
495
670
|
* @memberof MarketSummary
|
|
496
671
|
*/
|
|
497
672
|
longFundingValue: string;
|
|
498
673
|
/**
|
|
499
|
-
*
|
|
674
|
+
*
|
|
500
675
|
* @type {string}
|
|
501
676
|
* @memberof MarketSummary
|
|
502
677
|
*/
|
|
503
678
|
shortFundingValue: string;
|
|
504
679
|
/**
|
|
505
|
-
*
|
|
680
|
+
*
|
|
506
681
|
* @type {string}
|
|
507
682
|
* @memberof MarketSummary
|
|
508
683
|
*/
|
|
@@ -520,24 +695,76 @@ export interface MarketSummary {
|
|
|
520
695
|
*/
|
|
521
696
|
pxChange24h?: string;
|
|
522
697
|
/**
|
|
523
|
-
*
|
|
698
|
+
*
|
|
524
699
|
* @type {string}
|
|
525
700
|
* @memberof MarketSummary
|
|
526
701
|
*/
|
|
527
702
|
throttledOraclePrice?: string;
|
|
528
703
|
/**
|
|
529
|
-
*
|
|
704
|
+
*
|
|
530
705
|
* @type {string}
|
|
531
706
|
* @memberof MarketSummary
|
|
532
707
|
*/
|
|
533
708
|
throttledPoolPrice?: string;
|
|
534
709
|
/**
|
|
535
|
-
*
|
|
710
|
+
*
|
|
536
711
|
* @type {number}
|
|
537
712
|
* @memberof MarketSummary
|
|
538
713
|
*/
|
|
539
714
|
pricesUpdatedAt?: number;
|
|
540
715
|
}
|
|
716
|
+
/**
|
|
717
|
+
* Request to cancel all orders matching the specified filters
|
|
718
|
+
* @export
|
|
719
|
+
* @interface MassCancelRequest
|
|
720
|
+
*/
|
|
721
|
+
export interface MassCancelRequest {
|
|
722
|
+
[key: string]: any | any;
|
|
723
|
+
/**
|
|
724
|
+
*
|
|
725
|
+
* @type {number}
|
|
726
|
+
* @memberof MassCancelRequest
|
|
727
|
+
*/
|
|
728
|
+
accountId: number;
|
|
729
|
+
/**
|
|
730
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
731
|
+
* @type {string}
|
|
732
|
+
* @memberof MassCancelRequest
|
|
733
|
+
*/
|
|
734
|
+
symbol?: string;
|
|
735
|
+
/**
|
|
736
|
+
* See signatures and nonces section for more details on how to generate.
|
|
737
|
+
* @type {string}
|
|
738
|
+
* @memberof MassCancelRequest
|
|
739
|
+
*/
|
|
740
|
+
signature: string;
|
|
741
|
+
/**
|
|
742
|
+
* See signatures and nonces section for more details.
|
|
743
|
+
* @type {string}
|
|
744
|
+
* @memberof MassCancelRequest
|
|
745
|
+
*/
|
|
746
|
+
nonce: string;
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @type {number}
|
|
750
|
+
* @memberof MassCancelRequest
|
|
751
|
+
*/
|
|
752
|
+
expiresAfter: number;
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @export
|
|
757
|
+
* @interface MassCancelResponse
|
|
758
|
+
*/
|
|
759
|
+
export interface MassCancelResponse {
|
|
760
|
+
[key: string]: any | any;
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @type {number}
|
|
764
|
+
* @memberof MassCancelResponse
|
|
765
|
+
*/
|
|
766
|
+
cancelledCount: number;
|
|
767
|
+
}
|
|
541
768
|
/**
|
|
542
769
|
*
|
|
543
770
|
* @export
|
|
@@ -552,7 +779,7 @@ export interface Order {
|
|
|
552
779
|
*/
|
|
553
780
|
exchangeId: number;
|
|
554
781
|
/**
|
|
555
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
782
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
556
783
|
* @type {string}
|
|
557
784
|
* @memberof Order
|
|
558
785
|
*/
|
|
@@ -576,11 +803,17 @@ export interface Order {
|
|
|
576
803
|
*/
|
|
577
804
|
qty?: string;
|
|
578
805
|
/**
|
|
579
|
-
*
|
|
806
|
+
*
|
|
580
807
|
* @type {string}
|
|
581
808
|
* @memberof Order
|
|
582
809
|
*/
|
|
583
810
|
execQty?: string;
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
* @type {string}
|
|
814
|
+
* @memberof Order
|
|
815
|
+
*/
|
|
816
|
+
cumQty?: string;
|
|
584
817
|
/**
|
|
585
818
|
*
|
|
586
819
|
* @type {Side}
|
|
@@ -600,7 +833,7 @@ export interface Order {
|
|
|
600
833
|
*/
|
|
601
834
|
orderType: OrderType;
|
|
602
835
|
/**
|
|
603
|
-
*
|
|
836
|
+
*
|
|
604
837
|
* @type {string}
|
|
605
838
|
* @memberof Order
|
|
606
839
|
*/
|
|
@@ -624,13 +857,13 @@ export interface Order {
|
|
|
624
857
|
*/
|
|
625
858
|
status: OrderStatus;
|
|
626
859
|
/**
|
|
627
|
-
*
|
|
860
|
+
*
|
|
628
861
|
* @type {number}
|
|
629
862
|
* @memberof Order
|
|
630
863
|
*/
|
|
631
864
|
createdAt: number;
|
|
632
865
|
/**
|
|
633
|
-
*
|
|
866
|
+
*
|
|
634
867
|
* @type {number}
|
|
635
868
|
* @memberof Order
|
|
636
869
|
*/
|
|
@@ -665,62 +898,30 @@ export type OrderType = typeof OrderType[keyof typeof OrderType];
|
|
|
665
898
|
export interface PaginationMeta {
|
|
666
899
|
[key: string]: any | any;
|
|
667
900
|
/**
|
|
668
|
-
*
|
|
901
|
+
*
|
|
669
902
|
* @type {number}
|
|
670
903
|
* @memberof PaginationMeta
|
|
671
904
|
*/
|
|
672
905
|
limit: number;
|
|
673
906
|
/**
|
|
674
|
-
*
|
|
907
|
+
*
|
|
675
908
|
* @type {number}
|
|
676
909
|
* @memberof PaginationMeta
|
|
677
910
|
*/
|
|
678
911
|
count: number;
|
|
679
912
|
/**
|
|
680
|
-
*
|
|
913
|
+
*
|
|
681
914
|
* @type {number}
|
|
682
915
|
* @memberof PaginationMeta
|
|
683
916
|
*/
|
|
684
917
|
endTime?: number;
|
|
685
918
|
/**
|
|
686
|
-
*
|
|
919
|
+
*
|
|
687
920
|
* @type {number}
|
|
688
921
|
* @memberof PaginationMeta
|
|
689
922
|
*/
|
|
690
923
|
startTime?: number;
|
|
691
924
|
}
|
|
692
|
-
/**
|
|
693
|
-
*
|
|
694
|
-
* @export
|
|
695
|
-
* @interface PaginationParameters
|
|
696
|
-
*/
|
|
697
|
-
export interface PaginationParameters {
|
|
698
|
-
[key: string]: any | any;
|
|
699
|
-
/**
|
|
700
|
-
* Number of items requested
|
|
701
|
-
* @type {number}
|
|
702
|
-
* @memberof PaginationParameters
|
|
703
|
-
*/
|
|
704
|
-
limit: number;
|
|
705
|
-
/**
|
|
706
|
-
* Number of items returned
|
|
707
|
-
* @type {number}
|
|
708
|
-
* @memberof PaginationParameters
|
|
709
|
-
*/
|
|
710
|
-
count: number;
|
|
711
|
-
/**
|
|
712
|
-
* Timestamp of last result, in milliseconds
|
|
713
|
-
* @type {number}
|
|
714
|
-
* @memberof PaginationParameters
|
|
715
|
-
*/
|
|
716
|
-
endTime?: number;
|
|
717
|
-
/**
|
|
718
|
-
* Timestamp of first result, in milliseconds
|
|
719
|
-
* @type {number}
|
|
720
|
-
* @memberof PaginationParameters
|
|
721
|
-
*/
|
|
722
|
-
startTime?: number;
|
|
723
|
-
}
|
|
724
925
|
/**
|
|
725
926
|
*
|
|
726
927
|
* @export
|
|
@@ -735,7 +936,7 @@ export interface PerpExecution {
|
|
|
735
936
|
*/
|
|
736
937
|
exchangeId: number;
|
|
737
938
|
/**
|
|
738
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
939
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
739
940
|
* @type {string}
|
|
740
941
|
* @memberof PerpExecution
|
|
741
942
|
*/
|
|
@@ -777,13 +978,13 @@ export interface PerpExecution {
|
|
|
777
978
|
*/
|
|
778
979
|
type: ExecutionType;
|
|
779
980
|
/**
|
|
780
|
-
*
|
|
981
|
+
*
|
|
781
982
|
* @type {number}
|
|
782
983
|
* @memberof PerpExecution
|
|
783
984
|
*/
|
|
784
985
|
timestamp: number;
|
|
785
986
|
/**
|
|
786
|
-
*
|
|
987
|
+
*
|
|
787
988
|
* @type {number}
|
|
788
989
|
* @memberof PerpExecution
|
|
789
990
|
*/
|
|
@@ -823,7 +1024,7 @@ export interface Position {
|
|
|
823
1024
|
*/
|
|
824
1025
|
exchangeId: number;
|
|
825
1026
|
/**
|
|
826
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
1027
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
827
1028
|
* @type {string}
|
|
828
1029
|
* @memberof Position
|
|
829
1030
|
*/
|
|
@@ -853,13 +1054,13 @@ export interface Position {
|
|
|
853
1054
|
*/
|
|
854
1055
|
avgEntryPrice: string;
|
|
855
1056
|
/**
|
|
856
|
-
*
|
|
1057
|
+
*
|
|
857
1058
|
* @type {string}
|
|
858
1059
|
* @memberof Position
|
|
859
1060
|
*/
|
|
860
1061
|
avgEntryFundingValue: string;
|
|
861
1062
|
/**
|
|
862
|
-
*
|
|
1063
|
+
*
|
|
863
1064
|
* @type {number}
|
|
864
1065
|
* @memberof Position
|
|
865
1066
|
*/
|
|
@@ -873,25 +1074,25 @@ export interface Position {
|
|
|
873
1074
|
export interface Price {
|
|
874
1075
|
[key: string]: any | any;
|
|
875
1076
|
/**
|
|
876
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
1077
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
877
1078
|
* @type {string}
|
|
878
1079
|
* @memberof Price
|
|
879
1080
|
*/
|
|
880
1081
|
symbol: string;
|
|
881
1082
|
/**
|
|
882
|
-
*
|
|
1083
|
+
*
|
|
883
1084
|
* @type {string}
|
|
884
1085
|
* @memberof Price
|
|
885
1086
|
*/
|
|
886
1087
|
oraclePrice: string;
|
|
887
1088
|
/**
|
|
888
|
-
*
|
|
1089
|
+
*
|
|
889
1090
|
* @type {string}
|
|
890
1091
|
* @memberof Price
|
|
891
1092
|
*/
|
|
892
1093
|
poolPrice?: string;
|
|
893
1094
|
/**
|
|
894
|
-
*
|
|
1095
|
+
*
|
|
895
1096
|
* @type {number}
|
|
896
1097
|
* @memberof Price
|
|
897
1098
|
*/
|
|
@@ -928,6 +1129,12 @@ export declare const RequestErrorCode: {
|
|
|
928
1129
|
readonly INPUT_VALIDATION_ERROR: "INPUT_VALIDATION_ERROR";
|
|
929
1130
|
readonly CREATE_ORDER_OTHER_ERROR: "CREATE_ORDER_OTHER_ERROR";
|
|
930
1131
|
readonly CANCEL_ORDER_OTHER_ERROR: "CANCEL_ORDER_OTHER_ERROR";
|
|
1132
|
+
readonly ORDER_DEADLINE_PASSED_ERROR: "ORDER_DEADLINE_PASSED_ERROR";
|
|
1133
|
+
readonly ORDER_DEADLINE_TOO_HIGH_ERROR: "ORDER_DEADLINE_TOO_HIGH_ERROR";
|
|
1134
|
+
readonly INVALID_NONCE_ERROR: "INVALID_NONCE_ERROR";
|
|
1135
|
+
readonly UNAVAILABLE_MATCHING_ENGINE_ERROR: "UNAVAILABLE_MATCHING_ENGINE_ERROR";
|
|
1136
|
+
readonly UNAUTHORIZED_SIGNATURE_ERROR: "UNAUTHORIZED_SIGNATURE_ERROR";
|
|
1137
|
+
readonly NUMERIC_OVERFLOW_ERROR: "NUMERIC_OVERFLOW_ERROR";
|
|
931
1138
|
};
|
|
932
1139
|
export type RequestErrorCode = typeof RequestErrorCode[keyof typeof RequestErrorCode];
|
|
933
1140
|
/**
|
|
@@ -979,9 +1186,9 @@ export interface SpotExecution {
|
|
|
979
1186
|
* @type {number}
|
|
980
1187
|
* @memberof SpotExecution
|
|
981
1188
|
*/
|
|
982
|
-
exchangeId
|
|
1189
|
+
exchangeId?: number;
|
|
983
1190
|
/**
|
|
984
|
-
* Trading symbol (e.g., BTCRUSDPERP,
|
|
1191
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
985
1192
|
* @type {string}
|
|
986
1193
|
* @memberof SpotExecution
|
|
987
1194
|
*/
|
|
@@ -992,6 +1199,24 @@ export interface SpotExecution {
|
|
|
992
1199
|
* @memberof SpotExecution
|
|
993
1200
|
*/
|
|
994
1201
|
accountId: number;
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @type {number}
|
|
1205
|
+
* @memberof SpotExecution
|
|
1206
|
+
*/
|
|
1207
|
+
makerAccountId: number;
|
|
1208
|
+
/**
|
|
1209
|
+
* Order ID for the taker
|
|
1210
|
+
* @type {string}
|
|
1211
|
+
* @memberof SpotExecution
|
|
1212
|
+
*/
|
|
1213
|
+
orderId?: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* Order ID for the maker
|
|
1216
|
+
* @type {string}
|
|
1217
|
+
* @memberof SpotExecution
|
|
1218
|
+
*/
|
|
1219
|
+
makerOrderId?: string;
|
|
995
1220
|
/**
|
|
996
1221
|
*
|
|
997
1222
|
* @type {Side}
|
|
@@ -1009,7 +1234,7 @@ export interface SpotExecution {
|
|
|
1009
1234
|
* @type {string}
|
|
1010
1235
|
* @memberof SpotExecution
|
|
1011
1236
|
*/
|
|
1012
|
-
price
|
|
1237
|
+
price: string;
|
|
1013
1238
|
/**
|
|
1014
1239
|
*
|
|
1015
1240
|
* @type {string}
|
|
@@ -1023,7 +1248,7 @@ export interface SpotExecution {
|
|
|
1023
1248
|
*/
|
|
1024
1249
|
type: ExecutionType;
|
|
1025
1250
|
/**
|
|
1026
|
-
*
|
|
1251
|
+
*
|
|
1027
1252
|
* @type {number}
|
|
1028
1253
|
* @memberof SpotExecution
|
|
1029
1254
|
*/
|
|
@@ -1049,6 +1274,56 @@ export interface SpotExecutionList {
|
|
|
1049
1274
|
*/
|
|
1050
1275
|
meta: PaginationMeta;
|
|
1051
1276
|
}
|
|
1277
|
+
/**
|
|
1278
|
+
*
|
|
1279
|
+
* @export
|
|
1280
|
+
* @interface SpotMarketDefinition
|
|
1281
|
+
*/
|
|
1282
|
+
export interface SpotMarketDefinition {
|
|
1283
|
+
[key: string]: any | any;
|
|
1284
|
+
/**
|
|
1285
|
+
* Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)
|
|
1286
|
+
* @type {string}
|
|
1287
|
+
* @memberof SpotMarketDefinition
|
|
1288
|
+
*/
|
|
1289
|
+
symbol: string;
|
|
1290
|
+
/**
|
|
1291
|
+
*
|
|
1292
|
+
* @type {number}
|
|
1293
|
+
* @memberof SpotMarketDefinition
|
|
1294
|
+
*/
|
|
1295
|
+
marketId: number;
|
|
1296
|
+
/**
|
|
1297
|
+
* Base asset symbol
|
|
1298
|
+
* @type {string}
|
|
1299
|
+
* @memberof SpotMarketDefinition
|
|
1300
|
+
*/
|
|
1301
|
+
baseAsset: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* Quote asset symbol
|
|
1304
|
+
* @type {string}
|
|
1305
|
+
* @memberof SpotMarketDefinition
|
|
1306
|
+
*/
|
|
1307
|
+
quoteAsset: string;
|
|
1308
|
+
/**
|
|
1309
|
+
*
|
|
1310
|
+
* @type {string}
|
|
1311
|
+
* @memberof SpotMarketDefinition
|
|
1312
|
+
*/
|
|
1313
|
+
minOrderQty: string;
|
|
1314
|
+
/**
|
|
1315
|
+
*
|
|
1316
|
+
* @type {string}
|
|
1317
|
+
* @memberof SpotMarketDefinition
|
|
1318
|
+
*/
|
|
1319
|
+
qtyStepSize: string;
|
|
1320
|
+
/**
|
|
1321
|
+
*
|
|
1322
|
+
* @type {string}
|
|
1323
|
+
* @memberof SpotMarketDefinition
|
|
1324
|
+
*/
|
|
1325
|
+
tickSize: string;
|
|
1326
|
+
}
|
|
1052
1327
|
/**
|
|
1053
1328
|
* Fee tier type (REGULAR = Standard tier, VIP = VIP tier)
|
|
1054
1329
|
* @export
|
|
@@ -1075,7 +1350,7 @@ export type TimeInForce = typeof TimeInForce[keyof typeof TimeInForce];
|
|
|
1075
1350
|
export interface WalletConfiguration {
|
|
1076
1351
|
[key: string]: any | any;
|
|
1077
1352
|
/**
|
|
1078
|
-
*
|
|
1353
|
+
*
|
|
1079
1354
|
* @type {number}
|
|
1080
1355
|
* @memberof WalletConfiguration
|
|
1081
1356
|
*/
|