zklighter-perps 1.0.105 → 1.0.106
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 +14 -0
- package/models/ReqGetPositionFunding.ts +20 -0
- package/openapi.json +21 -0
- package/package.json +1 -1
package/apis/AccountApi.ts
CHANGED
|
@@ -104,6 +104,7 @@ export interface PositionFundingRequest {
|
|
|
104
104
|
limit: number;
|
|
105
105
|
market_id?: number;
|
|
106
106
|
cursor?: string;
|
|
107
|
+
side?: PositionFundingSideEnum;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
export interface PublicPoolsRequest {
|
|
@@ -592,6 +593,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
592
593
|
queryParameters['limit'] = requestParameters['limit'];
|
|
593
594
|
}
|
|
594
595
|
|
|
596
|
+
if (requestParameters['side'] != null) {
|
|
597
|
+
queryParameters['side'] = requestParameters['side'];
|
|
598
|
+
}
|
|
599
|
+
|
|
595
600
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
596
601
|
|
|
597
602
|
const response = await this.request({
|
|
@@ -716,6 +721,15 @@ export const PnlResolutionEnum = {
|
|
|
716
721
|
_1d: '1d'
|
|
717
722
|
} as const;
|
|
718
723
|
export type PnlResolutionEnum = typeof PnlResolutionEnum[keyof typeof PnlResolutionEnum];
|
|
724
|
+
/**
|
|
725
|
+
* @export
|
|
726
|
+
*/
|
|
727
|
+
export const PositionFundingSideEnum = {
|
|
728
|
+
Long: 'long',
|
|
729
|
+
Short: 'short',
|
|
730
|
+
All: 'all'
|
|
731
|
+
} as const;
|
|
732
|
+
export type PositionFundingSideEnum = typeof PositionFundingSideEnum[keyof typeof PositionFundingSideEnum];
|
|
719
733
|
/**
|
|
720
734
|
* @export
|
|
721
735
|
*/
|
|
@@ -43,8 +43,26 @@ export interface ReqGetPositionFunding {
|
|
|
43
43
|
* @memberof ReqGetPositionFunding
|
|
44
44
|
*/
|
|
45
45
|
limit: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ReqGetPositionFunding
|
|
50
|
+
*/
|
|
51
|
+
side?: ReqGetPositionFundingSideEnum;
|
|
46
52
|
}
|
|
47
53
|
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const ReqGetPositionFundingSideEnum = {
|
|
59
|
+
Long: 'long',
|
|
60
|
+
Short: 'short',
|
|
61
|
+
All: 'all'
|
|
62
|
+
} as const;
|
|
63
|
+
export type ReqGetPositionFundingSideEnum = typeof ReqGetPositionFundingSideEnum[keyof typeof ReqGetPositionFundingSideEnum];
|
|
64
|
+
|
|
65
|
+
|
|
48
66
|
/**
|
|
49
67
|
* Check if a given object implements the ReqGetPositionFunding interface.
|
|
50
68
|
*/
|
|
@@ -68,6 +86,7 @@ export function ReqGetPositionFundingFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
68
86
|
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
69
87
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
70
88
|
'limit': json['limit'],
|
|
89
|
+
'side': json['side'] == null ? undefined : json['side'],
|
|
71
90
|
};
|
|
72
91
|
}
|
|
73
92
|
|
|
@@ -81,6 +100,7 @@ export function ReqGetPositionFundingToJSON(value?: ReqGetPositionFunding | null
|
|
|
81
100
|
'market_id': value['market_id'],
|
|
82
101
|
'cursor': value['cursor'],
|
|
83
102
|
'limit': value['limit'],
|
|
103
|
+
'side': value['side'],
|
|
84
104
|
};
|
|
85
105
|
}
|
|
86
106
|
|
package/openapi.json
CHANGED
|
@@ -1758,6 +1758,18 @@
|
|
|
1758
1758
|
"format": "int64",
|
|
1759
1759
|
"minimum": 1,
|
|
1760
1760
|
"maximum": 100
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"name": "side",
|
|
1764
|
+
"in": "query",
|
|
1765
|
+
"required": false,
|
|
1766
|
+
"type": "string",
|
|
1767
|
+
"enum": [
|
|
1768
|
+
"long",
|
|
1769
|
+
"short",
|
|
1770
|
+
"all"
|
|
1771
|
+
],
|
|
1772
|
+
"default": "all"
|
|
1761
1773
|
}
|
|
1762
1774
|
],
|
|
1763
1775
|
"tags": [
|
|
@@ -5979,6 +5991,15 @@
|
|
|
5979
5991
|
"format": "int64",
|
|
5980
5992
|
"maximum": 100,
|
|
5981
5993
|
"minimum": 1
|
|
5994
|
+
},
|
|
5995
|
+
"side": {
|
|
5996
|
+
"type": "string",
|
|
5997
|
+
"enum": [
|
|
5998
|
+
"long",
|
|
5999
|
+
"short",
|
|
6000
|
+
"all"
|
|
6001
|
+
],
|
|
6002
|
+
"default": "all"
|
|
5982
6003
|
}
|
|
5983
6004
|
},
|
|
5984
6005
|
"title": "ReqGetPositionFunding",
|