zklighter-perps 1.0.81 → 1.0.83
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 +1 -0
- package/models/PositionFunding.ts +12 -1
- package/models/WithdrawHistory.ts +10 -4
- package/models/WithdrawHistoryCursor.ts +70 -0
- package/models/index.ts +1 -0
- package/openapi.json +25 -3
- package/package.json +1 -1
- package/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -60,9 +60,20 @@ export interface PositionFunding {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof PositionFunding
|
|
62
62
|
*/
|
|
63
|
-
position_side:
|
|
63
|
+
position_side: PositionFundingPositionSideEnum;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const PositionFundingPositionSideEnum = {
|
|
71
|
+
Long: 'long',
|
|
72
|
+
Short: 'short'
|
|
73
|
+
} as const;
|
|
74
|
+
export type PositionFundingPositionSideEnum = typeof PositionFundingPositionSideEnum[keyof typeof PositionFundingPositionSideEnum];
|
|
75
|
+
|
|
76
|
+
|
|
66
77
|
/**
|
|
67
78
|
* Check if a given object implements the PositionFunding interface.
|
|
68
79
|
*/
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
WithdrawHistoryItemFromJSONTyped,
|
|
20
20
|
WithdrawHistoryItemToJSON,
|
|
21
21
|
} from './WithdrawHistoryItem';
|
|
22
|
+
import type { WithdrawHistoryCursor } from './WithdrawHistoryCursor';
|
|
23
|
+
import {
|
|
24
|
+
WithdrawHistoryCursorFromJSON,
|
|
25
|
+
WithdrawHistoryCursorFromJSONTyped,
|
|
26
|
+
WithdrawHistoryCursorToJSON,
|
|
27
|
+
} from './WithdrawHistoryCursor';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
@@ -46,10 +52,10 @@ export interface WithdrawHistory {
|
|
|
46
52
|
withdraws: Array<WithdrawHistoryItem>;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
|
-
* @type {
|
|
55
|
+
* @type {WithdrawHistoryCursor}
|
|
50
56
|
* @memberof WithdrawHistory
|
|
51
57
|
*/
|
|
52
|
-
cursor:
|
|
58
|
+
cursor: WithdrawHistoryCursor;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
/**
|
|
@@ -75,7 +81,7 @@ export function WithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
75
81
|
'code': json['code'],
|
|
76
82
|
'message': json['message'] == null ? undefined : json['message'],
|
|
77
83
|
'withdraws': ((json['withdraws'] as Array<any>).map(WithdrawHistoryItemFromJSON)),
|
|
78
|
-
'cursor': json['cursor'],
|
|
84
|
+
'cursor': WithdrawHistoryCursorFromJSON(json['cursor']),
|
|
79
85
|
};
|
|
80
86
|
}
|
|
81
87
|
|
|
@@ -88,7 +94,7 @@ export function WithdrawHistoryToJSON(value?: WithdrawHistory | null): any {
|
|
|
88
94
|
'code': value['code'],
|
|
89
95
|
'message': value['message'],
|
|
90
96
|
'withdraws': ((value['withdraws'] as Array<any>).map(WithdrawHistoryItemToJSON)),
|
|
91
|
-
'cursor': value['cursor'],
|
|
97
|
+
'cursor': WithdrawHistoryCursorToJSON(value['cursor']),
|
|
92
98
|
};
|
|
93
99
|
}
|
|
94
100
|
|
|
@@ -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 WithdrawHistoryCursor
|
|
20
|
+
*/
|
|
21
|
+
export interface WithdrawHistoryCursor {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof WithdrawHistoryCursor
|
|
26
|
+
*/
|
|
27
|
+
secure_id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof WithdrawHistoryCursor
|
|
32
|
+
*/
|
|
33
|
+
fast_id: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the WithdrawHistoryCursor interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfWithdrawHistoryCursor(value: object): value is WithdrawHistoryCursor {
|
|
40
|
+
if (!('secure_id' in value) || value['secure_id'] === undefined) return false;
|
|
41
|
+
if (!('fast_id' in value) || value['fast_id'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function WithdrawHistoryCursorFromJSON(json: any): WithdrawHistoryCursor {
|
|
46
|
+
return WithdrawHistoryCursorFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function WithdrawHistoryCursorFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawHistoryCursor {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'secure_id': json['secure_id'],
|
|
56
|
+
'fast_id': json['fast_id'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function WithdrawHistoryCursorToJSON(value?: WithdrawHistoryCursor | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'secure_id': value['secure_id'],
|
|
67
|
+
'fast_id': value['fast_id'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/models/index.ts
CHANGED
package/openapi.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"title": "",
|
|
5
5
|
"version": ""
|
|
6
6
|
},
|
|
7
|
-
"host": "
|
|
7
|
+
"host": "mainnet.zklighter.elliot.ai",
|
|
8
8
|
"schemes": [
|
|
9
9
|
"https"
|
|
10
10
|
],
|
|
@@ -4365,7 +4365,11 @@
|
|
|
4365
4365
|
},
|
|
4366
4366
|
"position_side": {
|
|
4367
4367
|
"type": "string",
|
|
4368
|
-
"example": "
|
|
4368
|
+
"example": "long",
|
|
4369
|
+
"enum": [
|
|
4370
|
+
"long",
|
|
4371
|
+
"short"
|
|
4372
|
+
]
|
|
4369
4373
|
}
|
|
4370
4374
|
},
|
|
4371
4375
|
"title": "PositionFunding",
|
|
@@ -5971,7 +5975,7 @@
|
|
|
5971
5975
|
}
|
|
5972
5976
|
},
|
|
5973
5977
|
"cursor": {
|
|
5974
|
-
"
|
|
5978
|
+
"$ref": "#/definitions/WithdrawHistoryCursor"
|
|
5975
5979
|
}
|
|
5976
5980
|
},
|
|
5977
5981
|
"title": "WithdrawHistory",
|
|
@@ -5981,6 +5985,24 @@
|
|
|
5981
5985
|
"cursor"
|
|
5982
5986
|
]
|
|
5983
5987
|
},
|
|
5988
|
+
"WithdrawHistoryCursor": {
|
|
5989
|
+
"type": "object",
|
|
5990
|
+
"properties": {
|
|
5991
|
+
"secure_id": {
|
|
5992
|
+
"type": "string",
|
|
5993
|
+
"example": "1"
|
|
5994
|
+
},
|
|
5995
|
+
"fast_id": {
|
|
5996
|
+
"type": "string",
|
|
5997
|
+
"example": "1"
|
|
5998
|
+
}
|
|
5999
|
+
},
|
|
6000
|
+
"title": "WithdrawHistoryCursor",
|
|
6001
|
+
"required": [
|
|
6002
|
+
"secure_id",
|
|
6003
|
+
"fast_id"
|
|
6004
|
+
]
|
|
6005
|
+
},
|
|
5984
6006
|
"WithdrawHistoryItem": {
|
|
5985
6007
|
"type": "object",
|
|
5986
6008
|
"properties": {
|
package/package.json
CHANGED
package/runtime.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export const BASE_PATH = "https://
|
|
16
|
+
export const BASE_PATH = "https://mainnet.zklighter.elliot.ai".replace(/\/+$/, "");
|
|
17
17
|
|
|
18
18
|
export interface ConfigurationParameters {
|
|
19
19
|
basePath?: string; // override base path
|