zklighter-perps 1.0.99 → 1.0.101
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/models/DetailedAccount.ts +0 -15
- package/models/PublicPoolInfo.ts +25 -0
- package/openapi.json +14 -8
- package/package.json +1 -1
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
AccountMarketStatsFromJSONTyped,
|
|
20
20
|
AccountMarketStatsToJSON,
|
|
21
21
|
} from './AccountMarketStats';
|
|
22
|
-
import type { AccountTradeStats } from './AccountTradeStats';
|
|
23
|
-
import {
|
|
24
|
-
AccountTradeStatsFromJSON,
|
|
25
|
-
AccountTradeStatsFromJSONTyped,
|
|
26
|
-
AccountTradeStatsToJSON,
|
|
27
|
-
} from './AccountTradeStats';
|
|
28
22
|
import type { AccountPosition } from './AccountPosition';
|
|
29
23
|
import {
|
|
30
24
|
AccountPositionFromJSON,
|
|
@@ -146,12 +140,6 @@ export interface DetailedAccount {
|
|
|
146
140
|
* @memberof DetailedAccount
|
|
147
141
|
*/
|
|
148
142
|
positions: Array<AccountPosition>;
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
* @type {Array<AccountTradeStats>}
|
|
152
|
-
* @memberof DetailedAccount
|
|
153
|
-
*/
|
|
154
|
-
trade_stats: Array<AccountTradeStats>;
|
|
155
143
|
/**
|
|
156
144
|
*
|
|
157
145
|
* @type {string}
|
|
@@ -197,7 +185,6 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
197
185
|
if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
|
|
198
186
|
if (!('max_referral_usage_limit' in value) || value['max_referral_usage_limit'] === undefined) return false;
|
|
199
187
|
if (!('positions' in value) || value['positions'] === undefined) return false;
|
|
200
|
-
if (!('trade_stats' in value) || value['trade_stats'] === undefined) return false;
|
|
201
188
|
if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
|
|
202
189
|
if (!('market_stats' in value) || value['market_stats'] === undefined) return false;
|
|
203
190
|
if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
|
|
@@ -231,7 +218,6 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
231
218
|
'referral_points_percentage': json['referral_points_percentage'],
|
|
232
219
|
'max_referral_usage_limit': json['max_referral_usage_limit'],
|
|
233
220
|
'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
|
|
234
|
-
'trade_stats': ((json['trade_stats'] as Array<any>).map(AccountTradeStatsFromJSON)),
|
|
235
221
|
'total_asset_value': json['total_asset_value'],
|
|
236
222
|
'market_stats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
|
|
237
223
|
'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
|
|
@@ -261,7 +247,6 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
261
247
|
'referral_points_percentage': value['referral_points_percentage'],
|
|
262
248
|
'max_referral_usage_limit': value['max_referral_usage_limit'],
|
|
263
249
|
'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
|
|
264
|
-
'trade_stats': ((value['trade_stats'] as Array<any>).map(AccountTradeStatsToJSON)),
|
|
265
250
|
'total_asset_value': value['total_asset_value'],
|
|
266
251
|
'market_stats': ((value['market_stats'] as Array<any>).map(AccountMarketStatsToJSON)),
|
|
267
252
|
'pool_info': PublicPoolInfoToJSON(value['pool_info']),
|
package/models/PublicPoolInfo.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Float64 } from './Float64';
|
|
17
|
+
import {
|
|
18
|
+
Float64FromJSON,
|
|
19
|
+
Float64FromJSONTyped,
|
|
20
|
+
Float64ToJSON,
|
|
21
|
+
} from './Float64';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -67,6 +74,18 @@ export interface PublicPoolInfo {
|
|
|
67
74
|
* @memberof PublicPoolInfo
|
|
68
75
|
*/
|
|
69
76
|
share_price_30d: number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof PublicPoolInfo
|
|
81
|
+
*/
|
|
82
|
+
annual_percentage_yield: number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<Float64>}
|
|
86
|
+
* @memberof PublicPoolInfo
|
|
87
|
+
*/
|
|
88
|
+
returns: Array<Float64>;
|
|
70
89
|
}
|
|
71
90
|
|
|
72
91
|
/**
|
|
@@ -81,6 +100,8 @@ export function instanceOfPublicPoolInfo(value: object): value is PublicPoolInfo
|
|
|
81
100
|
if (!('share_price_1d' in value) || value['share_price_1d'] === undefined) return false;
|
|
82
101
|
if (!('share_price_7d' in value) || value['share_price_7d'] === undefined) return false;
|
|
83
102
|
if (!('share_price_30d' in value) || value['share_price_30d'] === undefined) return false;
|
|
103
|
+
if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
|
|
104
|
+
if (!('returns' in value) || value['returns'] === undefined) return false;
|
|
84
105
|
return true;
|
|
85
106
|
}
|
|
86
107
|
|
|
@@ -102,6 +123,8 @@ export function PublicPoolInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
102
123
|
'share_price_1d': json['share_price_1d'],
|
|
103
124
|
'share_price_7d': json['share_price_7d'],
|
|
104
125
|
'share_price_30d': json['share_price_30d'],
|
|
126
|
+
'annual_percentage_yield': json['annual_percentage_yield'],
|
|
127
|
+
'returns': ((json['returns'] as Array<any>).map(Float64FromJSON)),
|
|
105
128
|
};
|
|
106
129
|
}
|
|
107
130
|
|
|
@@ -119,6 +142,8 @@ export function PublicPoolInfoToJSON(value?: PublicPoolInfo | null): any {
|
|
|
119
142
|
'share_price_1d': value['share_price_1d'],
|
|
120
143
|
'share_price_7d': value['share_price_7d'],
|
|
121
144
|
'share_price_30d': value['share_price_30d'],
|
|
145
|
+
'annual_percentage_yield': value['annual_percentage_yield'],
|
|
146
|
+
'returns': ((value['returns'] as Array<any>).map(Float64ToJSON)),
|
|
122
147
|
};
|
|
123
148
|
}
|
|
124
149
|
|
package/openapi.json
CHANGED
|
@@ -3387,12 +3387,6 @@
|
|
|
3387
3387
|
"$ref": "#/definitions/AccountPosition"
|
|
3388
3388
|
}
|
|
3389
3389
|
},
|
|
3390
|
-
"trade_stats": {
|
|
3391
|
-
"type": "array",
|
|
3392
|
-
"items": {
|
|
3393
|
-
"$ref": "#/definitions/AccountTradeStats"
|
|
3394
|
-
}
|
|
3395
|
-
},
|
|
3396
3390
|
"total_asset_value": {
|
|
3397
3391
|
"type": "string",
|
|
3398
3392
|
"example": "19995"
|
|
@@ -3430,7 +3424,6 @@
|
|
|
3430
3424
|
"referral_points_percentage",
|
|
3431
3425
|
"max_referral_usage_limit",
|
|
3432
3426
|
"positions",
|
|
3433
|
-
"trade_stats",
|
|
3434
3427
|
"total_asset_value",
|
|
3435
3428
|
"market_stats",
|
|
3436
3429
|
"pool_info",
|
|
@@ -4935,6 +4928,17 @@
|
|
|
4935
4928
|
"type": "number",
|
|
4936
4929
|
"format": "double",
|
|
4937
4930
|
"example": "0.0001"
|
|
4931
|
+
},
|
|
4932
|
+
"annual_percentage_yield": {
|
|
4933
|
+
"type": "number",
|
|
4934
|
+
"format": "double",
|
|
4935
|
+
"example": "20.5000"
|
|
4936
|
+
},
|
|
4937
|
+
"returns": {
|
|
4938
|
+
"type": "array",
|
|
4939
|
+
"items": {
|
|
4940
|
+
"$ref": "#/definitions/float64"
|
|
4941
|
+
}
|
|
4938
4942
|
}
|
|
4939
4943
|
},
|
|
4940
4944
|
"title": "PublicPoolInfo",
|
|
@@ -4946,7 +4950,9 @@
|
|
|
4946
4950
|
"operator_shares",
|
|
4947
4951
|
"share_price_1d",
|
|
4948
4952
|
"share_price_7d",
|
|
4949
|
-
"share_price_30d"
|
|
4953
|
+
"share_price_30d",
|
|
4954
|
+
"annual_percentage_yield",
|
|
4955
|
+
"returns"
|
|
4950
4956
|
]
|
|
4951
4957
|
},
|
|
4952
4958
|
"PublicPoolShare": {
|