zklighter-perps 1.0.178 → 1.0.179

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.
@@ -68,6 +68,12 @@ export interface PublicPoolInfo {
68
68
  * @memberof PublicPoolInfo
69
69
  */
70
70
  annual_percentage_yield: number;
71
+ /**
72
+ *
73
+ * @type {number}
74
+ * @memberof PublicPoolInfo
75
+ */
76
+ sharpe_ratio: number;
71
77
  /**
72
78
  *
73
79
  * @type {Array<DailyReturn>}
@@ -92,6 +98,7 @@ export function instanceOfPublicPoolInfo(value: object): value is PublicPoolInfo
92
98
  if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
93
99
  if (!('operator_shares' in value) || value['operator_shares'] === undefined) return false;
94
100
  if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
101
+ if (!('sharpe_ratio' in value) || value['sharpe_ratio'] === undefined) return false;
95
102
  if (!('daily_returns' in value) || value['daily_returns'] === undefined) return false;
96
103
  if (!('share_prices' in value) || value['share_prices'] === undefined) return false;
97
104
  return true;
@@ -113,6 +120,7 @@ export function PublicPoolInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
113
120
  'total_shares': json['total_shares'],
114
121
  'operator_shares': json['operator_shares'],
115
122
  'annual_percentage_yield': json['annual_percentage_yield'],
123
+ 'sharpe_ratio': json['sharpe_ratio'],
116
124
  'daily_returns': ((json['daily_returns'] as Array<any>).map(DailyReturnFromJSON)),
117
125
  'share_prices': ((json['share_prices'] as Array<any>).map(SharePriceFromJSON)),
118
126
  };
@@ -130,6 +138,7 @@ export function PublicPoolInfoToJSON(value?: PublicPoolInfo | null): any {
130
138
  'total_shares': value['total_shares'],
131
139
  'operator_shares': value['operator_shares'],
132
140
  'annual_percentage_yield': value['annual_percentage_yield'],
141
+ 'sharpe_ratio': value['sharpe_ratio'],
133
142
  'daily_returns': ((value['daily_returns'] as Array<any>).map(DailyReturnToJSON)),
134
143
  'share_prices': ((value['share_prices'] as Array<any>).map(SharePriceToJSON)),
135
144
  };
@@ -44,6 +44,12 @@ export interface PublicPoolMetadata {
44
44
  * @memberof PublicPoolMetadata
45
45
  */
46
46
  account_index: number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof PublicPoolMetadata
51
+ */
52
+ created_at: number;
47
53
  /**
48
54
  *
49
55
  * @type {number}
@@ -74,6 +80,12 @@ export interface PublicPoolMetadata {
74
80
  * @memberof PublicPoolMetadata
75
81
  */
76
82
  annual_percentage_yield: number;
83
+ /**
84
+ *
85
+ * @type {number}
86
+ * @memberof PublicPoolMetadata
87
+ */
88
+ sharpe_ratio: number;
77
89
  /**
78
90
  *
79
91
  * @type {number}
@@ -112,11 +124,13 @@ export interface PublicPoolMetadata {
112
124
  export function instanceOfPublicPoolMetadata(value: object): value is PublicPoolMetadata {
113
125
  if (!('code' in value) || value['code'] === undefined) return false;
114
126
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
127
+ if (!('created_at' in value) || value['created_at'] === undefined) return false;
115
128
  if (!('master_account_index' in value) || value['master_account_index'] === undefined) return false;
116
129
  if (!('account_type' in value) || value['account_type'] === undefined) return false;
117
130
  if (!('name' in value) || value['name'] === undefined) return false;
118
131
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
119
132
  if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
133
+ if (!('sharpe_ratio' in value) || value['sharpe_ratio'] === undefined) return false;
120
134
  if (!('status' in value) || value['status'] === undefined) return false;
121
135
  if (!('operator_fee' in value) || value['operator_fee'] === undefined) return false;
122
136
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
@@ -137,11 +151,13 @@ export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator:
137
151
  'code': json['code'],
138
152
  'message': json['message'] == null ? undefined : json['message'],
139
153
  'account_index': json['account_index'],
154
+ 'created_at': json['created_at'],
140
155
  'master_account_index': json['master_account_index'],
141
156
  'account_type': json['account_type'],
142
157
  'name': json['name'],
143
158
  'l1_address': json['l1_address'],
144
159
  'annual_percentage_yield': json['annual_percentage_yield'],
160
+ 'sharpe_ratio': json['sharpe_ratio'],
145
161
  'status': json['status'],
146
162
  'operator_fee': json['operator_fee'],
147
163
  'total_asset_value': json['total_asset_value'],
@@ -159,11 +175,13 @@ export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any
159
175
  'code': value['code'],
160
176
  'message': value['message'],
161
177
  'account_index': value['account_index'],
178
+ 'created_at': value['created_at'],
162
179
  'master_account_index': value['master_account_index'],
163
180
  'account_type': value['account_type'],
164
181
  'name': value['name'],
165
182
  'l1_address': value['l1_address'],
166
183
  'annual_percentage_yield': value['annual_percentage_yield'],
184
+ 'sharpe_ratio': value['sharpe_ratio'],
167
185
  'status': value['status'],
168
186
  'operator_fee': value['operator_fee'],
169
187
  'total_asset_value': value['total_asset_value'],
package/openapi.json CHANGED
@@ -6367,6 +6367,11 @@
6367
6367
  "format": "double",
6368
6368
  "example": "20.5000"
6369
6369
  },
6370
+ "sharpe_ratio": {
6371
+ "type": "number",
6372
+ "format": "double",
6373
+ "example": "1.5"
6374
+ },
6370
6375
  "daily_returns": {
6371
6376
  "type": "array",
6372
6377
  "items": {
@@ -6388,6 +6393,7 @@
6388
6393
  "total_shares",
6389
6394
  "operator_shares",
6390
6395
  "annual_percentage_yield",
6396
+ "sharpe_ratio",
6391
6397
  "daily_returns",
6392
6398
  "share_prices"
6393
6399
  ]
@@ -6408,6 +6414,10 @@
6408
6414
  "format": "int64",
6409
6415
  "example": "3"
6410
6416
  },
6417
+ "created_at": {
6418
+ "type": "integer",
6419
+ "format": "int64"
6420
+ },
6411
6421
  "master_account_index": {
6412
6422
  "type": "integer",
6413
6423
  "format": "int64",
@@ -6430,6 +6440,11 @@
6430
6440
  "format": "double",
6431
6441
  "example": "20.5000"
6432
6442
  },
6443
+ "sharpe_ratio": {
6444
+ "type": "number",
6445
+ "format": "double",
6446
+ "example": "1.5"
6447
+ },
6433
6448
  "status": {
6434
6449
  "type": "integer",
6435
6450
  "format": "uint8",
@@ -6456,11 +6471,13 @@
6456
6471
  "required": [
6457
6472
  "code",
6458
6473
  "account_index",
6474
+ "created_at",
6459
6475
  "master_account_index",
6460
6476
  "account_type",
6461
6477
  "name",
6462
6478
  "l1_address",
6463
6479
  "annual_percentage_yield",
6480
+ "sharpe_ratio",
6464
6481
  "status",
6465
6482
  "operator_fee",
6466
6483
  "total_asset_value",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.178",
3
+ "version": "1.0.179",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {