zklighter-perps 1.0.182 → 1.0.183
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/apis/index.ts +1 -0
- package/models/EnrichedTx.ts +9 -0
- package/models/PublicPoolInfo.ts +9 -0
- package/models/PublicPoolMetadata.ts +18 -0
- package/models/Tx.ts +9 -0
- package/openapi.json +54 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/apis/index.ts
CHANGED
package/models/EnrichedTx.ts
CHANGED
|
@@ -121,6 +121,12 @@ export interface EnrichedTx {
|
|
|
121
121
|
* @memberof EnrichedTx
|
|
122
122
|
*/
|
|
123
123
|
parent_hash: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof EnrichedTx
|
|
128
|
+
*/
|
|
129
|
+
api_key_index: number;
|
|
124
130
|
/**
|
|
125
131
|
*
|
|
126
132
|
* @type {number}
|
|
@@ -155,6 +161,7 @@ export function instanceOfEnrichedTx(value: object): value is EnrichedTx {
|
|
|
155
161
|
if (!('executed_at' in value) || value['executed_at'] === undefined) return false;
|
|
156
162
|
if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false;
|
|
157
163
|
if (!('parent_hash' in value) || value['parent_hash'] === undefined) return false;
|
|
164
|
+
if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false;
|
|
158
165
|
if (!('committed_at' in value) || value['committed_at'] === undefined) return false;
|
|
159
166
|
if (!('verified_at' in value) || value['verified_at'] === undefined) return false;
|
|
160
167
|
return true;
|
|
@@ -187,6 +194,7 @@ export function EnrichedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
187
194
|
'executed_at': json['executed_at'],
|
|
188
195
|
'sequence_index': json['sequence_index'],
|
|
189
196
|
'parent_hash': json['parent_hash'],
|
|
197
|
+
'api_key_index': json['api_key_index'],
|
|
190
198
|
'committed_at': json['committed_at'],
|
|
191
199
|
'verified_at': json['verified_at'],
|
|
192
200
|
};
|
|
@@ -215,6 +223,7 @@ export function EnrichedTxToJSON(value?: EnrichedTx | null): any {
|
|
|
215
223
|
'executed_at': value['executed_at'],
|
|
216
224
|
'sequence_index': value['sequence_index'],
|
|
217
225
|
'parent_hash': value['parent_hash'],
|
|
226
|
+
'api_key_index': value['api_key_index'],
|
|
218
227
|
'committed_at': value['committed_at'],
|
|
219
228
|
'verified_at': value['verified_at'],
|
|
220
229
|
};
|
package/models/PublicPoolInfo.ts
CHANGED
|
@@ -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/models/Tx.ts
CHANGED
|
@@ -109,6 +109,12 @@ export interface Tx {
|
|
|
109
109
|
* @memberof Tx
|
|
110
110
|
*/
|
|
111
111
|
parent_hash: string;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof Tx
|
|
116
|
+
*/
|
|
117
|
+
api_key_index: number;
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
/**
|
|
@@ -130,6 +136,7 @@ export function instanceOfTx(value: object): value is Tx {
|
|
|
130
136
|
if (!('executed_at' in value) || value['executed_at'] === undefined) return false;
|
|
131
137
|
if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false;
|
|
132
138
|
if (!('parent_hash' in value) || value['parent_hash'] === undefined) return false;
|
|
139
|
+
if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false;
|
|
133
140
|
return true;
|
|
134
141
|
}
|
|
135
142
|
|
|
@@ -158,6 +165,7 @@ export function TxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx {
|
|
|
158
165
|
'executed_at': json['executed_at'],
|
|
159
166
|
'sequence_index': json['sequence_index'],
|
|
160
167
|
'parent_hash': json['parent_hash'],
|
|
168
|
+
'api_key_index': json['api_key_index'],
|
|
161
169
|
};
|
|
162
170
|
}
|
|
163
171
|
|
|
@@ -182,6 +190,7 @@ export function TxToJSON(value?: Tx | null): any {
|
|
|
182
190
|
'executed_at': value['executed_at'],
|
|
183
191
|
'sequence_index': value['sequence_index'],
|
|
184
192
|
'parent_hash': value['parent_hash'],
|
|
193
|
+
'api_key_index': value['api_key_index'],
|
|
185
194
|
};
|
|
186
195
|
}
|
|
187
196
|
|
package/openapi.json
CHANGED
|
@@ -1516,6 +1516,30 @@
|
|
|
1516
1516
|
"description": "Coin Gecko Orderbook"
|
|
1517
1517
|
}
|
|
1518
1518
|
},
|
|
1519
|
+
"/api/v1/geoLocation": {
|
|
1520
|
+
"get": {
|
|
1521
|
+
"summary": "geoLocation",
|
|
1522
|
+
"operationId": "geoLocation",
|
|
1523
|
+
"responses": {
|
|
1524
|
+
"200": {
|
|
1525
|
+
"description": "A successful response.",
|
|
1526
|
+
"schema": {
|
|
1527
|
+
"$ref": "#/definitions/ResultCode"
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
"400": {
|
|
1531
|
+
"description": "Bad request",
|
|
1532
|
+
"schema": {
|
|
1533
|
+
"$ref": "#/definitions/ResultCode"
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
},
|
|
1537
|
+
"tags": [
|
|
1538
|
+
"geo"
|
|
1539
|
+
],
|
|
1540
|
+
"description": "Get geo location"
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1519
1543
|
"/api/v1/isWhitelisted": {
|
|
1520
1544
|
"get": {
|
|
1521
1545
|
"summary": "isWhitelisted",
|
|
@@ -4836,6 +4860,11 @@
|
|
|
4836
4860
|
"type": "string",
|
|
4837
4861
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
4838
4862
|
},
|
|
4863
|
+
"api_key_index": {
|
|
4864
|
+
"type": "integer",
|
|
4865
|
+
"format": "uint8",
|
|
4866
|
+
"example": "0"
|
|
4867
|
+
},
|
|
4839
4868
|
"committed_at": {
|
|
4840
4869
|
"type": "integer",
|
|
4841
4870
|
"format": "int64",
|
|
@@ -4865,6 +4894,7 @@
|
|
|
4865
4894
|
"executed_at",
|
|
4866
4895
|
"sequence_index",
|
|
4867
4896
|
"parent_hash",
|
|
4897
|
+
"api_key_index",
|
|
4868
4898
|
"committed_at",
|
|
4869
4899
|
"verified_at"
|
|
4870
4900
|
]
|
|
@@ -6623,6 +6653,11 @@
|
|
|
6623
6653
|
"format": "double",
|
|
6624
6654
|
"example": "20.5000"
|
|
6625
6655
|
},
|
|
6656
|
+
"sharpe_ratio": {
|
|
6657
|
+
"type": "number",
|
|
6658
|
+
"format": "double",
|
|
6659
|
+
"example": "1.5"
|
|
6660
|
+
},
|
|
6626
6661
|
"daily_returns": {
|
|
6627
6662
|
"type": "array",
|
|
6628
6663
|
"items": {
|
|
@@ -6644,6 +6679,7 @@
|
|
|
6644
6679
|
"total_shares",
|
|
6645
6680
|
"operator_shares",
|
|
6646
6681
|
"annual_percentage_yield",
|
|
6682
|
+
"sharpe_ratio",
|
|
6647
6683
|
"daily_returns",
|
|
6648
6684
|
"share_prices"
|
|
6649
6685
|
]
|
|
@@ -6664,6 +6700,10 @@
|
|
|
6664
6700
|
"format": "int64",
|
|
6665
6701
|
"example": "3"
|
|
6666
6702
|
},
|
|
6703
|
+
"created_at": {
|
|
6704
|
+
"type": "integer",
|
|
6705
|
+
"format": "int64"
|
|
6706
|
+
},
|
|
6667
6707
|
"master_account_index": {
|
|
6668
6708
|
"type": "integer",
|
|
6669
6709
|
"format": "int64",
|
|
@@ -6686,6 +6726,11 @@
|
|
|
6686
6726
|
"format": "double",
|
|
6687
6727
|
"example": "20.5000"
|
|
6688
6728
|
},
|
|
6729
|
+
"sharpe_ratio": {
|
|
6730
|
+
"type": "number",
|
|
6731
|
+
"format": "double",
|
|
6732
|
+
"example": "1.5"
|
|
6733
|
+
},
|
|
6689
6734
|
"status": {
|
|
6690
6735
|
"type": "integer",
|
|
6691
6736
|
"format": "uint8",
|
|
@@ -6712,11 +6757,13 @@
|
|
|
6712
6757
|
"required": [
|
|
6713
6758
|
"code",
|
|
6714
6759
|
"account_index",
|
|
6760
|
+
"created_at",
|
|
6715
6761
|
"master_account_index",
|
|
6716
6762
|
"account_type",
|
|
6717
6763
|
"name",
|
|
6718
6764
|
"l1_address",
|
|
6719
6765
|
"annual_percentage_yield",
|
|
6766
|
+
"sharpe_ratio",
|
|
6720
6767
|
"status",
|
|
6721
6768
|
"operator_fee",
|
|
6722
6769
|
"total_asset_value",
|
|
@@ -9290,6 +9337,11 @@
|
|
|
9290
9337
|
"parent_hash": {
|
|
9291
9338
|
"type": "string",
|
|
9292
9339
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
9340
|
+
},
|
|
9341
|
+
"api_key_index": {
|
|
9342
|
+
"type": "integer",
|
|
9343
|
+
"format": "uint8",
|
|
9344
|
+
"example": "0"
|
|
9293
9345
|
}
|
|
9294
9346
|
},
|
|
9295
9347
|
"title": "Tx",
|
|
@@ -9308,7 +9360,8 @@
|
|
|
9308
9360
|
"queued_at",
|
|
9309
9361
|
"executed_at",
|
|
9310
9362
|
"sequence_index",
|
|
9311
|
-
"parent_hash"
|
|
9363
|
+
"parent_hash",
|
|
9364
|
+
"api_key_index"
|
|
9312
9365
|
]
|
|
9313
9366
|
},
|
|
9314
9367
|
"TxHash": {
|