zklighter-perps 1.0.107 → 1.0.108
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/AccountPosition.ts +8 -0
- package/models/Status.ts +9 -0
- package/openapi.json +11 -1
- package/package.json +1 -1
|
@@ -36,6 +36,9 @@ with open(FILE, "r") as f:
|
|
|
36
36
|
if "account_share" in required_fields:
|
|
37
37
|
required_fields.remove("account_share")
|
|
38
38
|
|
|
39
|
+
if "total_funding_paid_out" in required_fields:
|
|
40
|
+
required_fields.remove("total_funding_paid_out")
|
|
41
|
+
|
|
39
42
|
if len(required_fields) > 0:
|
|
40
43
|
data["definitions"][path]["required"] = required_fields
|
|
41
44
|
else:
|
|
@@ -91,6 +91,12 @@ export interface AccountPosition {
|
|
|
91
91
|
* @memberof AccountPosition
|
|
92
92
|
*/
|
|
93
93
|
realized_pnl: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof AccountPosition
|
|
98
|
+
*/
|
|
99
|
+
total_funding_paid_out?: string;
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
/**
|
|
@@ -134,6 +140,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
134
140
|
'position_value': json['position_value'],
|
|
135
141
|
'unrealized_pnl': json['unrealized_pnl'],
|
|
136
142
|
'realized_pnl': json['realized_pnl'],
|
|
143
|
+
'total_funding_paid_out': json['total_funding_paid_out'] == null ? undefined : json['total_funding_paid_out'],
|
|
137
144
|
};
|
|
138
145
|
}
|
|
139
146
|
|
|
@@ -155,6 +162,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
|
|
|
155
162
|
'position_value': value['position_value'],
|
|
156
163
|
'unrealized_pnl': value['unrealized_pnl'],
|
|
157
164
|
'realized_pnl': value['realized_pnl'],
|
|
165
|
+
'total_funding_paid_out': value['total_funding_paid_out'],
|
|
158
166
|
};
|
|
159
167
|
}
|
|
160
168
|
|
package/models/Status.ts
CHANGED
|
@@ -31,6 +31,12 @@ export interface Status {
|
|
|
31
31
|
* @memberof Status
|
|
32
32
|
*/
|
|
33
33
|
network_id: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Status
|
|
38
|
+
*/
|
|
39
|
+
timestamp: number;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export interface Status {
|
|
|
39
45
|
export function instanceOfStatus(value: object): value is Status {
|
|
40
46
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
41
47
|
if (!('network_id' in value) || value['network_id'] === undefined) return false;
|
|
48
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
42
49
|
return true;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -54,6 +61,7 @@ export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): St
|
|
|
54
61
|
|
|
55
62
|
'status': json['status'],
|
|
56
63
|
'network_id': json['network_id'],
|
|
64
|
+
'timestamp': json['timestamp'],
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -65,6 +73,7 @@ export function StatusToJSON(value?: Status | null): any {
|
|
|
65
73
|
|
|
66
74
|
'status': value['status'],
|
|
67
75
|
'network_id': value['network_id'],
|
|
76
|
+
'timestamp': value['timestamp'],
|
|
68
77
|
};
|
|
69
78
|
}
|
|
70
79
|
|
package/openapi.json
CHANGED
|
@@ -2755,6 +2755,10 @@
|
|
|
2755
2755
|
"realized_pnl": {
|
|
2756
2756
|
"type": "string",
|
|
2757
2757
|
"example": "2.000000"
|
|
2758
|
+
},
|
|
2759
|
+
"total_funding_paid_out": {
|
|
2760
|
+
"type": "string",
|
|
2761
|
+
"example": "34.2"
|
|
2758
2762
|
}
|
|
2759
2763
|
},
|
|
2760
2764
|
"title": "AccountPosition",
|
|
@@ -6534,12 +6538,18 @@
|
|
|
6534
6538
|
"type": "integer",
|
|
6535
6539
|
"format": "int32",
|
|
6536
6540
|
"example": "1"
|
|
6541
|
+
},
|
|
6542
|
+
"timestamp": {
|
|
6543
|
+
"type": "integer",
|
|
6544
|
+
"format": "int64",
|
|
6545
|
+
"example": "1717777777"
|
|
6537
6546
|
}
|
|
6538
6547
|
},
|
|
6539
6548
|
"title": "Status",
|
|
6540
6549
|
"required": [
|
|
6541
6550
|
"status",
|
|
6542
|
-
"network_id"
|
|
6551
|
+
"network_id",
|
|
6552
|
+
"timestamp"
|
|
6543
6553
|
]
|
|
6544
6554
|
},
|
|
6545
6555
|
"SubAccounts": {
|