zklighter-perps 1.0.107 → 1.0.109

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.
@@ -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
@@ -738,14 +738,18 @@
738
738
  "in": "query",
739
739
  "required": true,
740
740
  "type": "integer",
741
- "format": "int64"
741
+ "format": "int64",
742
+ "minimum": 0,
743
+ "maximum": 5000000000000
742
744
  },
743
745
  {
744
746
  "name": "end_timestamp",
745
747
  "in": "query",
746
748
  "required": true,
747
749
  "type": "integer",
748
- "format": "int64"
750
+ "format": "int64",
751
+ "minimum": 0,
752
+ "maximum": 5000000000000
749
753
  },
750
754
  {
751
755
  "name": "count_back",
@@ -1225,14 +1229,18 @@
1225
1229
  "in": "query",
1226
1230
  "required": true,
1227
1231
  "type": "integer",
1228
- "format": "int64"
1232
+ "format": "int64",
1233
+ "minimum": 0,
1234
+ "maximum": 5000000000000
1229
1235
  },
1230
1236
  {
1231
1237
  "name": "end_timestamp",
1232
1238
  "in": "query",
1233
1239
  "required": true,
1234
1240
  "type": "integer",
1235
- "format": "int64"
1241
+ "format": "int64",
1242
+ "minimum": 0,
1243
+ "maximum": 5000000000000
1236
1244
  },
1237
1245
  {
1238
1246
  "name": "count_back",
@@ -1676,14 +1684,18 @@
1676
1684
  "in": "query",
1677
1685
  "required": true,
1678
1686
  "type": "integer",
1679
- "format": "int64"
1687
+ "format": "int64",
1688
+ "minimum": 0,
1689
+ "maximum": 5000000000000
1680
1690
  },
1681
1691
  {
1682
1692
  "name": "end_timestamp",
1683
1693
  "in": "query",
1684
1694
  "required": true,
1685
1695
  "type": "integer",
1686
- "format": "int64"
1696
+ "format": "int64",
1697
+ "minimum": 0,
1698
+ "maximum": 5000000000000
1687
1699
  },
1688
1700
  {
1689
1701
  "name": "count_back",
@@ -2755,6 +2767,10 @@
2755
2767
  "realized_pnl": {
2756
2768
  "type": "string",
2757
2769
  "example": "2.000000"
2770
+ },
2771
+ "total_funding_paid_out": {
2772
+ "type": "string",
2773
+ "example": "34.2"
2758
2774
  }
2759
2775
  },
2760
2776
  "title": "AccountPosition",
@@ -5677,11 +5693,13 @@
5677
5693
  },
5678
5694
  "start_timestamp": {
5679
5695
  "type": "integer",
5680
- "format": "int64"
5696
+ "format": "int64",
5697
+ "maximum": 5000000000000
5681
5698
  },
5682
5699
  "end_timestamp": {
5683
5700
  "type": "integer",
5684
- "format": "int64"
5701
+ "format": "int64",
5702
+ "maximum": 5000000000000
5685
5703
  },
5686
5704
  "count_back": {
5687
5705
  "type": "integer",
@@ -5814,11 +5832,13 @@
5814
5832
  },
5815
5833
  "start_timestamp": {
5816
5834
  "type": "integer",
5817
- "format": "int64"
5835
+ "format": "int64",
5836
+ "maximum": 5000000000000
5818
5837
  },
5819
5838
  "end_timestamp": {
5820
5839
  "type": "integer",
5821
- "format": "int64"
5840
+ "format": "int64",
5841
+ "maximum": 5000000000000
5822
5842
  },
5823
5843
  "count_back": {
5824
5844
  "type": "integer",
@@ -5894,11 +5914,13 @@
5894
5914
  },
5895
5915
  "start_timestamp": {
5896
5916
  "type": "integer",
5897
- "format": "int64"
5917
+ "format": "int64",
5918
+ "maximum": 5000000000000
5898
5919
  },
5899
5920
  "end_timestamp": {
5900
5921
  "type": "integer",
5901
- "format": "int64"
5922
+ "format": "int64",
5923
+ "maximum": 5000000000000
5902
5924
  },
5903
5925
  "count_back": {
5904
5926
  "type": "integer",
@@ -6534,12 +6556,18 @@
6534
6556
  "type": "integer",
6535
6557
  "format": "int32",
6536
6558
  "example": "1"
6559
+ },
6560
+ "timestamp": {
6561
+ "type": "integer",
6562
+ "format": "int64",
6563
+ "example": "1717777777"
6537
6564
  }
6538
6565
  },
6539
6566
  "title": "Status",
6540
6567
  "required": [
6541
6568
  "status",
6542
- "network_id"
6569
+ "network_id",
6570
+ "timestamp"
6543
6571
  ]
6544
6572
  },
6545
6573
  "SubAccounts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {