zklighter-perps 1.0.251 → 1.0.253
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 +10 -0
- package/models/AccountLimits.ts +2 -3
- package/models/ReqGetPositionFunding.ts +16 -0
- package/models/SystemConfig.ts +2 -3
- package/openapi.json +23 -3
- package/package.json +1 -1
package/apis/AccountApi.ts
CHANGED
|
@@ -237,6 +237,8 @@ export interface PositionFundingRequest {
|
|
|
237
237
|
market_id?: number;
|
|
238
238
|
cursor?: string;
|
|
239
239
|
side?: PositionFundingSideEnum;
|
|
240
|
+
start_timestamp?: number;
|
|
241
|
+
end_timestamp?: number;
|
|
240
242
|
}
|
|
241
243
|
|
|
242
244
|
export interface PublicPoolsMetadataRequest {
|
|
@@ -1445,6 +1447,14 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1445
1447
|
queryParameters['side'] = requestParameters['side'];
|
|
1446
1448
|
}
|
|
1447
1449
|
|
|
1450
|
+
if (requestParameters['start_timestamp'] != null) {
|
|
1451
|
+
queryParameters['start_timestamp'] = requestParameters['start_timestamp'];
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
if (requestParameters['end_timestamp'] != null) {
|
|
1455
|
+
queryParameters['end_timestamp'] = requestParameters['end_timestamp'];
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1448
1458
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1449
1459
|
|
|
1450
1460
|
const response = await this.request({
|
package/models/AccountLimits.ts
CHANGED
|
@@ -90,7 +90,7 @@ export interface AccountLimits {
|
|
|
90
90
|
* @type {number}
|
|
91
91
|
* @memberof AccountLimits
|
|
92
92
|
*/
|
|
93
|
-
user_tier_last_update
|
|
93
|
+
user_tier_last_update?: number;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
@@ -107,7 +107,6 @@ export function instanceOfAccountLimits(value: object): value is AccountLimits {
|
|
|
107
107
|
if (!('current_taker_fee_tick' in value) || value['current_taker_fee_tick'] === undefined) return false;
|
|
108
108
|
if (!('leased_lit' in value) || value['leased_lit'] === undefined) return false;
|
|
109
109
|
if (!('effective_lit_stakes' in value) || value['effective_lit_stakes'] === undefined) return false;
|
|
110
|
-
if (!('user_tier_last_update' in value) || value['user_tier_last_update'] === undefined) return false;
|
|
111
110
|
return true;
|
|
112
111
|
}
|
|
113
112
|
|
|
@@ -132,7 +131,7 @@ export function AccountLimitsFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
132
131
|
'current_taker_fee_tick': json['current_taker_fee_tick'],
|
|
133
132
|
'leased_lit': json['leased_lit'],
|
|
134
133
|
'effective_lit_stakes': json['effective_lit_stakes'],
|
|
135
|
-
'user_tier_last_update': json['user_tier_last_update'],
|
|
134
|
+
'user_tier_last_update': json['user_tier_last_update'] == null ? undefined : json['user_tier_last_update'],
|
|
136
135
|
};
|
|
137
136
|
}
|
|
138
137
|
|
|
@@ -55,6 +55,18 @@ export interface ReqGetPositionFunding {
|
|
|
55
55
|
* @memberof ReqGetPositionFunding
|
|
56
56
|
*/
|
|
57
57
|
side?: ReqGetPositionFundingSideEnum;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof ReqGetPositionFunding
|
|
62
|
+
*/
|
|
63
|
+
start_timestamp?: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof ReqGetPositionFunding
|
|
68
|
+
*/
|
|
69
|
+
end_timestamp?: number;
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
|
|
@@ -94,6 +106,8 @@ export function ReqGetPositionFundingFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
94
106
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
95
107
|
'limit': json['limit'],
|
|
96
108
|
'side': json['side'] == null ? undefined : json['side'],
|
|
109
|
+
'start_timestamp': json['start_timestamp'] == null ? undefined : json['start_timestamp'],
|
|
110
|
+
'end_timestamp': json['end_timestamp'] == null ? undefined : json['end_timestamp'],
|
|
97
111
|
};
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -109,6 +123,8 @@ export function ReqGetPositionFundingToJSON(value?: ReqGetPositionFunding | null
|
|
|
109
123
|
'cursor': value['cursor'],
|
|
110
124
|
'limit': value['limit'],
|
|
111
125
|
'side': value['side'],
|
|
126
|
+
'start_timestamp': value['start_timestamp'],
|
|
127
|
+
'end_timestamp': value['end_timestamp'],
|
|
112
128
|
};
|
|
113
129
|
}
|
|
114
130
|
|
package/models/SystemConfig.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface SystemConfig {
|
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof SystemConfig
|
|
56
56
|
*/
|
|
57
|
-
market_maker_incentive_account_index
|
|
57
|
+
market_maker_incentive_account_index?: number;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {number}
|
|
@@ -101,7 +101,6 @@ export function instanceOfSystemConfig(value: object): value is SystemConfig {
|
|
|
101
101
|
if (!('liquidity_pool_index' in value) || value['liquidity_pool_index'] === undefined) return false;
|
|
102
102
|
if (!('staking_pool_index' in value) || value['staking_pool_index'] === undefined) return false;
|
|
103
103
|
if (!('funding_fee_rebate_account_index' in value) || value['funding_fee_rebate_account_index'] === undefined) return false;
|
|
104
|
-
if (!('market_maker_incentive_account_index' in value) || value['market_maker_incentive_account_index'] === undefined) return false;
|
|
105
104
|
if (!('liquidity_pool_cooldown_period' in value) || value['liquidity_pool_cooldown_period'] === undefined) return false;
|
|
106
105
|
if (!('staking_pool_lockup_period' in value) || value['staking_pool_lockup_period'] === undefined) return false;
|
|
107
106
|
if (!('max_integrator_spot_taker_fee' in value) || value['max_integrator_spot_taker_fee'] === undefined) return false;
|
|
@@ -126,7 +125,7 @@ export function SystemConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
126
125
|
'liquidity_pool_index': json['liquidity_pool_index'],
|
|
127
126
|
'staking_pool_index': json['staking_pool_index'],
|
|
128
127
|
'funding_fee_rebate_account_index': json['funding_fee_rebate_account_index'],
|
|
129
|
-
'market_maker_incentive_account_index': json['market_maker_incentive_account_index'],
|
|
128
|
+
'market_maker_incentive_account_index': json['market_maker_incentive_account_index'] == null ? undefined : json['market_maker_incentive_account_index'],
|
|
130
129
|
'liquidity_pool_cooldown_period': json['liquidity_pool_cooldown_period'],
|
|
131
130
|
'staking_pool_lockup_period': json['staking_pool_lockup_period'],
|
|
132
131
|
'max_integrator_spot_taker_fee': json['max_integrator_spot_taker_fee'],
|
package/openapi.json
CHANGED
|
@@ -2914,6 +2914,20 @@
|
|
|
2914
2914
|
"all"
|
|
2915
2915
|
],
|
|
2916
2916
|
"default": "all"
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"name": "start_timestamp",
|
|
2920
|
+
"in": "query",
|
|
2921
|
+
"required": false,
|
|
2922
|
+
"type": "integer",
|
|
2923
|
+
"format": "int64"
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
"name": "end_timestamp",
|
|
2927
|
+
"in": "query",
|
|
2928
|
+
"required": false,
|
|
2929
|
+
"type": "integer",
|
|
2930
|
+
"format": "int64"
|
|
2917
2931
|
}
|
|
2918
2932
|
],
|
|
2919
2933
|
"tags": [
|
|
@@ -4915,8 +4929,7 @@
|
|
|
4915
4929
|
"current_maker_fee_tick",
|
|
4916
4930
|
"current_taker_fee_tick",
|
|
4917
4931
|
"leased_lit",
|
|
4918
|
-
"effective_lit_stakes"
|
|
4919
|
-
"user_tier_last_update"
|
|
4932
|
+
"effective_lit_stakes"
|
|
4920
4933
|
]
|
|
4921
4934
|
},
|
|
4922
4935
|
"AccountMarginStats": {
|
|
@@ -10785,6 +10798,14 @@
|
|
|
10785
10798
|
"all"
|
|
10786
10799
|
],
|
|
10787
10800
|
"default": "all"
|
|
10801
|
+
},
|
|
10802
|
+
"start_timestamp": {
|
|
10803
|
+
"type": "integer",
|
|
10804
|
+
"format": "int64"
|
|
10805
|
+
},
|
|
10806
|
+
"end_timestamp": {
|
|
10807
|
+
"type": "integer",
|
|
10808
|
+
"format": "int64"
|
|
10788
10809
|
}
|
|
10789
10810
|
},
|
|
10790
10811
|
"title": "ReqGetPositionFunding",
|
|
@@ -13108,7 +13129,6 @@
|
|
|
13108
13129
|
"liquidity_pool_index",
|
|
13109
13130
|
"staking_pool_index",
|
|
13110
13131
|
"funding_fee_rebate_account_index",
|
|
13111
|
-
"market_maker_incentive_account_index",
|
|
13112
13132
|
"liquidity_pool_cooldown_period",
|
|
13113
13133
|
"staking_pool_lockup_period",
|
|
13114
13134
|
"max_integrator_spot_taker_fee",
|