zklighter-perps 1.0.212 → 1.0.213
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/OrderApi.ts +0 -44
- package/models/LeaseEntry.ts +14 -1
- package/models/ReqExportData.ts +0 -56
- package/openapi.json +7 -68
- package/package.json +1 -1
package/apis/OrderApi.ts
CHANGED
|
@@ -60,9 +60,6 @@ export interface ExportRequest {
|
|
|
60
60
|
market_id?: number;
|
|
61
61
|
start_timestamp?: number;
|
|
62
62
|
end_timestamp?: number;
|
|
63
|
-
side?: ExportSideEnum;
|
|
64
|
-
role?: ExportRoleEnum;
|
|
65
|
-
trade_type?: ExportTradeTypeEnum;
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
export interface AccountActiveOrdersRequest {
|
|
@@ -182,18 +179,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
182
179
|
queryParameters['end_timestamp'] = requestParameters['end_timestamp'];
|
|
183
180
|
}
|
|
184
181
|
|
|
185
|
-
if (requestParameters['side'] != null) {
|
|
186
|
-
queryParameters['side'] = requestParameters['side'];
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (requestParameters['role'] != null) {
|
|
190
|
-
queryParameters['role'] = requestParameters['role'];
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
if (requestParameters['trade_type'] != null) {
|
|
194
|
-
queryParameters['trade_type'] = requestParameters['trade_type'];
|
|
195
|
-
}
|
|
196
|
-
|
|
197
182
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
198
183
|
|
|
199
184
|
const response = await this.request({
|
|
@@ -784,35 +769,6 @@ export const ExportTypeEnum = {
|
|
|
784
769
|
Trade: 'trade'
|
|
785
770
|
} as const;
|
|
786
771
|
export type ExportTypeEnum = typeof ExportTypeEnum[keyof typeof ExportTypeEnum];
|
|
787
|
-
/**
|
|
788
|
-
* @export
|
|
789
|
-
*/
|
|
790
|
-
export const ExportSideEnum = {
|
|
791
|
-
All: 'all',
|
|
792
|
-
Long: 'long',
|
|
793
|
-
Short: 'short'
|
|
794
|
-
} as const;
|
|
795
|
-
export type ExportSideEnum = typeof ExportSideEnum[keyof typeof ExportSideEnum];
|
|
796
|
-
/**
|
|
797
|
-
* @export
|
|
798
|
-
*/
|
|
799
|
-
export const ExportRoleEnum = {
|
|
800
|
-
All: 'all',
|
|
801
|
-
Maker: 'maker',
|
|
802
|
-
Taker: 'taker'
|
|
803
|
-
} as const;
|
|
804
|
-
export type ExportRoleEnum = typeof ExportRoleEnum[keyof typeof ExportRoleEnum];
|
|
805
|
-
/**
|
|
806
|
-
* @export
|
|
807
|
-
*/
|
|
808
|
-
export const ExportTradeTypeEnum = {
|
|
809
|
-
All: 'all',
|
|
810
|
-
Trade: 'trade',
|
|
811
|
-
Liquidation: 'liquidation',
|
|
812
|
-
Deleverage: 'deleverage',
|
|
813
|
-
MarketSettlement: 'market-settlement'
|
|
814
|
-
} as const;
|
|
815
|
-
export type ExportTradeTypeEnum = typeof ExportTradeTypeEnum[keyof typeof ExportTradeTypeEnum];
|
|
816
772
|
/**
|
|
817
773
|
* @export
|
|
818
774
|
*/
|
package/models/LeaseEntry.ts
CHANGED
|
@@ -60,7 +60,7 @@ export interface LeaseEntry {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof LeaseEntry
|
|
62
62
|
*/
|
|
63
|
-
status:
|
|
63
|
+
status: LeaseEntryStatusEnum;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -69,6 +69,19 @@ export interface LeaseEntry {
|
|
|
69
69
|
error: string;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const LeaseEntryStatusEnum = {
|
|
77
|
+
WaitingFee: 'waiting_fee',
|
|
78
|
+
Leased: 'leased',
|
|
79
|
+
Expired: 'expired',
|
|
80
|
+
Canceled: 'canceled'
|
|
81
|
+
} as const;
|
|
82
|
+
export type LeaseEntryStatusEnum = typeof LeaseEntryStatusEnum[keyof typeof LeaseEntryStatusEnum];
|
|
83
|
+
|
|
84
|
+
|
|
72
85
|
/**
|
|
73
86
|
* Check if a given object implements the LeaseEntry interface.
|
|
74
87
|
*/
|
package/models/ReqExportData.ts
CHANGED
|
@@ -55,24 +55,6 @@ export interface ReqExportData {
|
|
|
55
55
|
* @memberof ReqExportData
|
|
56
56
|
*/
|
|
57
57
|
end_timestamp?: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof ReqExportData
|
|
62
|
-
*/
|
|
63
|
-
side?: ReqExportDataSideEnum;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof ReqExportData
|
|
68
|
-
*/
|
|
69
|
-
role?: ReqExportDataRoleEnum;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof ReqExportData
|
|
74
|
-
*/
|
|
75
|
-
trade_type?: ReqExportDataTradeTypeEnum;
|
|
76
58
|
}
|
|
77
59
|
|
|
78
60
|
|
|
@@ -85,38 +67,6 @@ export const ReqExportDataTypeEnum = {
|
|
|
85
67
|
} as const;
|
|
86
68
|
export type ReqExportDataTypeEnum = typeof ReqExportDataTypeEnum[keyof typeof ReqExportDataTypeEnum];
|
|
87
69
|
|
|
88
|
-
/**
|
|
89
|
-
* @export
|
|
90
|
-
*/
|
|
91
|
-
export const ReqExportDataSideEnum = {
|
|
92
|
-
All: 'all',
|
|
93
|
-
Long: 'long',
|
|
94
|
-
Short: 'short'
|
|
95
|
-
} as const;
|
|
96
|
-
export type ReqExportDataSideEnum = typeof ReqExportDataSideEnum[keyof typeof ReqExportDataSideEnum];
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
export const ReqExportDataRoleEnum = {
|
|
102
|
-
All: 'all',
|
|
103
|
-
Maker: 'maker',
|
|
104
|
-
Taker: 'taker'
|
|
105
|
-
} as const;
|
|
106
|
-
export type ReqExportDataRoleEnum = typeof ReqExportDataRoleEnum[keyof typeof ReqExportDataRoleEnum];
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @export
|
|
110
|
-
*/
|
|
111
|
-
export const ReqExportDataTradeTypeEnum = {
|
|
112
|
-
All: 'all',
|
|
113
|
-
Trade: 'trade',
|
|
114
|
-
Liquidation: 'liquidation',
|
|
115
|
-
Deleverage: 'deleverage',
|
|
116
|
-
MarketSettlement: 'market-settlement'
|
|
117
|
-
} as const;
|
|
118
|
-
export type ReqExportDataTradeTypeEnum = typeof ReqExportDataTradeTypeEnum[keyof typeof ReqExportDataTradeTypeEnum];
|
|
119
|
-
|
|
120
70
|
|
|
121
71
|
/**
|
|
122
72
|
* Check if a given object implements the ReqExportData interface.
|
|
@@ -142,9 +92,6 @@ export function ReqExportDataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
142
92
|
'type': json['type'],
|
|
143
93
|
'start_timestamp': json['start_timestamp'] == null ? undefined : json['start_timestamp'],
|
|
144
94
|
'end_timestamp': json['end_timestamp'] == null ? undefined : json['end_timestamp'],
|
|
145
|
-
'side': json['side'] == null ? undefined : json['side'],
|
|
146
|
-
'role': json['role'] == null ? undefined : json['role'],
|
|
147
|
-
'trade_type': json['trade_type'] == null ? undefined : json['trade_type'],
|
|
148
95
|
};
|
|
149
96
|
}
|
|
150
97
|
|
|
@@ -160,9 +107,6 @@ export function ReqExportDataToJSON(value?: ReqExportData | null): any {
|
|
|
160
107
|
'type': value['type'],
|
|
161
108
|
'start_timestamp': value['start_timestamp'],
|
|
162
109
|
'end_timestamp': value['end_timestamp'],
|
|
163
|
-
'side': value['side'],
|
|
164
|
-
'role': value['role'],
|
|
165
|
-
'trade_type': value['trade_type'],
|
|
166
110
|
};
|
|
167
111
|
}
|
|
168
112
|
|
package/openapi.json
CHANGED
|
@@ -1501,44 +1501,6 @@
|
|
|
1501
1501
|
"format": "int64",
|
|
1502
1502
|
"minimum": 1735689600000,
|
|
1503
1503
|
"maximum": 1830297600000
|
|
1504
|
-
},
|
|
1505
|
-
{
|
|
1506
|
-
"name": "side",
|
|
1507
|
-
"in": "query",
|
|
1508
|
-
"required": false,
|
|
1509
|
-
"type": "string",
|
|
1510
|
-
"enum": [
|
|
1511
|
-
"all",
|
|
1512
|
-
"long",
|
|
1513
|
-
"short"
|
|
1514
|
-
],
|
|
1515
|
-
"default": "all"
|
|
1516
|
-
},
|
|
1517
|
-
{
|
|
1518
|
-
"name": "role",
|
|
1519
|
-
"in": "query",
|
|
1520
|
-
"required": false,
|
|
1521
|
-
"type": "string",
|
|
1522
|
-
"enum": [
|
|
1523
|
-
"all",
|
|
1524
|
-
"maker",
|
|
1525
|
-
"taker"
|
|
1526
|
-
],
|
|
1527
|
-
"default": "all"
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
"name": "trade_type",
|
|
1531
|
-
"in": "query",
|
|
1532
|
-
"required": false,
|
|
1533
|
-
"type": "string",
|
|
1534
|
-
"enum": [
|
|
1535
|
-
"all",
|
|
1536
|
-
"trade",
|
|
1537
|
-
"liquidation",
|
|
1538
|
-
"deleverage",
|
|
1539
|
-
"market-settlement"
|
|
1540
|
-
],
|
|
1541
|
-
"default": "all"
|
|
1542
1504
|
}
|
|
1543
1505
|
],
|
|
1544
1506
|
"tags": [
|
|
@@ -6652,7 +6614,13 @@
|
|
|
6652
6614
|
"format": "int64"
|
|
6653
6615
|
},
|
|
6654
6616
|
"status": {
|
|
6655
|
-
"type": "string"
|
|
6617
|
+
"type": "string",
|
|
6618
|
+
"enum": [
|
|
6619
|
+
"waiting_fee",
|
|
6620
|
+
"leased",
|
|
6621
|
+
"expired",
|
|
6622
|
+
"canceled"
|
|
6623
|
+
]
|
|
6656
6624
|
},
|
|
6657
6625
|
"error": {
|
|
6658
6626
|
"type": "string"
|
|
@@ -8496,35 +8464,6 @@
|
|
|
8496
8464
|
"format": "int64",
|
|
8497
8465
|
"maximum": 1830297600000,
|
|
8498
8466
|
"minimum": 1735689600000
|
|
8499
|
-
},
|
|
8500
|
-
"side": {
|
|
8501
|
-
"type": "string",
|
|
8502
|
-
"enum": [
|
|
8503
|
-
"all",
|
|
8504
|
-
"long",
|
|
8505
|
-
"short"
|
|
8506
|
-
],
|
|
8507
|
-
"default": "all"
|
|
8508
|
-
},
|
|
8509
|
-
"role": {
|
|
8510
|
-
"type": "string",
|
|
8511
|
-
"enum": [
|
|
8512
|
-
"all",
|
|
8513
|
-
"maker",
|
|
8514
|
-
"taker"
|
|
8515
|
-
],
|
|
8516
|
-
"default": "all"
|
|
8517
|
-
},
|
|
8518
|
-
"trade_type": {
|
|
8519
|
-
"type": "string",
|
|
8520
|
-
"enum": [
|
|
8521
|
-
"all",
|
|
8522
|
-
"trade",
|
|
8523
|
-
"liquidation",
|
|
8524
|
-
"deleverage",
|
|
8525
|
-
"market-settlement"
|
|
8526
|
-
],
|
|
8527
|
-
"default": "all"
|
|
8528
8467
|
}
|
|
8529
8468
|
},
|
|
8530
8469
|
"title": "ReqExportData",
|