zklighter-perps 1.0.153 → 1.0.155

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.
@@ -59,6 +59,7 @@ export interface ReferralUseRequest {
59
59
  x: string;
60
60
  discord?: string;
61
61
  telegram?: string;
62
+ signature?: string;
62
63
  }
63
64
 
64
65
  /**
@@ -325,6 +326,10 @@ export class ReferralApi extends runtime.BaseAPI {
325
326
  formParams.append('x', requestParameters['x'] as any);
326
327
  }
327
328
 
329
+ if (requestParameters['signature'] != null) {
330
+ formParams.append('signature', requestParameters['signature'] as any);
331
+ }
332
+
328
333
  const response = await this.request({
329
334
  path: `/api/v1/referral/use`,
330
335
  method: 'POST',
@@ -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
+ liquidation_price: string;
94
100
  /**
95
101
  *
96
102
  * @type {string}
@@ -127,6 +133,7 @@ export function instanceOfAccountPosition(value: object): value is AccountPositi
127
133
  if (!('position_value' in value) || value['position_value'] === undefined) return false;
128
134
  if (!('unrealized_pnl' in value) || value['unrealized_pnl'] === undefined) return false;
129
135
  if (!('realized_pnl' in value) || value['realized_pnl'] === undefined) return false;
136
+ if (!('liquidation_price' in value) || value['liquidation_price'] === undefined) return false;
130
137
  if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
131
138
  if (!('allocated_margin' in value) || value['allocated_margin'] === undefined) return false;
132
139
  return true;
@@ -154,6 +161,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
154
161
  'position_value': json['position_value'],
155
162
  'unrealized_pnl': json['unrealized_pnl'],
156
163
  'realized_pnl': json['realized_pnl'],
164
+ 'liquidation_price': json['liquidation_price'],
157
165
  'total_funding_paid_out': json['total_funding_paid_out'] == null ? undefined : json['total_funding_paid_out'],
158
166
  'margin_mode': json['margin_mode'],
159
167
  'allocated_margin': json['allocated_margin'],
@@ -178,6 +186,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
178
186
  'position_value': value['position_value'],
179
187
  'unrealized_pnl': value['unrealized_pnl'],
180
188
  'realized_pnl': value['realized_pnl'],
189
+ 'liquidation_price': value['liquidation_price'],
181
190
  'total_funding_paid_out': value['total_funding_paid_out'],
182
191
  'margin_mode': value['margin_mode'],
183
192
  'allocated_margin': value['allocated_margin'],
package/openapi.json CHANGED
@@ -3414,6 +3414,10 @@
3414
3414
  "type": "string",
3415
3415
  "example": "2.000000"
3416
3416
  },
3417
+ "liquidation_price": {
3418
+ "type": "string",
3419
+ "example": "3024.66"
3420
+ },
3417
3421
  "total_funding_paid_out": {
3418
3422
  "type": "string",
3419
3423
  "example": "34.2"
@@ -3442,6 +3446,7 @@
3442
3446
  "position_value",
3443
3447
  "unrealized_pnl",
3444
3448
  "realized_pnl",
3449
+ "liquidation_price",
3445
3450
  "margin_mode",
3446
3451
  "allocated_margin"
3447
3452
  ]
@@ -7414,6 +7419,9 @@
7414
7419
  },
7415
7420
  "x": {
7416
7421
  "type": "string"
7422
+ },
7423
+ "signature": {
7424
+ "type": "string"
7417
7425
  }
7418
7426
  },
7419
7427
  "title": "ReqUseReferralCode",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.153",
3
+ "version": "1.0.155",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {