zklighter-perps 1.0.268 → 1.0.269

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.
@@ -4,6 +4,7 @@ apis/AtomicordersApi.ts
4
4
  apis/BlockApi.ts
5
5
  apis/BridgeApi.ts
6
6
  apis/CandlestickApi.ts
7
+ apis/EarningsApi.ts
7
8
  apis/FundingApi.ts
8
9
  apis/GeckoApi.ts
9
10
  apis/GeoApi.ts
@@ -13,6 +14,7 @@ apis/OrderApi.ts
13
14
  apis/PushnotifApi.ts
14
15
  apis/ReferralApi.ts
15
16
  apis/RootApi.ts
17
+ apis/StockfinancialsApi.ts
16
18
  apis/TokenlistApi.ts
17
19
  apis/TransactionApi.ts
18
20
  apis/index.ts
@@ -92,8 +94,6 @@ models/MarkPriceCandle.ts
92
94
  models/MarkPriceCandles.ts
93
95
  models/MarketConfig.ts
94
96
  models/MarketMetricData.ts
95
- models/MarketPriceChart.ts
96
- models/MarketPriceCharts.ts
97
97
  models/NextNonce.ts
98
98
  models/NotificationPreferences.ts
99
99
  models/Order.ts
@@ -135,6 +135,7 @@ models/ReqGetAccountByL1Address.ts
135
135
  models/ReqGetAccountInactiveOrders.ts
136
136
  models/ReqGetAccountLimits.ts
137
137
  models/ReqGetAccountMetadata.ts
138
+ models/ReqGetAccountOrders.ts
138
139
  models/ReqGetAccountPnL.ts
139
140
  models/ReqGetAccountTxs.ts
140
141
  models/ReqGetAirdropAllocations.ts
@@ -161,7 +162,6 @@ models/ReqGetLiquidationInfos.ts
161
162
  models/ReqGetMakerOnlyApiKeys.ts
162
163
  models/ReqGetMarkPriceCandles.ts
163
164
  models/ReqGetMarketMetrics.ts
164
- models/ReqGetMarketPriceCharts.ts
165
165
  models/ReqGetNextNonce.ts
166
166
  models/ReqGetOrderBookDetails.ts
167
167
  models/ReqGetOrderBookOrders.ts
@@ -178,6 +178,7 @@ models/ReqGetRecentTrades.ts
178
178
  models/ReqGetReferralCode.ts
179
179
  models/ReqGetReferralPoints.ts
180
180
  models/ReqGetRollingInfo.ts
181
+ models/ReqGetStockFinancials.ts
181
182
  models/ReqGetSyntheticSpotInfo.ts
182
183
  models/ReqGetTrades.ts
183
184
  models/ReqGetTransferFeeInfo.ts
@@ -214,6 +215,7 @@ models/RespRollingInfo.ts
214
215
  models/RespSendTx.ts
215
216
  models/RespSendTxBatch.ts
216
217
  models/RespSetMakerOnlyApiKeys.ts
218
+ models/RespStockFinancials.ts
217
219
  models/RespSyntheticSpotInfo.ts
218
220
  models/RespUpdateKickback.ts
219
221
  models/RespUpdateRFQ.ts
@@ -230,6 +232,15 @@ models/SpotAvgEntryPrice.ts
230
232
  models/SpotMarketStats.ts
231
233
  models/SpotOrderBookDetail.ts
232
234
  models/Status.ts
235
+ models/StockBalanceSheet.ts
236
+ models/StockCashFlowStatement.ts
237
+ models/StockFinancial.ts
238
+ models/StockFinancialEarnings.ts
239
+ models/StockFinancialEarningsEvent.ts
240
+ models/StockFinancialPeriod.ts
241
+ models/StockFinancialProfile.ts
242
+ models/StockFinancialStatements.ts
243
+ models/StockIncomeStatement.ts
233
244
  models/Strategy.ts
234
245
  models/SubAccountMetadata.ts
235
246
  models/SubAccounts.ts
@@ -247,6 +258,8 @@ models/Tx.ts
247
258
  models/TxHash.ts
