zklighter-perps 1.0.287 → 1.0.289

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.
@@ -9,6 +9,7 @@ apis/FundingApi.ts
9
9
  apis/GeckoApi.ts
10
10
  apis/GeoApi.ts
11
11
  apis/InfoApi.ts
12
+ apis/LivepointsApi.ts
12
13
  apis/MarketnewsApi.ts
13
14
  apis/NotificationApi.ts
14
15
  apis/OrderApi.ts
@@ -92,6 +93,7 @@ models/LiqTrade.ts
92
93
  models/Liquidation.ts
93
94
  models/LiquidationInfo.ts
94
95
  models/LiquidationInfos.ts
96
+ models/LivePointsTotal.ts
95
97
  models/MarkPriceCandle.ts
96
98
  models/MarkPriceCandles.ts
97
99
  models/MarketConfig.ts
@@ -168,6 +170,7 @@ models/ReqGetLatestDeposit.ts
168
170
  models/ReqGetLeaderboard.ts
169
171
  models/ReqGetLeases.ts
170
172
  models/ReqGetLiquidationInfos.ts
173
+ models/ReqGetLivePointsTotal.ts
171
174
  models/ReqGetMakerOnlyApiKeys.ts
172
175
  models/ReqGetMarkPriceCandles.ts
173
176
  models/ReqGetMarketMetrics.ts
