zklighter-perps 1.0.13 → 1.0.14
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/apis/AccountApi.ts +39 -39
- package/apis/BlockApi.ts +14 -14
- package/apis/CandlestickApi.ts +17 -17
- package/apis/OrderApi.ts +29 -29
- package/apis/TransactionApi.ts +28 -28
- package/config.yaml +0 -1
- package/models/Order.ts +17 -15
- package/models/OrderBook.ts +8 -7
- package/models/OrderBookDetail.ts +8 -7
- package/models/ReqGetAccount.ts +8 -7
- package/models/ReqGetAccountInactiveOrders.ts +8 -7
- package/models/ReqGetAccountPendingTxs.ts +8 -7
- package/models/ReqGetAccountPnL.ts +20 -18
- package/models/ReqGetAccountTxs.ts +8 -7
- package/models/ReqGetBlock.ts +8 -7
- package/models/ReqGetBlockTxs.ts +8 -7
- package/models/ReqGetByAccount.ts +8 -7
- package/models/ReqGetCandlesticks.ts +12 -11
- package/models/ReqGetFundings.ts +7 -6
- package/models/ReqGetOrderBookDetails.ts +8 -7
- package/models/ReqGetOrderBooks.ts +8 -7
- package/models/ReqGetPermission.ts +8 -7
- package/models/ReqGetRangeWithIndexSortable.ts +8 -7
- package/models/ReqGetSubAccount.ts +8 -7
- package/models/ReqGetTrades.ts +9 -8
- package/models/ReqGetTx.ts +8 -7
- package/package.json +1 -1
package/apis/AccountApi.ts
CHANGED
|
@@ -421,46 +421,46 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
/**
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
424
|
+
* @export
|
|
425
|
+
*/
|
|
426
|
+
export const GetAccountByEnum = {
|
|
427
|
+
Index: 'index',
|
|
428
|
+
L1Address: 'l1_address'
|
|
429
|
+
} as const;
|
|
430
|
+
export type GetAccountByEnum = typeof GetAccountByEnum[keyof typeof GetAccountByEnum];
|
|
431
431
|
/**
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
432
|
+
* @export
|
|
433
|
+
*/
|
|
434
|
+
export const GetAccountPnlByEnum = {
|
|
435
|
+
Index: 'index',
|
|
436
|
+
L1Address: 'l1_address'
|
|
437
|
+
} as const;
|
|
438
|
+
export type GetAccountPnlByEnum = typeof GetAccountPnlByEnum[keyof typeof GetAccountPnlByEnum];
|
|
439
439
|
/**
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
440
|
+
* @export
|
|
441
|
+
*/
|
|
442
|
+
export const GetAccountPnlResolutionEnum = {
|
|
443
|
+
_1m: '1m',
|
|
444
|
+
_5m: '5m',
|
|
445
|
+
_15m: '15m',
|
|
446
|
+
_1h: '1h',
|
|
447
|
+
_4h: '4h',
|
|
448
|
+
_1d: '1d'
|
|
449
|
+
} as const;
|
|
450
|
+
export type GetAccountPnlResolutionEnum = typeof GetAccountPnlResolutionEnum[keyof typeof GetAccountPnlResolutionEnum];
|
|
451
451
|
/**
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
452
|
+
* @export
|
|
453
|
+
*/
|
|
454
|
+
export const GetAccountsSortEnum = {
|
|
455
|
+
Asc: 'asc',
|
|
456
|
+
Desc: 'desc'
|
|
457
|
+
} as const;
|
|
458
|
+
export type GetAccountsSortEnum = typeof GetAccountsSortEnum[keyof typeof GetAccountsSortEnum];
|
|
459
459
|
/**
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
460
|
+
* @export
|
|
461
|
+
*/
|
|
462
|
+
export const GetPermissionByEnum = {
|
|
463
|
+
Index: 'index',
|
|
464
|
+
L1Address: 'l1_address'
|
|
465
|
+
} as const;
|
|
466
|
+
export type GetPermissionByEnum = typeof GetPermissionByEnum[keyof typeof GetPermissionByEnum];
|
package/apis/BlockApi.ts
CHANGED
|
@@ -170,18 +170,18 @@ export class BlockApi extends runtime.BaseAPI {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
173
|
+
* @export
|
|
174
|
+
*/
|
|
175
|
+
export const GetBlockByEnum = {
|
|
176
|
+
Commitment: 'commitment',
|
|
177
|
+
Height: 'height'
|
|
178
|
+
} as const;
|
|
179
|
+
export type GetBlockByEnum = typeof GetBlockByEnum[keyof typeof GetBlockByEnum];
|
|
180
180
|
/**
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
181
|
+
* @export
|
|
182
|
+
*/
|
|
183
|
+
export const GetBlocksSortEnum = {
|
|
184
|
+
Asc: 'asc',
|
|
185
|
+
Desc: 'desc'
|
|
186
|
+
} as const;
|
|
187
|
+
export type GetBlocksSortEnum = typeof GetBlocksSortEnum[keyof typeof GetBlocksSortEnum];
|
package/apis/CandlestickApi.ts
CHANGED
|
@@ -218,21 +218,21 @@ export class CandlestickApi extends runtime.BaseAPI {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
221
|
+
* @export
|
|
222
|
+
*/
|
|
223
|
+
export const GetCandlesticksResolutionEnum = {
|
|
224
|
+
_1m: '1m',
|
|
225
|
+
_5m: '5m',
|
|
226
|
+
_15m: '15m',
|
|
227
|
+
_1h: '1h',
|
|
228
|
+
_4h: '4h',
|
|
229
|
+
_1d: '1d'
|
|
230
|
+
} as const;
|
|
231
|
+
export type GetCandlesticksResolutionEnum = typeof GetCandlesticksResolutionEnum[keyof typeof GetCandlesticksResolutionEnum];
|
|
232
232
|
/**
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
233
|
+
* @export
|
|
234
|
+
*/
|
|
235
|
+
export const GetFundingsResolutionEnum = {
|
|
236
|
+
_1h: '1h'
|
|
237
|
+
} as const;
|
|
238
|
+
export type GetFundingsResolutionEnum = typeof GetFundingsResolutionEnum[keyof typeof GetFundingsResolutionEnum];
|
package/apis/OrderApi.ts
CHANGED
|
@@ -594,35 +594,35 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
597
|
+
* @export
|
|
598
|
+
*/
|
|
599
|
+
export const GetAccountInactiveOrdersFilterEnum = {
|
|
600
|
+
MarketId: 'market_id',
|
|
601
|
+
All: 'all'
|
|
602
|
+
} as const;
|
|
603
|
+
export type GetAccountInactiveOrdersFilterEnum = typeof GetAccountInactiveOrdersFilterEnum[keyof typeof GetAccountInactiveOrdersFilterEnum];
|
|
604
604
|
/**
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
605
|
+
* @export
|
|
606
|
+
*/
|
|
607
|
+
export const GetOrderBookDetailsFilterEnum = {
|
|
608
|
+
MarketId: 'market_id',
|
|
609
|
+
All: 'all'
|
|
610
|
+
} as const;
|
|
611
|
+
export type GetOrderBookDetailsFilterEnum = typeof GetOrderBookDetailsFilterEnum[keyof typeof GetOrderBookDetailsFilterEnum];
|
|
612
612
|
/**
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
613
|
+
* @export
|
|
614
|
+
*/
|
|
615
|
+
export const GetOrderBooksFilterEnum = {
|
|
616
|
+
MarketId: 'market_id',
|
|
617
|
+
All: 'all'
|
|
618
|
+
} as const;
|
|
619
|
+
export type GetOrderBooksFilterEnum = typeof GetOrderBooksFilterEnum[keyof typeof GetOrderBooksFilterEnum];
|
|
620
620
|
/**
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
621
|
+
* @export
|
|
622
|
+
*/
|
|
623
|
+
export const GetTradesByEnum = {
|
|
624
|
+
BlockHeight: 'block_height',
|
|
625
|
+
Timestamp: 'timestamp',
|
|
626
|
+
TradeId: 'trade_id'
|
|
627
|
+
} as const;
|
|
628
|
+
export type GetTradesByEnum = typeof GetTradesByEnum[keyof typeof GetTradesByEnum];
|
package/apis/TransactionApi.ts
CHANGED
|
@@ -699,34 +699,34 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
699
699
|
}
|
|
700
700
|
|
|
701
701
|
/**
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
702
|
+
* @export
|
|
703
|
+
*/
|
|
704
|
+
export const GetAccountPendingTxsByEnum = {
|
|
705
|
+
AccountIndex: 'account_index',
|
|
706
|
+
L1Address: 'l1_address'
|
|
707
|
+
} as const;
|
|
708
|
+
export type GetAccountPendingTxsByEnum = typeof GetAccountPendingTxsByEnum[keyof typeof GetAccountPendingTxsByEnum];
|
|
709
709
|
/**
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
710
|
+
* @export
|
|
711
|
+
*/
|
|
712
|
+
export const GetAccountTxsByEnum = {
|
|
713
|
+
AccountIndex: 'account_index',
|
|
714
|
+
L1Address: 'l1_address'
|
|
715
|
+
} as const;
|
|
716
|
+
export type GetAccountTxsByEnum = typeof GetAccountTxsByEnum[keyof typeof GetAccountTxsByEnum];
|
|
717
717
|
/**
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
718
|
+
* @export
|
|
719
|
+
*/
|
|
720
|
+
export const GetBlockTxsByEnum = {
|
|
721
|
+
Height: 'block_height',
|
|
722
|
+
Commitment: 'block_commitment'
|
|
723
|
+
} as const;
|
|
724
|
+
export type GetBlockTxsByEnum = typeof GetBlockTxsByEnum[keyof typeof GetBlockTxsByEnum];
|
|
725
725
|
/**
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
726
|
+
* @export
|
|
727
|
+
*/
|
|
728
|
+
export const GetTxByEnum = {
|
|
729
|
+
Hash: 'hash',
|
|
730
|
+
SequenceIndex: 'sequence_index'
|
|
731
|
+
} as const;
|
|
732
|
+
export type GetTxByEnum = typeof GetTxByEnum[keyof typeof GetTxByEnum];
|
package/config.yaml
CHANGED
package/models/Order.ts
CHANGED
|
@@ -123,23 +123,25 @@ export interface Order {
|
|
|
123
123
|
timestamp: number;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
|
|
126
127
|
/**
|
|
127
|
-
* @export
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export const OrderTypeEnum = {
|
|
131
|
+
Limit: 'limit',
|
|
132
|
+
Market: 'market'
|
|
133
|
+
} as const;
|
|
134
|
+
export type OrderTypeEnum = typeof OrderTypeEnum[keyof typeof OrderTypeEnum];
|
|
135
|
+
|
|
134
136
|
/**
|
|
135
|
-
* @export
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export const OrderStatusEnum = {
|
|
140
|
+
Open: 'open',
|
|
141
|
+
Filled: 'filled',
|
|
142
|
+
Canceled: 'canceled'
|
|
143
|
+
} as const;
|
|
144
|
+
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
143
145
|
|
|
144
146
|
|
|
145
147
|
/**
|
package/models/OrderBook.ts
CHANGED
|
@@ -87,14 +87,15 @@ export interface OrderBook {
|
|
|
87
87
|
supported_quote_decimals: number;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
|
|
90
91
|
/**
|
|
91
|
-
* @export
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const OrderBookStatusEnum = {
|
|
95
|
+
Frozen: 'frozen',
|
|
96
|
+
Active: 'active'
|
|
97
|
+
} as const;
|
|
98
|
+
export type OrderBookStatusEnum = typeof OrderBookStatusEnum[keyof typeof OrderBookStatusEnum];
|
|
98
99
|
|
|
99
100
|
|
|
100
101
|
/**
|
|
@@ -195,14 +195,15 @@ export interface OrderBookDetail {
|
|
|
195
195
|
daily_chart: { [key: string]: number; };
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
|
|
198
199
|
/**
|
|
199
|
-
* @export
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
200
|
+
* @export
|
|
201
|
+
*/
|
|
202
|
+
export const OrderBookDetailStatusEnum = {
|
|
203
|
+
Frozen: 'frozen',
|
|
204
|
+
Active: 'active'
|
|
205
|
+
} as const;
|
|
206
|
+
export type OrderBookDetailStatusEnum = typeof OrderBookDetailStatusEnum[keyof typeof OrderBookDetailStatusEnum];
|
|
206
207
|
|
|
207
208
|
|
|
208
209
|
/**
|
package/models/ReqGetAccount.ts
CHANGED
|
@@ -33,14 +33,15 @@ export interface ReqGetAccount {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
|
-
* @export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReqGetAccountByEnum = {
|
|
41
|
+
Index: 'index',
|
|
42
|
+
L1Address: 'l1_address'
|
|
43
|
+
} as const;
|
|
44
|
+
export type ReqGetAccountByEnum = typeof ReqGetAccountByEnum[keyof typeof ReqGetAccountByEnum];
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
/**
|
|
@@ -57,14 +57,15 @@ export interface ReqGetAccountInactiveOrders {
|
|
|
57
57
|
limit: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
|
|
60
61
|
/**
|
|
61
|
-
* @export
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const ReqGetAccountInactiveOrdersFilterEnum = {
|
|
65
|
+
MarketId: 'market_id',
|
|
66
|
+
All: 'all'
|
|
67
|
+
} as const;
|
|
68
|
+
export type ReqGetAccountInactiveOrdersFilterEnum = typeof ReqGetAccountInactiveOrdersFilterEnum[keyof typeof ReqGetAccountInactiveOrdersFilterEnum];
|
|
68
69
|
|
|
69
70
|
|
|
70
71
|
/**
|
|
@@ -39,14 +39,15 @@ export interface ReqGetAccountPendingTxs {
|
|
|
39
39
|
types?: Array<number>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
/**
|
|
43
|
-
* @export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ReqGetAccountPendingTxsByEnum = {
|
|
47
|
+
AccountIndex: 'account_index',
|
|
48
|
+
L1Address: 'l1_address'
|
|
49
|
+
} as const;
|
|
50
|
+
export type ReqGetAccountPendingTxsByEnum = typeof ReqGetAccountPendingTxsByEnum[keyof typeof ReqGetAccountPendingTxsByEnum];
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
/**
|
|
@@ -57,26 +57,28 @@ export interface ReqGetAccountPnL {
|
|
|
57
57
|
count_back: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
|
|
60
61
|
/**
|
|
61
|
-
* @export
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const ReqGetAccountPnLByEnum = {
|
|
65
|
+
Index: 'index',
|
|
66
|
+
L1Address: 'l1_address'
|
|
67
|
+
} as const;
|
|
68
|
+
export type ReqGetAccountPnLByEnum = typeof ReqGetAccountPnLByEnum[keyof typeof ReqGetAccountPnLByEnum];
|
|
69
|
+
|
|
68
70
|
/**
|
|
69
|
-
* @export
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const ReqGetAccountPnLResolutionEnum = {
|
|
74
|
+
_1m: '1m',
|
|
75
|
+
_5m: '5m',
|
|
76
|
+
_15m: '15m',
|
|
77
|
+
_1h: '1h',
|
|
78
|
+
_4h: '4h',
|
|
79
|
+
_1d: '1d'
|
|
80
|
+
} as const;
|
|
81
|
+
export type ReqGetAccountPnLResolutionEnum = typeof ReqGetAccountPnLResolutionEnum[keyof typeof ReqGetAccountPnLResolutionEnum];
|
|
80
82
|
|
|
81
83
|
|
|
82
84
|
/**
|
|
@@ -51,14 +51,15 @@ export interface ReqGetAccountTxs {
|
|
|
51
51
|
types?: Array<number>;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
|
|
54
55
|
/**
|
|
55
|
-
* @export
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const ReqGetAccountTxsByEnum = {
|
|
59
|
+
AccountIndex: 'account_index',
|
|
60
|
+
L1Address: 'l1_address'
|
|
61
|
+
} as const;
|
|
62
|
+
export type ReqGetAccountTxsByEnum = typeof ReqGetAccountTxsByEnum[keyof typeof ReqGetAccountTxsByEnum];
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
/**
|
package/models/ReqGetBlock.ts
CHANGED
|
@@ -33,14 +33,15 @@ export interface ReqGetBlock {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
|
-
* @export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReqGetBlockByEnum = {
|
|
41
|
+
Commitment: 'commitment',
|
|
42
|
+
Height: 'height'
|
|
43
|
+
} as const;
|
|
44
|
+
export type ReqGetBlockByEnum = typeof ReqGetBlockByEnum[keyof typeof ReqGetBlockByEnum];
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
/**
|
package/models/ReqGetBlockTxs.ts
CHANGED
|
@@ -33,14 +33,15 @@ export interface ReqGetBlockTxs {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
|
-
* @export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReqGetBlockTxsByEnum = {
|
|
41
|
+
Height: 'block_height',
|
|
42
|
+
Commitment: 'block_commitment'
|
|
43
|
+
} as const;
|
|
44
|
+
export type ReqGetBlockTxsByEnum = typeof ReqGetBlockTxsByEnum[keyof typeof ReqGetBlockTxsByEnum];
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
/**
|
|
@@ -33,14 +33,15 @@ export interface ReqGetByAccount {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
|
-
* @export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReqGetByAccountByEnum = {
|
|
41
|
+
AccountIndex: 'account_index',
|
|
42
|
+
L1Address: 'l1_address'
|
|
43
|
+
} as const;
|
|
44
|
+
export type ReqGetByAccountByEnum = typeof ReqGetByAccountByEnum[keyof typeof ReqGetByAccountByEnum];
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
/**
|
|
@@ -51,18 +51,19 @@ export interface ReqGetCandlesticks {
|
|
|
51
51
|
count_back: number;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
|
|
54
55
|
/**
|
|
55
|
-
* @export
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const ReqGetCandlesticksResolutionEnum = {
|
|
59
|
+
_1m: '1m',
|
|
60
|
+
_5m: '5m',
|
|
61
|
+
_15m: '15m',
|
|
62
|
+
_1h: '1h',
|
|
63
|
+
_4h: '4h',
|
|
64
|
+
_1d: '1d'
|
|
65
|
+
} as const;
|
|
66
|
+
export type ReqGetCandlesticksResolutionEnum = typeof ReqGetCandlesticksResolutionEnum[keyof typeof ReqGetCandlesticksResolutionEnum];
|
|
66
67
|
|
|
67
68
|
|
|
68
69
|
/**
|
package/models/ReqGetFundings.ts
CHANGED
|
@@ -51,13 +51,14 @@ export interface ReqGetFundings {
|
|
|
51
51
|
count_back: number;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
|
|
54
55
|
/**
|
|
55
|
-
* @export
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const ReqGetFundingsResolutionEnum = {
|
|
59
|
+
_1h: '1h'
|
|
60
|
+
} as const;
|
|
61
|
+
export type ReqGetFundingsResolutionEnum = typeof ReqGetFundingsResolutionEnum[keyof typeof ReqGetFundingsResolutionEnum];
|
|
61
62
|
|
|
62
63
|
|
|
63
64
|
/**
|
|
@@ -33,14 +33,15 @@ export interface ReqGetOrderBookDetails {
|
|
|
33
33
|
market_id?: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
|
-
* @export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReqGetOrderBookDetailsFilterEnum = {
|
|
41
|
+
MarketId: 'market_id',
|
|
42
|
+
All: 'all'
|
|
43
|
+
} as const;
|
|
44
|
+
export type ReqGetOrderBookDetailsFilterEnum = typeof ReqGetOrderBookDetailsFilterEnum[keyof typeof ReqGetOrderBookDetailsFilterEnum];
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
/**
|
|
@@ -33,14 +33,15 @@ export interface ReqGetOrderBooks {
|
|
|
33
33
|
market_id?: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
|
-
* @export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReqGetOrderBooksFilterEnum = {
|
|
41
|
+
MarketId: 'market_id',
|
|
42
|
+
All: 'all'
|
|
43
|
+
} as const;
|
|
44
|
+
export type ReqGetOrderBooksFilterEnum = typeof ReqGetOrderBooksFilterEnum[keyof typeof ReqGetOrderBooksFilterEnum];
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
/**
|
|
@@ -39,14 +39,15 @@ export interface ReqGetPermission {
|
|
|
39
39
|
tx_type: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
/**
|
|
43
|
-
* @export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ReqGetPermissionByEnum = {
|
|
47
|
+
Index: 'index',
|
|
48
|
+
L1Address: 'l1_address'
|
|
49
|
+
} as const;
|
|
50
|
+
export type ReqGetPermissionByEnum = typeof ReqGetPermissionByEnum[keyof typeof ReqGetPermissionByEnum];
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
/**
|
|
@@ -39,14 +39,15 @@ export interface ReqGetRangeWithIndexSortable {
|
|
|
39
39
|
sort?: ReqGetRangeWithIndexSortableSortEnum;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
/**
|
|
43
|
-
* @export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ReqGetRangeWithIndexSortableSortEnum = {
|
|
47
|
+
Asc: 'asc',
|
|
48
|
+
Desc: 'desc'
|
|
49
|
+
} as const;
|
|
50
|
+
export type ReqGetRangeWithIndexSortableSortEnum = typeof ReqGetRangeWithIndexSortableSortEnum[keyof typeof ReqGetRangeWithIndexSortableSortEnum];
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
/**
|
|
@@ -39,14 +39,15 @@ export interface ReqGetSubAccount {
|
|
|
39
39
|
sub_account_index: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
/**
|
|
43
|
-
* @export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ReqGetSubAccountByEnum = {
|
|
47
|
+
Index: 'index',
|
|
48
|
+
L1Address: 'l1_address'
|
|
49
|
+
} as const;
|
|
50
|
+
export type ReqGetSubAccountByEnum = typeof ReqGetSubAccountByEnum[keyof typeof ReqGetSubAccountByEnum];
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
/**
|
package/models/ReqGetTrades.ts
CHANGED
|
@@ -51,15 +51,16 @@ export interface ReqGetTrades {
|
|
|
51
51
|
limit: number;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
|
|
54
55
|
/**
|
|
55
|
-
* @export
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const ReqGetTradesByEnum = {
|
|
59
|
+
BlockHeight: 'block_height',
|
|
60
|
+
Timestamp: 'timestamp',
|
|
61
|
+
TradeId: 'trade_id'
|
|
62
|
+
} as const;
|
|
63
|
+
export type ReqGetTradesByEnum = typeof ReqGetTradesByEnum[keyof typeof ReqGetTradesByEnum];
|
|
63
64
|
|
|
64
65
|
|
|
65
66
|
/**
|
package/models/ReqGetTx.ts
CHANGED
|
@@ -33,14 +33,15 @@ export interface ReqGetTx {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
|
-
* @export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReqGetTxByEnum = {
|
|
41
|
+
Hash: 'hash',
|
|
42
|
+
SequenceIndex: 'sequence_index'
|
|
43
|
+
} as const;
|
|
44
|
+
export type ReqGetTxByEnum = typeof ReqGetTxByEnum[keyof typeof ReqGetTxByEnum];
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
/**
|