248
259
  models/TxHashes.ts
249
260
  models/Txs.ts
261
+ models/UpcomingEarning.ts
262
+ models/UpcomingEarnings.ts
250
263
  models/UserReferrals.ts
251
264
  models/ValidatorInfo.ts
252
265
  models/WithdrawHistory.ts
@@ -18,7 +18,6 @@ import type {
18
18
  Candles,
19
19
  Fundings,
20
20
  MarkPriceCandles,
21
- MarketPriceCharts,
22
21
  ResultCode,
23
22
  } from '../models/index';
24
23
  import {
@@ -28,8 +27,6 @@ import {
28
27
  FundingsToJSON,
29
28
  MarkPriceCandlesFromJSON,
30
29
  MarkPriceCandlesToJSON,
31
- MarketPriceChartsFromJSON,
32
- MarketPriceChartsToJSON,
33
30
  ResultCodeFromJSON,
34
31
  ResultCodeToJSON,
35
32
  } from '../models/index';
@@ -59,10 +56,6 @@ export interface MarkPriceCandlesRequest {
59
56
  count_back: number;
60
57
  }
61
58
 
62
- export interface MarketPriceChartsRequest {
63
- market_ids?: number;
64
- }
65
-
66
59
  /**
67
60
  *
68
61
  */
@@ -321,38 +314,6 @@ export class CandlestickApi extends runtime.BaseAPI {
321
314
  return await response.value();
322
315
  }
323
316
 
324
- /**
325
- * Get last 24h hourly prices for all markets (mark price for perps, index price for spot)
326
- * marketPriceCharts
327
- */
328
- async marketPriceChartsRaw(requestParameters: MarketPriceChartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketPriceCharts>> {
329
- const queryParameters: any = {};
330
-
331
- if (requestParameters['market_ids'] != null) {
332
- queryParameters['market_ids'] = requestParameters['market_ids'];
333
- }
334
-
335
- const headerParameters: runtime.HTTPHeaders = {};
336
-
337
- const response = await this.request({
338
- path: `/api/v1/marketPriceCharts`,
339
- method: 'GET',
340
- headers: headerParameters,
341
- query: queryParameters,
342
- }, initOverrides);
343
-
344
- return new runtime.JSONApiResponse(response, (jsonValue) => MarketPriceChartsFromJSON(jsonValue));
345
- }
346
-
347
- /**
348
- * Get last 24h hourly prices for all markets (mark price for perps, index price for spot)
349
- * marketPriceCharts
350
- */
351
- async marketPriceCharts(requestParameters: MarketPriceChartsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketPriceCharts> {
352
- const response = await this.marketPriceChartsRaw(requestParameters, initOverrides);
353
- return await response.value();
354
- }
355
-
356
317
  }
357
318
 
358
319
  /**
package/apis/OrderApi.ts CHANGED
@@ -89,6 +89,13 @@ export interface AccountInactiveOrdersRequest {
89
89
  cursor?: string;
90
90
  }
91
91
 
92
+ export interface AccountOrdersRequest {
93
+ client_order_indexes: string;
94
+ authorization?: string;
95
+ auth?: string;
96
+ account_index?: number;
97
+ }
98
+
92
99
  export interface AssetDetailsRequest {
93
100
  asset_id?: number;
94
101
  }
@@ -366,6 +373,57 @@ export class OrderApi extends runtime.BaseAPI {
366
373
  return await response.value();
367
374
  }
368
375
 
376
+ /**
377
+ * Get account orders by client order indexes. Account index defaults to the auth token\'s account.
378
+ * accountOrders
379
+ */
380
+ async accountOrdersRaw(requestParameters: AccountOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Orders>> {
381
+ if (requestParameters['client_order_indexes'] == null) {
382
+ throw new runtime.RequiredError(
383
+ 'client_order_indexes',
384
+ 'Required parameter "client_order_indexes" was null or undefined when calling accountOrders().'
385
+ );
386
+ }
387
+
388
+ const queryParameters: any = {};
389
+
390
+ if (requestParameters['authorization'] != null) {
391
+ queryParameters['authorization'] = requestParameters['authorization'];
392
+ }
393
+
394
+ if (requestParameters['auth'] != null) {
395
+ queryParameters['auth'] = requestParameters['auth'];
396
+ }
397
+
398
+ if (requestParameters['account_index'] != null) {
399
+ queryParameters['account_index'] = requestParameters['account_index'];
400
+ }
401
+
402
+ if (requestParameters['client_order_indexes'] != null) {
403
+ queryParameters['client_order_indexes'] = requestParameters['client_order_indexes'];
404
+ }
405
+
406
+ const headerParameters: runtime.HTTPHeaders = {};
407
+
408
+ const response = await this.request({
409
+ path: `/api/v1/accountOrders`,
410
+ method: 'GET',
411
+ headers: headerParameters,
412
+ query: queryParameters,
413
+ }, initOverrides);
414
+
415
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrdersFromJSON(jsonValue));
416
+ }
417
+
418
+ /**
419
+ * Get account orders by client order indexes. Account index defaults to the auth token\'s account.
420
+ * accountOrders
421
+ */
422
+ async accountOrders(requestParameters: AccountOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Orders> {
423
+ const response = await this.accountOrdersRaw(requestParameters, initOverrides);
424
+ return await response.value();
425
+ }
426
+
369
427
  /**
370
428
  * Get asset details
371
429
  * assetDetails
package/apis/index.ts CHANGED
@@ -6,6 +6,7 @@ export * from './AtomicordersApi';
6
6
  export * from './BlockApi';
7
7
  export * from './BridgeApi';
8
8
  export * from './CandlestickApi';
9
+ export * from './EarningsApi';
9
10
  export * from './FundingApi';
10
11
  export * from './GeckoApi';
11
12
  export * from './GeoApi';
@@ -15,5 +16,6 @@ export * from './OrderApi';
15
16
  export * from './PushnotifApi';
16
17
  export * from './ReferralApi';
17
18
  export * from './RootApi';
19
+ export * from './StockfinancialsApi';
18
20
  export * from './TokenlistApi';
19
21
  export * from './TransactionApi';
package/models/index.ts CHANGED
@@ -75,8 +75,6 @@ export * from './MarkPriceCandle';
75
75
  export * from './MarkPriceCandles';
76
76
  export * from './MarketConfig';
77
77
  export * from './MarketMetricData';
78
- export * from './MarketPriceChart';
79
- export * from './MarketPriceCharts';
80
78
  export * from './NextNonce';
81
79
  export * from './NotificationPreferences';
82
80
  export * from './Order';
@@ -118,6 +116,7 @@ export * from './ReqGetAccountByL1Address';
118
116
  export * from './ReqGetAccountInactiveOrders';
119
117
  export * from './ReqGetAccountLimits';
120
118
  export * from './ReqGetAccountMetadata';
119
+ export * from './ReqGetAccountOrders';
121
120
  export * from './ReqGetAccountPnL';
122
121
  export * from './ReqGetAccountTxs';
123
122
  export * from './ReqGetAirdropAllocations';
@@ -144,7 +143,6 @@ export * from './ReqGetLiquidationInfos';
144
143
  export * from './ReqGetMakerOnlyApiKeys';
145
144
  export * from './ReqGetMarkPriceCandles';
146
145
  export * from './ReqGetMarketMetrics';
147
- export * from './ReqGetMarketPriceCharts';
148
146
  export * from './ReqGetNextNonce';
149
147
  export * from './ReqGetOrderBookDetails';
150
148
  export * from './ReqGetOrderBookOrders';
@@ -161,6 +159,7 @@ export * from './ReqGetRecentTrades';
161
159
  export * from './ReqGetReferralCode';
162
160
  export * from './ReqGetReferralPoints';
163
161
  export * from './ReqGetRollingInfo';
162
+ export * from './ReqGetStockFinancials';
164
163
  export * from './ReqGetSyntheticSpotInfo';
165
164
  export * from './ReqGetTrades';
166
165
  export * from './ReqGetTransferFeeInfo';
@@ -197,6 +196,7 @@ export * from './RespRollingInfo';
197
196
  export * from './RespSendTx';
198
197
  export * from './RespSendTxBatch';
199
198
  export * from './RespSetMakerOnlyApiKeys';
199
+ export * from './RespStockFinancials';
200
200
  export * from './RespSyntheticSpotInfo';
201
201
  export * from './RespUpdateKickback';
202
202
  export * from './RespUpdateRFQ';
@@ -213,6 +213,15 @@ export * from './SpotAvgEntryPrice';
213
213
  export * from './SpotMarketStats';
214
214
  export * from './SpotOrderBookDetail';
215
215
  export * from './Status';
216
+ export * from './StockBalanceSheet';
217
+ export * from './StockCashFlowStatement';
218
+ export * from './StockFinancial';
219
+ export * from './StockFinancialEarnings';
220
+ export * from './StockFinancialEarningsEvent';
221
+ export * from './StockFinancialPeriod';
222
+ export * from './StockFinancialProfile';
223
+ export * from './StockFinancialStatements';
224
+ export * from './StockIncomeStatement';
216
225
  export * from './Strategy';
217
226
  export * from './SubAccountMetadata';
218
227
  export * from './SubAccounts';
@@ -230,6 +239,8 @@ export * from './Tx';
230
239
  export * from './TxHash';
231
240
  export * from './TxHashes';
232
241
  export * from './Txs';
242
+ export * from './UpcomingEarning';
243
+ export * from './UpcomingEarnings';
233
244
  export * from './UserReferrals';
234
245
  export * from './ValidatorInfo';
235
246
  export * from './WithdrawHistory';
package/openapi.json CHANGED
@@ -380,6 +380,64 @@
380
380
  "description": "Get account metadatas"
381
381
  }
382
382
  },
383
+ "/api/v1/accountOrders": {
384
+ "get": {
385
+ "summary": "accountOrders",
386
+ "operationId": "accountOrders",
387
+ "responses": {
388
+ "200": {
389
+ "description": "A successful response.",
390
+ "schema": {
391
+ "$ref": "#/definitions/Orders"
392
+ }
393
+ },
394
+ "400": {
395
+ "description": "Bad request",
396
+ "schema": {
397
+ "$ref": "#/definitions/ResultCode"
398
+ }
399
+ }
400
+ },
401
+ "parameters": [
402
+ {
403
+ "name": "authorization",
404
+ "description": " make required after integ is done",
405
+ "in": "query",
406
+ "required": false,
407
+ "type": "string"
408
+ },
409
+ {
410
+ "name": "auth",
411
+ "description": " made optional to support header auth clients",
412
+ "in": "query",
413
+ "required": false,
414
+ "type": "string"
415
+ },
416
+ {
417
+ "name": "account_index",
418
+ "in": "query",
419
+ "required": false,
420
+ "type": "integer",
421
+ "format": "int64",
422
+ "default": "281474976710655"
423
+ },
424
+ {
425
+ "name": "client_order_indexes",
426
+ "description": " comma-separated int64s, e.g. \"123,456\"",
427
+ "in": "query",
428
+ "required": true,
429
+ "type": "string"
430
+ }
431
+ ],
432
+ "tags": [
433
+ "order"
434
+ ],
435
+ "consumes": [
436
+ "multipart/form-data"
437
+ ],
438
+ "description": "Get account orders by client order indexes. Account index defaults to the auth token's account."
439
+ }
440
+ },
383
441
  "/api/v1/accountTxs": {
384
442
  "get": {
385
443
  "summary": "accountTxs",
@@ -2760,42 +2818,6 @@
2760
2818
  "description": "Get market metrics for a specific timestamp, returns data for all markets"
2761
2819
  }
2762
2820
  },
2763
- "/api/v1/marketPriceCharts": {
2764
- "get": {
2765
- "summary": "marketPriceCharts",
2766
- "operationId": "marketPriceCharts",
2767
- "responses": {
2768
- "200": {
2769
- "description": "A successful response.",
2770
- "schema": {
2771
- "$ref": "#/definitions/MarketPriceCharts"
2772
- }
2773
- },
2774
- "400": {
2775
- "description": "Bad request",
2776
- "schema": {
2777
- "$ref": "#/definitions/ResultCode"
2778
- }
2779
- }
2780
- },
2781
- "parameters": [
2782
- {
2783
- "name": "market_ids",
2784
- "in": "query",
2785
- "required": false,
2786
- "type": "integer",
2787
- "format": "int16"
2788
- }
2789
- ],
2790
- "tags": [
2791
- "candlestick"
2792
- ],
2793
- "consumes": [
2794
- "multipart/form-data"
2795
- ],
2796
- "description": "Get last 24h hourly prices for all markets (mark price for perps, index price for spot)"
2797
- }
2798
- },
2799
2821
  "/api/v1/nextNonce": {
2800
2822
  "get": {
2801
2823
  "summary": "nextNonce",
@@ -4368,6 +4390,42 @@
4368
4390
  "description": "Set maker-only API key indexes"
4369
4391
  }
4370
4392
  },
4393
+ "/api/v1/stockFinancials": {
4394
+ "get": {
4395
+ "summary": "stockFinancials",
4396
+ "operationId": "stockFinancials",
4397
+ "responses": {
4398
+ "200": {
4399
+ "description": "A successful response.",
4400
+ "schema": {
4401
+ "$ref": "#/definitions/RespStockFinancials"
4402
+ }
4403
+ },
4404
+ "400": {
4405
+ "description": "Bad request",
4406
+ "schema": {
4407
+ "$ref": "#/definitions/ResultCode"
4408
+ }
4409
+ }
4410
+ },
4411
+ "parameters": [
4412
+ {
4413
+ "name": "market_id",
4414
+ "in": "query",
4415
+ "required": true,
4416
+ "type": "integer",
4417
+ "format": "int16"
4418
+ }
4419
+ ],
4420
+ "tags": [
4421
+ "stockfinancials"
4422
+ ],
4423
+ "consumes": [
4424
+ "multipart/form-data"
4425
+ ],
4426
+ "description": "Get stock financials"
4427
+ }
4428
+ },
4371
4429
  "/api/v1/syntheticSpotInfo": {
4372
4430
  "get": {
4373
4431
  "summary": "syntheticSpotInfo",
@@ -5016,6 +5074,30 @@
5016
5074
  "description": "Get transactions which are already packed into blocks"
5017
5075
  }
5018
5076
  },
5077
+ "/api/v1/upcomingEarnings": {
5078
+ "get": {
5079
+ "summary": "upcomingEarnings",
5080
+ "operationId": "upcomingEarnings",
5081
+ "responses": {
5082
+ "200": {
5083
+ "description": "A successful response.",
5084
+ "schema": {
5085
+ "$ref": "#/definitions/UpcomingEarnings"
5086
+ }
5087
+ },
5088
+ "400": {
5089
+ "description": "Bad request",
5090
+ "schema": {
5091
+ "$ref": "#/definitions/ResultCode"
5092
+ }
5093
+ }
5094
+ },
5095
+ "tags": [
5096
+ "earnings"
5097
+ ],
5098
+ "description": "Get upcoming earnings"
5099
+ }
5100
+ },
5019
5101
  "/api/v1/withdraw/history": {
5020
5102
  "get": {
5021
5103
  "summary": "withdraw_history",
@@ -8367,55 +8449,6 @@
8367
8449
  "data"
8368
8450
  ]
8369
8451
  },
8370
- "MarketPriceChart": {
8371
- "type": "object",
8372
- "properties": {
8373
- "market_id": {
8374
- "type": "integer",
8375
- "format": "int16"
8376
- },
8377
- "prices": {
8378
- "type": "array",
8379
- "items": {
8380
- "type": "string"
8381
- }
8382
- }
8383
- },
8384
- "title": "MarketPriceChart",
8385
- "required": [
8386
- "market_id",
8387
- "prices"
8388
- ]
8389
- },
8390
- "MarketPriceCharts": {
8391
- "type": "object",
8392
- "properties": {
8393
- "code": {
8394
- "type": "integer",
8395
- "format": "int32",
8396
- "example": "200"
8397
- },
8398
- "message": {
8399
- "type": "string"
8400
- },
8401
- "resolution": {
8402
- "type": "string",
8403
- "example": "1h"
8404
- },
8405
- "price_charts": {
8406
- "type": "array",
8407
- "items": {
8408
- "$ref": "#/definitions/MarketPriceChart"
8409
- }
8410
- }
8411
- },
8412
- "title": "MarketPriceCharts",
8413
- "required": [
8414
- "code",
8415
- "resolution",
8416
- "price_charts"
8417
- ]
8418
- },
8419
8452
  "NextNonce": {
8420
8453
  "type": "object",
8421
8454
  "properties": {
@@ -10831,6 +10864,28 @@
10831
10864
  "value"
10832
10865
  ]
10833
10866
  },
10867
+ "ReqGetAccountOrders": {
10868
+ "type": "object",
10869
+ "properties": {
10870
+ "auth": {
10871
+ "type": "string",
10872
+ "description": " made optional to support header auth clients"
10873
+ },
10874
+ "account_index": {
10875
+ "type": "integer",
10876
+ "format": "int64",
10877
+ "default": "281474976710655"
10878
+ },
10879
+ "client_order_indexes": {
10880
+ "type": "string",
10881
+ "description": " comma-separated int64s, e.g. \"123,456\""
10882
+ }
10883
+ },
10884
+ "title": "ReqGetAccountOrders",
10885
+ "required": [
10886
+ "client_order_indexes"
10887
+ ]
10888
+ },
10834
10889
  "ReqGetAccountPnL": {
10835
10890
  "type": "object",
10836
10891
  "properties": {
@@ -11486,19 +11541,6 @@
11486
11541
  "kind"
11487
11542
  ]
11488
11543
  },
11489
- "ReqGetMarketPriceCharts": {
11490
- "type": "object",
11491
- "properties": {
11492
- "market_ids": {
11493
- "type": "array",
11494
- "items": {
11495
- "type": "integer",
11496
- "format": "int64"
11497
- }
11498
- }
11499
- },
11500
- "title": "ReqGetMarketPriceCharts"
11501
- },
11502
11544
  "ReqGetNextNonce": {
11503
11545
  "type": "object",
11504
11546
  "properties": {
@@ -11848,6 +11890,19 @@
11848
11890
  "symbol"
11849
11891
  ]
11850
11892
  },
11893
+ "ReqGetStockFinancials": {
11894
+ "type": "object",
11895
+ "properties": {
11896
+ "market_id": {
11897
+ "type": "integer",
11898
+ "format": "int16"
11899
+ }
11900
+ },
11901
+ "title": "ReqGetStockFinancials",
11902
+ "required": [
11903
+ "market_id"
11904
+ ]
11905
+ },
11851
11906
  "ReqGetSyntheticSpotInfo": {
11852
11907
  "type": "object",
11853
11908
  "properties": {
@@ -13412,6 +13467,27 @@
13412
13467
  "code"
13413
13468
  ]
13414
13469
  },
13470
+ "RespStockFinancials": {
13471
+ "type": "object",
13472
+ "properties": {
13473
+ "code": {
13474
+ "type": "integer",
13475
+ "format": "int32",
13476
+ "example": "200"
13477
+ },
13478
+ "message": {
13479
+ "type": "string"
13480
+ },
13481
+ "stock_financial": {
13482
+ "$ref": "#/definitions/StockFinancial"
13483
+ }
13484
+ },
13485
+ "title": "RespStockFinancials",
13486
+ "required": [
13487
+ "code",
13488
+ "stock_financial"
13489
+ ]
13490
+ },
13415
13491
  "RespSyntheticSpotInfo": {
13416
13492
  "type": "object",
13417
13493
  "properties": {
@@ -14110,6 +14186,221 @@
14110
14186
  "timestamp"
14111
14187
  ]
14112
14188
  },
14189
+ "StockBalanceSheet": {
14190
+ "type": "object",
14191
+ "properties": {
14192
+ "cash_and_cash_equivalents": {
14193
+ "type": "number",
14194
+ "format": "double"
14195
+ },
14196
+ "total_assets": {
14197
+ "type": "number",
14198
+ "format": "double"
14199
+ }
14200
+ },
14201
+ "title": "StockBalanceSheet",
14202
+ "required": [
14203
+ "cash_and_cash_equivalents",
14204
+ "total_assets"
14205
+ ]
14206
+ },
14207
+ "StockCashFlowStatement": {
14208
+ "type": "object",
14209
+ "properties": {
14210
+ "operating_cash_flow": {
14211
+ "type": "number",
14212
+ "format": "double"
14213
+ },
14214
+ "capital_expenditure": {
14215
+ "type": "number",
14216
+ "format": "double"
14217
+ },
14218
+ "free_cash_flow": {
14219
+ "type": "number",
14220
+ "format": "double"
14221
+ }
14222
+ },
14223
+ "title": "StockCashFlowStatement",
14224
+ "required": [
14225
+ "operating_cash_flow",
14226
+ "capital_expenditure",
14227
+ "free_cash_flow"
14228
+ ]
14229
+ },
14230
+ "StockFinancial": {
14231
+ "type": "object",
14232
+ "properties": {
14233
+ "market_id": {
14234
+ "type": "integer",
14235
+ "format": "int16"
14236
+ },
14237
+ "profile": {
14238
+ "$ref": "#/definitions/StockFinancialProfile"
14239
+ },
14240
+ "earnings": {
14241
+ "$ref": "#/definitions/StockFinancialEarnings"
14242
+ },
14243
+ "statements": {
14244
+ "$ref": "#/definitions/StockFinancialStatements"
14245
+ }
14246
+ },
14247
+ "title": "StockFinancial",
14248
+ "required": [
14249
+ "market_id",
14250
+ "profile",
14251
+ "earnings",
14252
+ "statements"
14253
+ ]
14254
+ },
14255
+ "StockFinancialEarnings": {
14256
+ "type": "object",
14257
+ "properties": {
14258
+ "next": {
14259
+ "$ref": "#/definitions/StockFinancialEarningsEvent"
14260
+ }
14261
+ },
14262
+ "title": "StockFinancialEarnings"
14263
+ },
14264
+ "StockFinancialEarningsEvent": {
14265
+ "type": "object",
14266
+ "properties": {
14267
+ "date": {
14268
+ "type": "string"
14269
+ },
14270
+ "timing": {
14271
+ "type": "string",
14272
+ "enum": [
14273
+ "bmo",
14274
+ "amc"
14275
+ ]
14276
+ },
14277
+ "eps_estimated": {
14278
+ "type": "number",
14279
+ "format": "double"
14280
+ },
14281
+ "revenue_estimated": {
14282
+ "type": "number",
14283
+ "format": "double"
14284
+ }
14285
+ },
14286
+ "title": "StockFinancialEarningsEvent",
14287
+ "required": [
14288
+ "date",
14289
+ "timing",
14290
+ "eps_estimated",
14291
+ "revenue_estimated"
14292
+ ]
14293
+ },
14294
+ "StockFinancialPeriod": {
14295
+ "type": "object",
14296
+ "properties": {
14297
+ "date": {
14298
+ "type": "string"
14299
+ },
14300
+ "fiscal_year": {
14301
+ "type": "integer",
14302
+ "format": "int16"
14303
+ },
14304
+ "period": {
14305
+ "type": "string"
14306
+ },
14307
+ "reported_currency": {
14308
+ "type": "string"
14309
+ },
14310
+ "income": {
14311
+ "$ref": "#/definitions/StockIncomeStatement"
14312
+ },
14313
+ "balance_sheet": {
14314
+ "$ref": "#/definitions/StockBalanceSheet"
14315
+ },
14316
+ "cash_flow": {
14317
+ "$ref": "#/definitions/StockCashFlowStatement"
14318
+ }
14319
+ },
14320
+ "title": "StockFinancialPeriod",
14321
+ "required": [
14322
+ "date",
14323
+ "fiscal_year",
14324
+ "period",
14325
+ "reported_currency",
14326
+ "income",
14327
+ "balance_sheet",
14328
+ "cash_flow"
14329
+ ]
14330
+ },
14331
+ "StockFinancialProfile": {
14332
+ "type": "object",
14333
+ "properties": {
14334
+ "currency": {
14335
+ "type": "string"
14336
+ },
14337
+ "exchange": {
14338
+ "type": "string"
14339
+ },
14340
+ "industry": {
14341
+ "type": "string"
14342
+ },
14343
+ "sector": {
14344
+ "type": "string"
14345
+ },
14346
+ "country": {
14347
+ "type": "string"
14348
+ }
14349
+ },
14350
+ "title": "StockFinancialProfile",
14351
+ "required": [
14352
+ "currency",
14353
+ "exchange",
14354
+ "industry",
14355
+ "sector",
14356
+ "country"
14357
+ ]
14358
+ },
14359
+ "StockFinancialStatements": {
14360
+ "type": "object",
14361
+ "properties": {
14362
+ "annual": {
14363
+ "type": "array",
14364
+ "items": {
14365
+ "$ref": "#/definitions/StockFinancialPeriod"
14366
+ }
14367
+ },
14368
+ "quarterly": {
14369
+ "type": "array",
14370
+ "items": {
14371
+ "$ref": "#/definitions/StockFinancialPeriod"
14372
+ }
14373
+ }
14374
+ },
14375
+ "title": "StockFinancialStatements",
14376
+ "required": [
14377
+ "annual",
14378
+ "quarterly"
14379
+ ]
14380
+ },
14381
+ "StockIncomeStatement": {
14382
+ "type": "object",
14383
+ "properties": {
14384
+ "revenue": {
14385
+ "type": "number",
14386
+ "format": "double"
14387
+ },
14388
+ "gross_profit": {
14389
+ "type": "number",
14390
+ "format": "double"
14391
+ },
14392
+ "net_income": {
14393
+ "type": "number",
14394
+ "format": "double"
14395
+ }
14396
+ },
14397
+ "title": "StockIncomeStatement",
14398
+ "required": [
14399
+ "revenue",
14400
+ "gross_profit",
14401
+ "net_income"
14402
+ ]
14403
+ },
14113
14404
  "Strategy": {
14114
14405
  "type": "object",
14115
14406
  "properties": {
@@ -15022,6 +15313,55 @@
15022
15313
  "txs"
15023
15314
  ]
15024
15315
  },
15316
+ "UpcomingEarning": {
15317
+ "type": "object",
15318
+ "properties": {
15319
+ "market_id": {
15320
+ "type": "integer",
15321
+ "format": "int16"
15322
+ },
15323
+ "date": {
15324
+ "type": "string"
15325
+ },
15326
+ "timing": {
15327
+ "type": "string",
15328
+ "enum": [
15329
+ "bmo",
15330
+ "amc"
15331
+ ]
15332
+ }
15333
+ },
15334
+ "title": "UpcomingEarning",
15335
+ "required": [
15336
+ "market_id",
15337
+ "date",
15338
+ "timing"
15339
+ ]
15340
+ },
15341
+ "UpcomingEarnings": {
15342
+ "type": "object",
15343
+ "properties": {
15344
+ "code": {
15345
+ "type": "integer",
15346
+ "format": "int32",
15347
+ "example": "200"
15348
+ },
15349
+ "message": {
15350
+ "type": "string"
15351
+ },
15352
+ "upcoming_earnings": {
15353
+ "type": "array",
15354
+ "items": {
15355
+ "$ref": "#/definitions/UpcomingEarning"
15356
+ }
15357
+ }
15358
+ },
15359
+ "title": "UpcomingEarnings",
15360
+ "required": [
15361
+ "code",
15362
+ "upcoming_earnings"
15363
+ ]
15364
+ },
15025
15365
  "UserReferrals": {
15026
15366
  "type": "object",
15027
15367
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.268",
3
+ "version": "1.0.269",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {