zklighter-perps 1.0.43 → 1.0.44

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.
@@ -47,6 +47,7 @@ models/OrderBooks.ts
47
47
  models/Orders.ts
48
48
  models/Permission.ts
49
49
  models/PnLEntry.ts
50
+ models/PositionFunding.ts
50
51
  models/PriceLevel.ts
51
52
  models/PublicPool.ts
52
53
  models/PublicPoolInfo.ts
@@ -0,0 +1,97 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PositionFunding
20
+ */
21
+ export interface PositionFunding {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof PositionFunding
26
+ */
27
+ timestamp: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof PositionFunding
32
+ */
33
+ market_id: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof PositionFunding
38
+ */
39
+ funding_id: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof PositionFunding
44
+ */
45
+ change: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof PositionFunding
50
+ */
51
+ rate: number;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the PositionFunding interface.
56
+ */
57
+ export function instanceOfPositionFunding(value: object): value is PositionFunding {
58
+ if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
59
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
60
+ if (!('funding_id' in value) || value['funding_id'] === undefined) return false;
61
+ if (!('change' in value) || value['change'] === undefined) return false;
62
+ if (!('rate' in value) || value['rate'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function PositionFundingFromJSON(json: any): PositionFunding {
67
+ return PositionFundingFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function PositionFundingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PositionFunding {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'timestamp': json['timestamp'],
77
+ 'market_id': json['market_id'],
78
+ 'funding_id': json['funding_id'],
79
+ 'change': json['change'],
80
+ 'rate': json['rate'],
81
+ };
82
+ }
83
+
84
+ export function PositionFundingToJSON(value?: PositionFunding | null): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+ return {
89
+
90
+ 'timestamp': value['timestamp'],
91
+ 'market_id': value['market_id'],
92
+ 'funding_id': value['funding_id'],
93
+ 'change': value['change'],
94
+ 'rate': value['rate'],
95
+ };
96
+ }
97
+
package/models/index.ts CHANGED
@@ -39,6 +39,7 @@ export * from './OrderBooks';
39
39
  export * from './Orders';
40
40
  export * from './Permission';
41
41
  export * from './PnLEntry';
42
+ export * from './PositionFunding';
42
43
  export * from './PriceLevel';
43
44
  export * from './PublicPool';
44
45
  export * from './PublicPoolInfo';
package/openapi.json CHANGED
@@ -3510,6 +3510,44 @@
3510
3510
  "value"
3511
3511
  ]
3512
3512
  },
3513
+ "PositionFunding": {
3514
+ "type": "object",
3515
+ "properties": {
3516
+ "timestamp": {
3517
+ "type": "integer",
3518
+ "format": "int64",
3519
+ "example": "1640995200"
3520
+ },
3521
+ "market_id": {
3522
+ "type": "integer",
3523
+ "format": "uint8",
3524
+ "example": "1"
3525
+ },
3526
+ "funding_id": {
3527
+ "type": "integer",
3528
+ "format": "int64",
3529
+ "example": "1"
3530
+ },
3531
+ "change": {
3532
+ "type": "integer",
3533
+ "format": "int64",
3534
+ "example": "1"
3535
+ },
3536
+ "rate": {
3537
+ "type": "integer",
3538
+ "format": "int64",
3539
+ "example": "1"
3540
+ }
3541
+ },
3542
+ "title": "PositionFunding",
3543
+ "required": [
3544
+ "timestamp",
3545
+ "market_id",
3546
+ "funding_id",
3547
+ "change",
3548
+ "rate"
3549
+ ]
3550
+ },
3513
3551
  "PriceLevel": {
3514
3552
  "type": "object",
3515
3553
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {