zklighter-perps 1.0.184 → 1.0.186
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/.openapi-generator/FILES +9 -0
- package/apis/AccountApi.ts +404 -20
- package/apis/BridgeApi.ts +6 -6
- package/apis/InfoApi.ts +4 -4
- package/apis/OrderApi.ts +20 -20
- package/apis/ReferralApi.ts +8 -8
- package/apis/TransactionApi.ts +26 -26
- package/models/AirdropPercentageItem.ts +70 -0
- package/models/AirdropPercentages.ts +77 -0
- package/models/ApiToken.ts +124 -0
- package/models/Auth.ts +61 -0
- package/models/ReqExportData.ts +1 -1
- package/models/ReqGetAccountActiveOrders.ts +8 -8
- package/models/ReqGetAccountPnL.ts +1 -1
- package/models/ReqGetAccountTxs.ts +7 -7
- package/models/ReqGetAirdropPercentages.ts +69 -0
- package/models/ReqGetApiTokens.ts +61 -0
- package/models/ReqGetDepositHistory.ts +8 -8
- package/models/ReqGetFastWithdrawInfo.ts +8 -8
- package/models/ReqGetPositionFunding.ts +1 -1
- package/models/ReqGetPublicPoolsMetadata.ts +1 -1
- package/models/ReqGetTrades.ts +1 -1
- package/models/ReqGetTransferFeeInfo.ts +1 -1
- package/models/ReqGetTransferHistory.ts +8 -8
- package/models/ReqGetWithdrawHistory.ts +8 -8
- package/models/RespGetApiTokens.ts +85 -0
- package/models/RespPostApiToken.ts +141 -0
- package/models/RespRevokeApiToken.ts +87 -0
- package/models/index.ts +9 -0
- package/openapi.json +651 -110
- package/package.json +1 -1
package/apis/OrderApi.ts
CHANGED
|
@@ -132,6 +132,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
132
132
|
|
|
133
133
|
const queryParameters: any = {};
|
|
134
134
|
|
|
135
|
+
if (requestParameters['authorization'] != null) {
|
|
136
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
137
|
+
}
|
|
138
|
+
|
|
135
139
|
if (requestParameters['auth'] != null) {
|
|
136
140
|
queryParameters['auth'] = requestParameters['auth'];
|
|
137
141
|
}
|
|
@@ -150,10 +154,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
150
154
|
|
|
151
155
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
152
156
|
|
|
153
|
-
if (requestParameters['authorization'] != null) {
|
|
154
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
157
|
const response = await this.request({
|
|
158
158
|
path: `/api/v1/export`,
|
|
159
159
|
method: 'GET',
|
|
@@ -194,6 +194,14 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
194
194
|
|
|
195
195
|
const queryParameters: any = {};
|
|
196
196
|
|
|
197
|
+
if (requestParameters['authorization'] != null) {
|
|
198
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (requestParameters['auth'] != null) {
|
|
202
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
if (requestParameters['account_index'] != null) {
|
|
198
206
|
queryParameters['account_index'] = requestParameters['account_index'];
|
|
199
207
|
}
|
|
@@ -202,16 +210,8 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
202
210
|
queryParameters['market_id'] = requestParameters['market_id'];
|
|
203
211
|
}
|
|
204
212
|
|
|
205
|
-
if (requestParameters['auth'] != null) {
|
|
206
|
-
queryParameters['auth'] = requestParameters['auth'];
|
|
207
|
-
}
|
|
208
|
-
|
|
209
213
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
210
214
|
|
|
211
|
-
if (requestParameters['authorization'] != null) {
|
|
212
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
215
|
const response = await this.request({
|
|
216
216
|
path: `/api/v1/accountActiveOrders`,
|
|
217
217
|
method: 'GET',
|
|
@@ -252,6 +252,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
252
252
|
|
|
253
253
|
const queryParameters: any = {};
|
|
254
254
|
|
|
255
|
+
if (requestParameters['authorization'] != null) {
|
|
256
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
257
|
+
}
|
|
258
|
+
|
|
255
259
|
if (requestParameters['auth'] != null) {
|
|
256
260
|
queryParameters['auth'] = requestParameters['auth'];
|
|
257
261
|
}
|
|
@@ -282,10 +286,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
282
286
|
|
|
283
287
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
284
288
|
|
|
285
|
-
if (requestParameters['authorization'] != null) {
|
|
286
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
289
|
const response = await this.request({
|
|
290
290
|
path: `/api/v1/accountInactiveOrders`,
|
|
291
291
|
method: 'GET',
|
|
@@ -558,6 +558,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
558
558
|
|
|
559
559
|
const queryParameters: any = {};
|
|
560
560
|
|
|
561
|
+
if (requestParameters['authorization'] != null) {
|
|
562
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
563
|
+
}
|
|
564
|
+
|
|
561
565
|
if (requestParameters['auth'] != null) {
|
|
562
566
|
queryParameters['auth'] = requestParameters['auth'];
|
|
563
567
|
}
|
|
@@ -612,10 +616,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
612
616
|
|
|
613
617
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
614
618
|
|
|
615
|
-
if (requestParameters['authorization'] != null) {
|
|
616
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
619
|
const response = await this.request({
|
|
620
620
|
path: `/api/v1/trades`,
|
|
621
621
|
method: 'GET',
|
package/apis/ReferralApi.ts
CHANGED
|
@@ -158,6 +158,10 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
158
158
|
|
|
159
159
|
const queryParameters: any = {};
|
|
160
160
|
|
|
161
|
+
if (requestParameters['authorization'] != null) {
|
|
162
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
163
|
+
}
|
|
164
|
+
|
|
161
165
|
if (requestParameters['auth'] != null) {
|
|
162
166
|
queryParameters['auth'] = requestParameters['auth'];
|
|
163
167
|
}
|
|
@@ -168,10 +172,6 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
168
172
|
|
|
169
173
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
170
174
|
|
|
171
|
-
if (requestParameters['authorization'] != null) {
|
|
172
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
175
|
const response = await this.request({
|
|
176
176
|
path: `/api/v1/referral/get`,
|
|
177
177
|
method: 'GET',
|
|
@@ -278,6 +278,10 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
278
278
|
|
|
279
279
|
const queryParameters: any = {};
|
|
280
280
|
|
|
281
|
+
if (requestParameters['authorization'] != null) {
|
|
282
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
283
|
+
}
|
|
284
|
+
|
|
281
285
|
if (requestParameters['auth'] != null) {
|
|
282
286
|
queryParameters['auth'] = requestParameters['auth'];
|
|
283
287
|
}
|
|
@@ -288,10 +292,6 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
288
292
|
|
|
289
293
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
290
294
|
|
|
291
|
-
if (requestParameters['authorization'] != null) {
|
|
292
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
295
|
const response = await this.request({
|
|
296
296
|
path: `/api/v1/referral/points`,
|
|
297
297
|
method: 'GET',
|
package/apis/TransactionApi.ts
CHANGED
|
@@ -50,10 +50,10 @@ export interface AccountTxsRequest {
|
|
|
50
50
|
limit: number;
|
|
51
51
|
by: AccountTxsByEnum;
|
|
52
52
|
value: string;
|
|
53
|
-
authorization?: string;
|
|
54
53
|
index?: number;
|
|
55
|
-
|
|
54
|
+
authorization?: string;
|
|
56
55
|
auth?: string;
|
|
56
|
+
types?: Array<number>;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export interface BlockTxsRequest {
|
|
@@ -173,20 +173,20 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
173
173
|
queryParameters['value'] = requestParameters['value'];
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
if (requestParameters['
|
|
177
|
-
queryParameters['
|
|
176
|
+
if (requestParameters['authorization'] != null) {
|
|
177
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
if (requestParameters['auth'] != null) {
|
|
181
181
|
queryParameters['auth'] = requestParameters['auth'];
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
if (requestParameters['authorization'] != null) {
|
|
187
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
184
|
+
if (requestParameters['types'] != null) {
|
|
185
|
+
queryParameters['types'] = requestParameters['types']!.join(runtime.COLLECTION_FORMATS["csv"]);
|
|
188
186
|
}
|
|
189
187
|
|
|
188
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
189
|
+
|
|
190
190
|
const response = await this.request({
|
|
191
191
|
path: `/api/v1/accountTxs`,
|
|
192
192
|
method: 'GET',
|
|
@@ -277,14 +277,18 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
277
277
|
|
|
278
278
|
const queryParameters: any = {};
|
|
279
279
|
|
|
280
|
-
if (requestParameters['
|
|
281
|
-
queryParameters['
|
|
280
|
+
if (requestParameters['authorization'] != null) {
|
|
281
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
if (requestParameters['auth'] != null) {
|
|
285
285
|
queryParameters['auth'] = requestParameters['auth'];
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
+
if (requestParameters['account_index'] != null) {
|
|
289
|
+
queryParameters['account_index'] = requestParameters['account_index'];
|
|
290
|
+
}
|
|
291
|
+
|
|
288
292
|
if (requestParameters['l1_address'] != null) {
|
|
289
293
|
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
290
294
|
}
|
|
@@ -299,10 +303,6 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
299
303
|
|
|
300
304
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
301
305
|
|
|
302
|
-
if (requestParameters['authorization'] != null) {
|
|
303
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
306
|
const response = await this.request({
|
|
307
307
|
path: `/api/v1/deposit/history`,
|
|
308
308
|
method: 'GET',
|
|
@@ -615,24 +615,24 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
615
615
|
|
|
616
616
|
const queryParameters: any = {};
|
|
617
617
|
|
|
618
|
-
if (requestParameters['
|
|
619
|
-
queryParameters['
|
|
618
|
+
if (requestParameters['authorization'] != null) {
|
|
619
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
if (requestParameters['auth'] != null) {
|
|
623
623
|
queryParameters['auth'] = requestParameters['auth'];
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
+
if (requestParameters['account_index'] != null) {
|
|
627
|
+
queryParameters['account_index'] = requestParameters['account_index'];
|
|
628
|
+
}
|
|
629
|
+
|
|
626
630
|
if (requestParameters['cursor'] != null) {
|
|
627
631
|
queryParameters['cursor'] = requestParameters['cursor'];
|
|
628
632
|
}
|
|
629
633
|
|
|
630
634
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
631
635
|
|
|
632
|
-
if (requestParameters['authorization'] != null) {
|
|
633
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
636
|
const response = await this.request({
|
|
637
637
|
path: `/api/v1/transfer/history`,
|
|
638
638
|
method: 'GET',
|
|
@@ -798,14 +798,18 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
798
798
|
|
|
799
799
|
const queryParameters: any = {};
|
|
800
800
|
|
|
801
|
-
if (requestParameters['
|
|
802
|
-
queryParameters['
|
|
801
|
+
if (requestParameters['authorization'] != null) {
|
|
802
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
if (requestParameters['auth'] != null) {
|
|
806
806
|
queryParameters['auth'] = requestParameters['auth'];
|
|
807
807
|
}
|
|
808
808
|
|
|
809
|
+
if (requestParameters['account_index'] != null) {
|
|
810
|
+
queryParameters['account_index'] = requestParameters['account_index'];
|
|
811
|
+
}
|
|
812
|
+
|
|
809
813
|
if (requestParameters['cursor'] != null) {
|
|
810
814
|
queryParameters['cursor'] = requestParameters['cursor'];
|
|
811
815
|
}
|
|
@@ -816,10 +820,6 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
816
820
|
|
|
817
821
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
818
822
|
|
|
819
|
-
if (requestParameters['authorization'] != null) {
|
|
820
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
823
|
const response = await this.request({
|
|
824
824
|
path: `/api/v1/withdraw/history`,
|
|
825
825
|
method: 'GET',
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AirdropPercentageItem
|
|
20
|
+
*/
|
|
21
|
+
export interface AirdropPercentageItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AirdropPercentageItem
|
|
26
|
+
*/
|
|
27
|
+
l1_address: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AirdropPercentageItem
|
|
32
|
+
*/
|
|
33
|
+
percentage: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AirdropPercentageItem interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAirdropPercentageItem(value: object): value is AirdropPercentageItem {
|
|
40
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
41
|
+
if (!('percentage' in value) || value['percentage'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AirdropPercentageItemFromJSON(json: any): AirdropPercentageItem {
|
|
46
|
+
return AirdropPercentageItemFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AirdropPercentageItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirdropPercentageItem {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'l1_address': json['l1_address'],
|
|
56
|
+
'percentage': json['percentage'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AirdropPercentageItemToJSON(value?: AirdropPercentageItem | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'l1_address': value['l1_address'],
|
|
67
|
+
'percentage': value['percentage'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AirdropPercentageItem } from './AirdropPercentageItem';
|
|
17
|
+
import {
|
|
18
|
+
AirdropPercentageItemFromJSON,
|
|
19
|
+
AirdropPercentageItemFromJSONTyped,
|
|
20
|
+
AirdropPercentageItemToJSON,
|
|
21
|
+
} from './AirdropPercentageItem';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface AirdropPercentages
|
|
27
|
+
*/
|
|
28
|
+
export interface AirdropPercentages {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AirdropPercentages
|
|
33
|
+
*/
|
|
34
|
+
l1_address: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<AirdropPercentageItem>}
|
|
38
|
+
* @memberof AirdropPercentages
|
|
39
|
+
*/
|
|
40
|
+
percentages: Array<AirdropPercentageItem>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AirdropPercentages interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfAirdropPercentages(value: object): value is AirdropPercentages {
|
|
47
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
48
|
+
if (!('percentages' in value) || value['percentages'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AirdropPercentagesFromJSON(json: any): AirdropPercentages {
|
|
53
|
+
return AirdropPercentagesFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AirdropPercentagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirdropPercentages {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'l1_address': json['l1_address'],
|
|
63
|
+
'percentages': ((json['percentages'] as Array<any>).map(AirdropPercentageItemFromJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AirdropPercentagesToJSON(value?: AirdropPercentages | null): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'l1_address': value['l1_address'],
|
|
74
|
+
'percentages': ((value['percentages'] as Array<any>).map(AirdropPercentageItemToJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiToken
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiToken {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiToken
|
|
26
|
+
*/
|
|
27
|
+
token_id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiToken
|
|
32
|
+
*/
|
|
33
|
+
api_token: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiToken
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ApiToken
|
|
44
|
+
*/
|
|
45
|
+
account_index: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ApiToken
|
|
50
|
+
*/
|
|
51
|
+
expiry: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof ApiToken
|
|
56
|
+
*/
|
|
57
|
+
sub_account_access: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof ApiToken
|
|
62
|
+
*/
|
|
63
|
+
revoked: boolean;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ApiToken
|
|
68
|
+
*/
|
|
69
|
+
scopes: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the ApiToken interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfApiToken(value: object): value is ApiToken {
|
|
76
|
+
if (!('token_id' in value) || value['token_id'] === undefined) return false;
|
|
77
|
+
if (!('api_token' in value) || value['api_token'] === undefined) return false;
|
|
78
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
79
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
80
|
+
if (!('expiry' in value) || value['expiry'] === undefined) return false;
|
|
81
|
+
if (!('sub_account_access' in value) || value['sub_account_access'] === undefined) return false;
|
|
82
|
+
if (!('revoked' in value) || value['revoked'] === undefined) return false;
|
|
83
|
+
if (!('scopes' in value) || value['scopes'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiTokenFromJSON(json: any): ApiToken {
|
|
88
|
+
return ApiTokenFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ApiTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiToken {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'token_id': json['token_id'],
|
|
98
|
+
'api_token': json['api_token'],
|
|
99
|
+
'name': json['name'],
|
|
100
|
+
'account_index': json['account_index'],
|
|
101
|
+
'expiry': json['expiry'],
|
|
102
|
+
'sub_account_access': json['sub_account_access'],
|
|
103
|
+
'revoked': json['revoked'],
|
|
104
|
+
'scopes': json['scopes'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function ApiTokenToJSON(value?: ApiToken | null): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'token_id': value['token_id'],
|
|
115
|
+
'api_token': value['api_token'],
|
|
116
|
+
'name': value['name'],
|
|
117
|
+
'account_index': value['account_index'],
|
|
118
|
+
'expiry': value['expiry'],
|
|
119
|
+
'sub_account_access': value['sub_account_access'],
|
|
120
|
+
'revoked': value['revoked'],
|
|
121
|
+
'scopes': value['scopes'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
package/models/Auth.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Auth
|
|
20
|
+
*/
|
|
21
|
+
export interface Auth {
|
|
22
|
+
/**
|
|
23
|
+
* made optional to support header auth clients
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Auth
|
|
26
|
+
*/
|
|
27
|
+
auth: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the Auth interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAuth(value: object): value is Auth {
|
|
34
|
+
if (!('auth' in value) || value['auth'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AuthFromJSON(json: any): Auth {
|
|
39
|
+
return AuthFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): Auth {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'auth': json['auth'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AuthToJSON(value?: Auth | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'auth': value['auth'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
package/models/ReqExportData.ts
CHANGED
|
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ReqGetAccountActiveOrders
|
|
20
20
|
*/
|
|
21
21
|
export interface ReqGetAccountActiveOrders {
|
|
22
|
+
/**
|
|
23
|
+
* made optional to support header auth clients
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetAccountActiveOrders
|
|
26
|
+
*/
|
|
27
|
+
auth?: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {number}
|
|
@@ -31,12 +37,6 @@ export interface ReqGetAccountActiveOrders {
|
|
|
31
37
|
* @memberof ReqGetAccountActiveOrders
|
|
32
38
|
*/
|
|
33
39
|
market_id: number;
|
|
34
|
-
/**
|
|
35
|
-
* made optional to support header auth clients
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ReqGetAccountActiveOrders
|
|
38
|
-
*/
|
|
39
|
-
auth?: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -58,9 +58,9 @@ export function ReqGetAccountActiveOrdersFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
60
|
|
|
61
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
61
62
|
'account_index': json['account_index'],
|
|
62
63
|
'market_id': json['market_id'],
|
|
63
|
-
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -70,9 +70,9 @@ export function ReqGetAccountActiveOrdersToJSON(value?: ReqGetAccountActiveOrder
|
|
|
70
70
|
}
|
|
71
71
|
return {
|
|
72
72
|
|
|
73
|
+
'auth': value['auth'],
|
|
73
74
|
'account_index': value['account_index'],
|
|
74
75
|
'market_id': value['market_id'],
|
|
75
|
-
'auth': value['auth'],
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
|