zklighter-perps 1.0.96 → 1.0.97
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/.circleci/openapi_postprocess.py +3 -0
- package/models/PnLEntry.ts +18 -0
- package/models/PublicPool.ts +2 -3
- package/openapi.json +14 -3
- package/package.json +1 -1
|
@@ -33,6 +33,9 @@ with open(FILE, "r") as f:
|
|
|
33
33
|
if "next_cursor" in required_fields:
|
|
34
34
|
required_fields.remove("next_cursor")
|
|
35
35
|
|
|
36
|
+
if "account_share" in required_fields:
|
|
37
|
+
required_fields.remove("account_share")
|
|
38
|
+
|
|
36
39
|
if len(required_fields) > 0:
|
|
37
40
|
data["definitions"][path]["required"] = required_fields
|
|
38
41
|
else:
|
package/models/PnLEntry.ts
CHANGED
|
@@ -31,6 +31,18 @@ export interface PnLEntry {
|
|
|
31
31
|
* @memberof PnLEntry
|
|
32
32
|
*/
|
|
33
33
|
value: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PnLEntry
|
|
38
|
+
*/
|
|
39
|
+
trade_pnl: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PnLEntry
|
|
44
|
+
*/
|
|
45
|
+
pool_pnl: number;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
/**
|
|
@@ -39,6 +51,8 @@ export interface PnLEntry {
|
|
|
39
51
|
export function instanceOfPnLEntry(value: object): value is PnLEntry {
|
|
40
52
|
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
41
53
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
54
|
+
if (!('trade_pnl' in value) || value['trade_pnl'] === undefined) return false;
|
|
55
|
+
if (!('pool_pnl' in value) || value['pool_pnl'] === undefined) return false;
|
|
42
56
|
return true;
|
|
43
57
|
}
|
|
44
58
|
|
|
@@ -54,6 +68,8 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
54
68
|
|
|
55
69
|
'timestamp': json['timestamp'],
|
|
56
70
|
'value': json['value'],
|
|
71
|
+
'trade_pnl': json['trade_pnl'],
|
|
72
|
+
'pool_pnl': json['pool_pnl'],
|
|
57
73
|
};
|
|
58
74
|
}
|
|
59
75
|
|
|
@@ -65,6 +81,8 @@ export function PnLEntryToJSON(value?: PnLEntry | null): any {
|
|
|
65
81
|
|
|
66
82
|
'timestamp': value['timestamp'],
|
|
67
83
|
'value': value['value'],
|
|
84
|
+
'trade_pnl': value['trade_pnl'],
|
|
85
|
+
'pool_pnl': value['pool_pnl'],
|
|
68
86
|
};
|
|
69
87
|
}
|
|
70
88
|
|
package/models/PublicPool.ts
CHANGED
|
@@ -139,7 +139,7 @@ export interface PublicPool {
|
|
|
139
139
|
* @type {PublicPoolShare}
|
|
140
140
|
* @memberof PublicPool
|
|
141
141
|
*/
|
|
142
|
-
account_share
|
|
142
|
+
account_share?: PublicPoolShare;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
@@ -162,7 +162,6 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
|
|
|
162
162
|
if (!('max_referral_usage_limit' in value) || value['max_referral_usage_limit'] === undefined) return false;
|
|
163
163
|
if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
|
|
164
164
|
if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
|
|
165
|
-
if (!('account_share' in value) || value['account_share'] === undefined) return false;
|
|
166
165
|
return true;
|
|
167
166
|
}
|
|
168
167
|
|
|
@@ -193,7 +192,7 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
193
192
|
'max_referral_usage_limit': json['max_referral_usage_limit'],
|
|
194
193
|
'total_asset_value': json['total_asset_value'],
|
|
195
194
|
'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
|
|
196
|
-
'account_share': PublicPoolShareFromJSON(json['account_share']),
|
|
195
|
+
'account_share': json['account_share'] == null ? undefined : PublicPoolShareFromJSON(json['account_share']),
|
|
197
196
|
};
|
|
198
197
|
}
|
|
199
198
|
|
package/openapi.json
CHANGED
|
@@ -4727,12 +4727,24 @@
|
|
|
4727
4727
|
"type": "number",
|
|
4728
4728
|
"format": "double",
|
|
4729
4729
|
"example": "12.0"
|
|
4730
|
+
},
|
|
4731
|
+
"trade_pnl": {
|
|
4732
|
+
"type": "number",
|
|
4733
|
+
"format": "double",
|
|
4734
|
+
"example": "12.0"
|
|
4735
|
+
},
|
|
4736
|
+
"pool_pnl": {
|
|
4737
|
+
"type": "number",
|
|
4738
|
+
"format": "double",
|
|
4739
|
+
"example": "12.0"
|
|
4730
4740
|
}
|
|
4731
4741
|
},
|
|
4732
4742
|
"title": "PnLEntry",
|
|
4733
4743
|
"required": [
|
|
4734
4744
|
"timestamp",
|
|
4735
|
-
"value"
|
|
4745
|
+
"value",
|
|
4746
|
+
"trade_pnl",
|
|
4747
|
+
"pool_pnl"
|
|
4736
4748
|
]
|
|
4737
4749
|
},
|
|
4738
4750
|
"PositionFunding": {
|
|
@@ -4897,8 +4909,7 @@
|
|
|
4897
4909
|
"referral_points_percentage",
|
|
4898
4910
|
"max_referral_usage_limit",
|
|
4899
4911
|
"total_asset_value",
|
|
4900
|
-
"pool_info"
|
|
4901
|
-
"account_share"
|
|
4912
|
+
"pool_info"
|
|
4902
4913
|
]
|
|
4903
4914
|
},
|
|
4904
4915
|
"PublicPoolInfo": {
|