package/apis/InfoApi.ts CHANGED
@@ -50,8 +50,6 @@ export interface SyntheticSpotInfoRequest {
50
50
 
51
51
  export interface TransferFeeInfoRequest {
52
52
  account_index: number;
53
- authorization?: string;
54
- auth?: string;
55
53
  to_account_index?: number;
56
54
  }
57
55
 
@@ -208,14 +206,6 @@ export class InfoApi extends runtime.BaseAPI {
208
206
 
209
207
  const queryParameters: any = {};
210
208
 
211
- if (requestParameters['authorization'] != null) {
212
- queryParameters['authorization'] = requestParameters['authorization'];
213
- }
214
-
215
- if (requestParameters['auth'] != null) {
216
- queryParameters['auth'] = requestParameters['auth'];
217
- }
218
-
219
209
  if (requestParameters['account_index'] != null) {
220
210
  queryParameters['account_index'] = requestParameters['account_index'];
221
211
  }
package/apis/index.ts CHANGED
@@ -11,6 +11,7 @@ export * from './FundingApi';
11
11
  export * from './GeckoApi';
12
12
  export * from './GeoApi';
13
13
  export * from './InfoApi';
14
+ export * from './LivepointsApi';
14
15
  export * from './MarketnewsApi';
15
16
  export * from './NotificationApi';
16
17
  export * from './OrderApi';
@@ -49,6 +49,18 @@ export interface LiqTrade {
49
49
  * @memberof LiqTrade
50
50
  */
51
51
  transaction_time: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof LiqTrade
56
+ */
57
+ ask_account_id: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof LiqTrade
62
+ */
63
+ bid_account_id: number;
52
64
  }
53
65
 
54
66
  /**
@@ -60,6 +72,8 @@ export function instanceOfLiqTrade(value: object): value is LiqTrade {
60
72
  if (!('taker_fee' in value) || value['taker_fee'] === undefined) return false;
61
73
  if (!('maker_fee' in value) || value['maker_fee'] === undefined) return false;
62
74
  if (!('transaction_time' in value) || value['transaction_time'] === undefined) return false;
75
+ if (!('ask_account_id' in value) || value['ask_account_id'] === undefined) return false;
76
+ if (!('bid_account_id' in value) || value['bid_account_id'] === undefined) return false;
63
77
  return true;
64
78
  }
65
79
 
@@ -78,6 +92,8 @@ export function LiqTradeFromJSONTyped(json: any, ignoreDiscriminator: boolean):
78
92
  'taker_fee': json['taker_fee'],
79
93
  'maker_fee': json['maker_fee'],
80
94
  'transaction_time': json['transaction_time'],
95
+ 'ask_account_id': json['ask_account_id'],
96
+ 'bid_account_id': json['bid_account_id'],
81
97
  };
82
98
  }
83
99
 
@@ -92,6 +108,8 @@ export function LiqTradeToJSON(value?: LiqTrade | null): any {
92
108
  'taker_fee': value['taker_fee'],
93
109
  'maker_fee': value['maker_fee'],
94
110
  'transaction_time': value['transaction_time'],
111
+ 'ask_account_id': value['ask_account_id'],
112
+ 'bid_account_id': value['bid_account_id'],
95
113
  };
96
114
  }
97
115
 
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetTransferFeeInfo
20
20
  */
21
21
  export interface ReqGetTransferFeeInfo {
22
- /**
23
- * made optional to support header auth clients
24
- * @type {string}
25
- * @memberof ReqGetTransferFeeInfo
26
- */
27
- auth?: string;
28
22
  /**
29
23
  *
30
24
  * @type {number}
@@ -57,7 +51,6 @@ export function ReqGetTransferFeeInfoFromJSONTyped(json: any, ignoreDiscriminato
57
51
  }
58
52
  return {
59
53
 
60
- 'auth': json['auth'] == null ? undefined : json['auth'],
61
54
  'account_index': json['account_index'],
62
55
  'to_account_index': json['to_account_index'] == null ? undefined : json['to_account_index'],
63
56
  };
@@ -69,7 +62,6 @@ export function ReqGetTransferFeeInfoToJSON(value?: ReqGetTransferFeeInfo | null
69
62
  }
70
63
  return {
71
64
 
72
- 'auth': value['auth'],
73
65
  'account_index': value['account_index'],
74
66
  'to_account_index': value['to_account_index'],
75
67
  };
package/models/index.ts CHANGED
@@ -71,6 +71,7 @@ export * from './LiqTrade';
71
71
  export * from './Liquidation';
72
72
  export * from './LiquidationInfo';
73
73
  export * from './LiquidationInfos';
74
+ export * from './LivePointsTotal';
74
75
  export * from './MarkPriceCandle';
75
76
  export * from './MarkPriceCandles';
76
77
  export * from './MarketConfig';
@@ -147,6 +148,7 @@ export * from './ReqGetLatestDeposit';
147
148
  export * from './ReqGetLeaderboard';
148
149
  export * from './ReqGetLeases';
149
150
  export * from './ReqGetLiquidationInfos';
151
+ export * from './ReqGetLivePointsTotal';
150
152
  export * from './ReqGetMakerOnlyApiKeys';
151
153
  export * from './ReqGetMarkPriceCandles';
152
154
  export * from './ReqGetMarketMetrics';
package/openapi.json CHANGED
@@ -2696,6 +2696,56 @@
2696
2696
  "description": "Submit LIT lease transfer"
2697
2697
  }
2698
2698
  },
2699
+ "/api/v1/livePoints/total": {
2700
+ "get": {
2701
+ "summary": "livePoints_total",
2702
+ "operationId": "livePoints_total",
2703
+ "responses": {
2704
+ "200": {
2705
+ "description": "A successful response.",
2706
+ "schema": {
2707
+ "$ref": "#/definitions/LivePointsTotal"
2708
+ }
2709
+ },
2710
+ "400": {
2711
+ "description": "Bad request",
2712
+ "schema": {
2713
+ "$ref": "#/definitions/ResultCode"
2714
+ }
2715
+ }
2716
+ },
2717
+ "parameters": [
2718
+ {
2719
+ "name": "authorization",
2720
+ "description": " make required after integ is done",
2721
+ "in": "query",
2722
+ "required": false,
2723
+ "type": "string"
2724
+ },
2725
+ {
2726
+ "name": "auth",
2727
+ "description": " made optional to support header auth clients",
2728
+ "in": "query",
2729
+ "required": false,
2730
+ "type": "string"
2731
+ },
2732
+ {
2733
+ "name": "account_index",
2734
+ "in": "query",
2735
+ "required": true,
2736
+ "type": "integer",
2737
+ "format": "int64"
2738
+ }
2739
+ ],
2740
+ "tags": [
2741
+ "livepoints"
2742
+ ],
2743
+ "consumes": [
2744
+ "multipart/form-data"
2745
+ ],
2746
+ "description": "Get RH live points total for an account"
2747
+ }
2748
+ },
2699
2749
  "/api/v1/markPriceCandles": {
2700
2750
  "get": {
2701
2751
  "summary": "markPriceCandles",
@@ -5076,20 +5126,6 @@
5076
5126
  }
5077
5127
  },
5078
5128
  "parameters": [
5079
- {
5080
- "name": "authorization",
5081
- "description": " make required after integ is done",
5082
- "in": "query",
5083
- "required": false,
5084
- "type": "string"
5085
- },
5086
- {
5087
- "name": "auth",
5088
- "description": " made optional to support header auth clients",
5089
- "in": "query",
5090
- "required": false,
5091
- "type": "string"
5092
- },
5093
5129
  {
5094
5130
  "name": "account_index",
5095
5131
  "in": "query",
@@ -8510,6 +8546,16 @@
8510
8546
  "transaction_time": {
8511
8547
  "type": "integer",
8512
8548
  "format": "int64"
8549
+ },
8550
+ "ask_account_id": {
8551
+ "type": "integer",
8552
+ "format": "int64",
8553
+ "example": "1"
8554
+ },
8555
+ "bid_account_id": {
8556
+ "type": "integer",
8557
+ "format": "int64",
8558
+ "example": "3"
8513
8559
  }
8514
8560
  },
8515
8561
  "title": "LiqTrade",
@@ -8518,7 +8564,9 @@
8518
8564
  "size",
8519
8565
  "taker_fee",
8520
8566
  "maker_fee",
8521
- "transaction_time"
8567
+ "transaction_time",
8568
+ "ask_account_id",
8569
+ "bid_account_id"
8522
8570
  ]
8523
8571
  },
8524
8572
  "Liquidation": {
@@ -8632,6 +8680,28 @@
8632
8680
  "liquidations"
8633
8681
  ]
8634
8682
  },
8683
+ "LivePointsTotal": {
8684
+ "type": "object",
8685
+ "properties": {
8686
+ "code": {
8687
+ "type": "integer",
8688
+ "format": "int32",
8689
+ "example": "200"
8690
+ },
8691
+ "message": {
8692
+ "type": "string"
8693
+ },
8694
+ "total_live_points": {
8695
+ "type": "number",
8696
+ "format": "double"
8697
+ }
8698
+ },
8699
+ "title": "LivePointsTotal",
8700
+ "required": [
8701
+ "code",
8702
+ "total_live_points"
8703
+ ]
8704
+ },
8635
8705
  "MarkPriceCandle": {
8636
8706
  "type": "object",
8637
8707
  "properties": {
@@ -12020,6 +12090,23 @@
12020
12090
  "limit"
12021
12091
  ]
12022
12092
  },
12093
+ "ReqGetLivePointsTotal": {
12094
+ "type": "object",
12095
+ "properties": {
12096
+ "auth": {
12097
+ "type": "string",
12098
+ "description": " made optional to support header auth clients"
12099
+ },
12100
+ "account_index": {
12101
+ "type": "integer",
12102
+ "format": "int64"
12103
+ }
12104
+ },
12105
+ "title": "ReqGetLivePointsTotal",
12106
+ "required": [
12107
+ "account_index"
12108
+ ]
12109
+ },
12023
12110
  "ReqGetMakerOnlyApiKeys": {
12024
12111
  "type": "object",
12025
12112
  "properties": {
@@ -12620,10 +12707,6 @@
12620
12707
  "ReqGetTransferFeeInfo": {
12621
12708
  "type": "object",
12622
12709
  "properties": {
12623
- "auth": {
12624
- "type": "string",
12625
- "description": " made optional to support header auth clients"
12626
- },
12627
12710
  "account_index": {
12628
12711
  "type": "integer",
12629
12712
  "format": "int64"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.287",
3
+ "version": "1.0.289",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {