zklighter-perps 1.0.268 → 1.0.270

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
@@ -135,6 +137,7 @@ models/ReqGetAccountByL1Address.ts
135
137
  models/ReqGetAccountInactiveOrders.ts
136
138
  models/ReqGetAccountLimits.ts
137
139
  models/ReqGetAccountMetadata.ts
140
+ models/ReqGetAccountOrders.ts
138
141
  models/ReqGetAccountPnL.ts
139
142
  models/ReqGetAccountTxs.ts
140
143
  models/ReqGetAirdropAllocations.ts
@@ -178,6 +181,7 @@ models/ReqGetRecentTrades.ts
178
181
  models/ReqGetReferralCode.ts
179
182
  models/ReqGetReferralPoints.ts
180
183
  models/ReqGetRollingInfo.ts
184
+ models/ReqGetStockFinancials.ts
181
185
  models/ReqGetSyntheticSpotInfo.ts
182
186
  models/ReqGetTrades.ts
183
187
  models/ReqGetTransferFeeInfo.ts
@@ -214,6 +218,7 @@ models/RespRollingInfo.ts
214
218
  models/RespSendTx.ts
215
219
  models/RespSendTxBatch.ts
216
220
  models/RespSetMakerOnlyApiKeys.ts
221
+ models/RespStockFinancials.ts
217
222
  models/RespSyntheticSpotInfo.ts
218
223
  models/RespUpdateKickback.ts
219
224
  models/RespUpdateRFQ.ts
@@ -230,6 +235,15 @@ models/SpotAvgEntryPrice.ts
230
235
  models/SpotMarketStats.ts
231
236
  models/SpotOrderBookDetail.ts
232
237
  models/Status.ts
238
+ models/StockBalanceSheet.ts
239
+ models/StockCashFlowStatement.ts
240
+ models/StockFinancial.ts
241
+ models/StockFinancialEarnings.ts
242
+ models/StockFinancialEarningsEvent.ts
243
+ models/StockFinancialPeriod.ts
244
+ models/StockFinancialProfile.ts
245
+ models/StockFinancialStatements.ts
246
+ models/StockIncomeStatement.ts
233
247
  models/Strategy.ts
234
248
  models/SubAccountMetadata.ts
235
249
  models/SubAccounts.ts
@@ -247,6 +261,8 @@ models/Tx.ts
247
261
  models/TxHash.ts
248
262
  models/TxHashes.ts
249
263
  models/Txs.ts
264
+ models/UpcomingEarning.ts
265
+ models/UpcomingEarnings.ts
250
266
  models/UserReferrals.ts
251
267
  models/ValidatorInfo.ts
252
268
  models/WithdrawHistory.ts
@@ -248,6 +248,7 @@ export interface PositionFundingRequest {
248
248
  authorization?: string;
249
249
  auth?: string;
250
250
  market_id?: number;
251
+ market_ids?: number;
251
252
  cursor?: string;
252
253
  side?: PositionFundingSideEnum;
253
254
  start_timestamp?: number;
@@ -1558,6 +1559,10 @@ export class AccountApi extends runtime.BaseAPI {
1558
1559
  queryParameters['market_id'] = requestParameters['market_id'];
1559
1560
  }
1560
1561
 
1562
+ if (requestParameters['market_ids'] != null) {
1563
+ queryParameters['market_ids'] = requestParameters['market_ids'];
1564
+ }
1565
+
1561
1566
  if (requestParameters['cursor'] != null) {
1562
1567
  queryParameters['cursor'] = requestParameters['cursor'];
1563
1568
  }
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';
@@ -32,11 +32,17 @@ export interface ReqGetPositionFunding {
32
32
  */
33
33
  account_index: number;
34
34
  /**
35
- *
35
+ * kept for backward compat, use MarketIDs instead
36
36
  * @type {number}
37
37
  * @memberof ReqGetPositionFunding
38
38
  */
39
39
  market_id?: number;
40
+ /**
41
+ *
42
+ * @type {Array<number>}
43
+ * @memberof ReqGetPositionFunding
44
+ */
45
+ market_ids?: Array<number>;
40
46
  /**
41
47
  *
42
48
  * @type {string}
@@ -103,6 +109,7 @@ export function ReqGetPositionFundingFromJSONTyped(json: any, ignoreDiscriminato
103
109
  'auth': json['auth'] == null ? undefined : json['auth'],
104
110
  'account_index': json['account_index'],
105
111
  'market_id': json['market_id'] == null ? undefined : json['market_id'],
112
+ 'market_ids': json['market_ids'] == null ? undefined : json['market_ids'],
106
113
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
107
114
  'limit': json['limit'],
108
115
  'side': json['side'] == null ? undefined : json['side'],
@@ -120,6 +127,7 @@ export function ReqGetPositionFundingToJSON(value?: ReqGetPositionFunding | null
120
127
  'auth': value['auth'],
121
128
  'account_index': value['account_index'],
122
129
  'market_id': value['market_id'],
130
+ 'market_ids': value['market_ids'],
123
131
  'cursor': value['cursor'],
124
132
  'limit': value['limit'],
125
133
  'side': value['side'],
package/models/index.ts CHANGED
@@ -118,6 +118,7 @@ export * from './ReqGetAccountByL1Address';
118
118
  export * from './ReqGetAccountInactiveOrders';
119
119
  export * from './ReqGetAccountLimits';
120
120
  export * from './ReqGetAccountMetadata';
121
+ export * from './ReqGetAccountOrders';
121
122
  export * from './ReqGetAccountPnL';
122
123
  export * from './ReqGetAccountTxs';
123
124
  export * from './ReqGetAirdropAllocations';
@@ -161,6 +162,7 @@ export * from './ReqGetRecentTrades';
161
162
  export * from './ReqGetReferralCode';
162
163
  export * from './ReqGetReferralPoints';
163
164
  export * from './ReqGetRollingInfo';
165
+ export * from './ReqGetStockFinancials';
164
166
  export * from './ReqGetSyntheticSpotInfo';
165
167
  export * from './ReqGetTrades';
166
168
  export * from './ReqGetTransferFeeInfo';
@@ -197,6 +199,7 @@ export * from './RespRollingInfo';
197
199
  export * from './RespSendTx';
198
200
  export * from './RespSendTxBatch';
199
201
  export * from './RespSetMakerOnlyApiKeys';
202
+ export * from './RespStockFinancials';
200
203
  export * from './RespSyntheticSpotInfo';
201
204
  export * from './RespUpdateKickback';
202
205
  export * from './RespUpdateRFQ';
@@ -213,6 +216,15 @@ export * from './SpotAvgEntryPrice';
213
216
  export * from './SpotMarketStats';
214
217
  export * from './SpotOrderBookDetail';
215
218
  export * from './Status';
219
+ export * from './StockBalanceSheet';
220
+ export * from './StockCashFlowStatement';
221
+ export * from './StockFinancial';
222
+ export * from './StockFinancialEarnings';
223
+ export * from './StockFinancialEarningsEvent';
224
+ export * from './StockFinancialPeriod';
225
+ export * from './StockFinancialProfile';
226
+ export * from './StockFinancialStatements';
227
+ export * from './StockIncomeStatement';
216
228
  export * from './Strategy';
217
229
  export * from './SubAccountMetadata';
218
230
  export * from './SubAccounts';
@@ -230,6 +242,8 @@ export * from './Tx';
230
242
  export * from './TxHash';
231
243
  export * from './TxHashes';
232
244
  export * from './Txs';
245
+ export * from './UpcomingEarning';
246
+ export * from './UpcomingEarnings';
233
247
  export * from './UserReferrals';
234
248
  export * from './ValidatorInfo';
235
249
  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",
@@ -3229,12 +3287,20 @@
3229
3287
  },
3230
3288
  {
3231
3289
  "name": "market_id",
3290
+ "description": " kept for backward compat, use MarketIDs instead",
3232
3291
  "in": "query",
3233
3292
  "required": false,
3234
3293
  "type": "integer",
3235
3294
  "format": "int16",
3236
3295
  "default": "255"
3237
3296
  },
3297
+ {
3298
+ "name": "market_ids",
3299
+ "in": "query",
3300
+ "required": false,
3301
+ "type": "integer",
3302
+ "format": "int16"
3303
+ },
3238
3304
  {
3239
3305
  "name": "cursor",
3240
3306
  "in": "query",
@@ -4368,6 +4434,42 @@
4368
4434
  "description": "Set maker-only API key indexes"
4369
4435
  }
4370
4436
  },
4437
+ "/api/v1/stockFinancials": {
4438
+ "get": {
4439
+ "summary": "stockFinancials",
4440
+ "operationId": "stockFinancials",
4441
+ "responses": {
4442
+ "200": {
4443
+ "description": "A successful response.",
4444
+ "schema": {
4445
+ "$ref": "#/definitions/RespStockFinancials"
4446
+ }
4447
+ },
4448
+ "400": {
4449
+ "description": "Bad request",
4450
+ "schema": {
4451
+ "$ref": "#/definitions/ResultCode"
4452
+ }
4453
+ }
4454
+ },
4455
+ "parameters": [
4456
+ {
4457
+ "name": "market_id",
4458
+ "in": "query",
4459
+ "required": true,
4460
+ "type": "integer",
4461
+ "format": "int16"
4462
+ }
4463
+ ],
4464
+ "tags": [
4465
+ "stockfinancials"
4466
+ ],
4467
+ "consumes": [
4468
+ "multipart/form-data"
4469
+ ],
4470
+ "description": "Get stock financials"
4471
+ }
4472
+ },
4371
4473
  "/api/v1/syntheticSpotInfo": {
4372
4474
  "get": {
4373
4475
  "summary": "syntheticSpotInfo",
@@ -5016,6 +5118,30 @@
5016
5118
  "description": "Get transactions which are already packed into blocks"
5017
5119
  }
5018
5120
  },
5121
+ "/api/v1/upcomingEarnings": {
5122
+ "get": {
5123
+ "summary": "upcomingEarnings",
5124
+ "operationId": "upcomingEarnings",
5125
+ "responses": {
5126
+ "200": {
5127
+ "description": "A successful response.",
5128
+ "schema": {
5129
+ "$ref": "#/definitions/UpcomingEarnings"
5130
+ }
5131
+ },
5132
+ "400": {
5133
+ "description": "Bad request",
5134
+ "schema": {
5135
+ "$ref": "#/definitions/ResultCode"
5136
+ }
5137
+ }
5138
+ },
5139
+ "tags": [
5140
+ "earnings"
5141
+ ],
5142
+ "description": "Get upcoming earnings"
5143
+ }
5144
+ },
5019
5145
  "/api/v1/withdraw/history": {
5020
5146
  "get": {
5021
5147
  "summary": "withdraw_history",
@@ -10831,6 +10957,28 @@
10831
10957
  "value"
10832
10958
  ]
10833
10959
  },
10960
+ "ReqGetAccountOrders": {
10961
+ "type": "object",
10962
+ "properties": {
10963
+ "auth": {
10964
+ "type": "string",
10965
+ "description": " made optional to support header auth clients"
10966
+ },
10967
+ "account_index": {
10968
+ "type": "integer",
10969
+ "format": "int64",
10970
+ "default": "281474976710655"
10971
+ },
10972
+ "client_order_indexes": {
10973
+ "type": "string",
10974
+ "description": " comma-separated int64s, e.g. \"123,456\""
10975
+ }
10976
+ },
10977
+ "title": "ReqGetAccountOrders",
10978
+ "required": [
10979
+ "client_order_indexes"
10980
+ ]
10981
+ },
10834
10982
  "ReqGetAccountPnL": {
10835
10983
  "type": "object",
10836
10984
  "properties": {
@@ -11615,7 +11763,15 @@
11615
11763
  "market_id": {
11616
11764
  "type": "integer",
11617
11765
  "format": "int16",
11618
- "default": "255"
11766
+ "default": "255",
11767
+ "description": " kept for backward compat, use MarketIDs instead"
11768
+ },
11769
+ "market_ids": {
11770
+ "type": "array",
11771
+ "items": {
11772
+ "type": "integer",
11773
+ "format": "int64"
11774
+ }
11619
11775
  },
11620
11776
  "cursor": {
11621
11777
  "type": "string"
@@ -11848,6 +12004,19 @@
11848
12004
  "symbol"
11849
12005
  ]
11850
12006
  },
12007
+ "ReqGetStockFinancials": {
12008
+ "type": "object",
12009
+ "properties": {
12010
+ "market_id": {
12011
+ "type": "integer",
12012
+ "format": "int16"
12013
+ }
12014
+ },
12015
+ "title": "ReqGetStockFinancials",
12016
+ "required": [
12017
+ "market_id"
12018
+ ]
12019
+ },
11851
12020
  "ReqGetSyntheticSpotInfo": {
11852
12021
  "type": "object",
11853
12022
  "properties": {
@@ -13412,6 +13581,27 @@
13412
13581
  "code"
13413
13582
  ]
13414
13583
  },
13584
+ "RespStockFinancials": {
13585
+ "type": "object",
13586
+ "properties": {
13587
+ "code": {
13588
+ "type": "integer",
13589
+ "format": "int32",
13590
+ "example": "200"
13591
+ },
13592
+ "message": {
13593
+ "type": "string"
13594
+ },
13595
+ "stock_financial": {
13596
+ "$ref": "#/definitions/StockFinancial"
13597
+ }
13598
+ },
13599
+ "title": "RespStockFinancials",
13600
+ "required": [
13601
+ "code",
13602
+ "stock_financial"
13603
+ ]
13604
+ },
13415
13605
  "RespSyntheticSpotInfo": {
13416
13606
  "type": "object",
13417
13607
  "properties": {
@@ -14110,6 +14300,221 @@
14110
14300
  "timestamp"
14111
14301
  ]
14112
14302
  },
14303
+ "StockBalanceSheet": {
14304
+ "type": "object",
14305
+ "properties": {
14306
+ "cash_and_cash_equivalents": {
14307
+ "type": "number",
14308
+ "format": "double"
14309
+ },
14310
+ "total_assets": {
14311
+ "type": "number",
14312
+ "format": "double"
14313
+ }
14314
+ },
14315
+ "title": "StockBalanceSheet",
14316
+ "required": [
14317
+ "cash_and_cash_equivalents",
14318
+ "total_assets"
14319
+ ]
14320
+ },
14321
+ "StockCashFlowStatement": {
14322
+ "type": "object",
14323
+ "properties": {
14324
+ "operating_cash_flow": {
14325
+ "type": "number",
14326
+ "format": "double"
14327
+ },
14328
+ "capital_expenditure": {
14329
+ "type": "number",
14330
+ "format": "double"
14331
+ },
14332
+ "free_cash_flow": {
14333
+ "type": "number",
14334
+ "format": "double"
14335
+ }
14336
+ },
14337
+ "title": "StockCashFlowStatement",
14338
+ "required": [
14339
+ "operating_cash_flow",
14340
+ "capital_expenditure",
14341
+ "free_cash_flow"
14342
+ ]
14343
+ },
14344
+ "StockFinancial": {
14345
+ "type": "object",
14346
+ "properties": {
14347
+ "market_id": {
14348
+ "type": "integer",
14349
+ "format": "int16"
14350
+ },
14351
+ "profile": {
14352
+ "$ref": "#/definitions/StockFinancialProfile"
14353
+ },
14354
+ "earnings": {
14355
+ "$ref": "#/definitions/StockFinancialEarnings"
14356
+ },
14357
+ "statements": {
14358
+ "$ref": "#/definitions/StockFinancialStatements"
14359
+ }
14360
+ },
14361
+ "title": "StockFinancial",
14362
+ "required": [
14363
+ "market_id",
14364
+ "profile",
14365
+ "earnings",
14366
+ "statements"
14367
+ ]
14368
+ },
14369
+ "StockFinancialEarnings": {
14370
+ "type": "object",
14371
+ "properties": {
14372
+ "next": {
14373
+ "$ref": "#/definitions/StockFinancialEarningsEvent"
14374
+ }
14375
+ },
14376
+ "title": "StockFinancialEarnings"
14377
+ },
14378
+ "StockFinancialEarningsEvent": {
14379
+ "type": "object",
14380
+ "properties": {
14381
+ "date": {
14382
+ "type": "string"
14383
+ },
14384
+ "timing": {
14385
+ "type": "string",
14386
+ "enum": [
14387
+ "bmo",
14388
+ "amc"
14389
+ ]
14390
+ },
14391
+ "eps_estimated": {
14392
+ "type": "number",
14393
+ "format": "double"
14394
+ },
14395
+ "revenue_estimated": {
14396
+ "type": "number",
14397
+ "format": "double"
14398
+ }
14399
+ },
14400
+ "title": "StockFinancialEarningsEvent",
14401
+ "required": [
14402
+ "date",
14403
+ "timing",
14404
+ "eps_estimated",
14405
+ "revenue_estimated"
14406
+ ]
14407
+ },
14408
+ "StockFinancialPeriod": {
14409
+ "type": "object",
14410
+ "properties": {
14411
+ "date": {
14412
+ "type": "string"
14413
+ },
14414
+ "fiscal_year": {
14415
+ "type": "integer",
14416
+ "format": "int16"
14417
+ },
14418
+ "period": {
14419
+ "type": "string"
14420
+ },
14421
+ "reported_currency": {
14422
+ "type": "string"
14423
+ },
14424
+ "income": {
14425
+ "$ref": "#/definitions/StockIncomeStatement"
14426
+ },
14427
+ "balance_sheet": {
14428
+ "$ref": "#/definitions/StockBalanceSheet"
14429
+ },
14430
+ "cash_flow": {
14431
+ "$ref": "#/definitions/StockCashFlowStatement"
14432
+ }
14433
+ },
14434
+ "title": "StockFinancialPeriod",
14435
+ "required": [
14436
+ "date",
14437
+ "fiscal_year",
14438
+ "period",
14439
+ "reported_currency",
14440
+ "income",
14441
+ "balance_sheet",
14442
+ "cash_flow"
14443
+ ]
14444
+ },
14445
+ "StockFinancialProfile": {
14446
+ "type": "object",
14447
+ "properties": {
14448
+ "currency": {
14449
+ "type": "string"
14450
+ },
14451
+ "exchange": {
14452
+ "type": "string"
14453
+ },
14454
+ "industry": {
14455
+ "type": "string"
14456
+ },
14457
+ "sector": {
14458
+ "type": "string"
14459
+ },
14460
+ "country": {
14461
+ "type": "string"
14462
+ }
14463
+ },
14464
+ "title": "StockFinancialProfile",
14465
+ "required": [
14466
+ "currency",
14467
+ "exchange",
14468
+ "industry",
14469
+ "sector",
14470
+ "country"
14471
+ ]
14472
+ },
14473
+ "StockFinancialStatements": {
14474
+ "type": "object",
14475
+ "properties": {
14476
+ "annual": {
14477
+ "type": "array",
14478
+ "items": {
14479
+ "$ref": "#/definitions/StockFinancialPeriod"
14480
+ }
14481
+ },
14482
+ "quarterly": {
14483
+ "type": "array",
14484
+ "items": {
14485
+ "$ref": "#/definitions/StockFinancialPeriod"
14486
+ }
14487
+ }
14488
+ },
14489
+ "title": "StockFinancialStatements",
14490
+ "required": [
14491
+ "annual",
14492
+ "quarterly"
14493
+ ]
14494
+ },
14495
+ "StockIncomeStatement": {
14496
+ "type": "object",
14497
+ "properties": {
14498
+ "revenue": {
14499
+ "type": "number",
14500
+ "format": "double"
14501
+ },
14502
+ "gross_profit": {
14503
+ "type": "number",
14504
+ "format": "double"
14505
+ },
14506
+ "net_income": {
14507
+ "type": "number",
14508
+ "format": "double"
14509
+ }
14510
+ },
14511
+ "title": "StockIncomeStatement",
14512
+ "required": [
14513
+ "revenue",
14514
+ "gross_profit",
14515
+ "net_income"
14516
+ ]
14517
+ },
14113
14518
  "Strategy": {
14114
14519
  "type": "object",
14115
14520
  "properties": {
@@ -15022,6 +15427,55 @@
15022
15427
  "txs"
15023
15428
  ]
15024
15429
  },
15430
+ "UpcomingEarning": {
15431
+ "type": "object",
15432
+ "properties": {
15433
+ "market_id": {
15434
+ "type": "integer",
15435
+ "format": "int16"
15436
+ },
15437
+ "date": {
15438
+ "type": "string"
15439
+ },
15440
+ "timing": {
15441
+ "type": "string",
15442
+ "enum": [
15443
+ "bmo",
15444
+ "amc"
15445
+ ]
15446
+ }
15447
+ },
15448
+ "title": "UpcomingEarning",
15449
+ "required": [
15450
+ "market_id",
15451
+ "date",
15452
+ "timing"
15453
+ ]
15454
+ },
15455
+ "UpcomingEarnings": {
15456
+ "type": "object",
15457
+ "properties": {
15458
+ "code": {
15459
+ "type": "integer",
15460
+ "format": "int32",
15461
+ "example": "200"
15462
+ },
15463
+ "message": {
15464
+ "type": "string"
15465
+ },
15466
+ "upcoming_earnings": {
15467
+ "type": "array",
15468
+ "items": {
15469
+ "$ref": "#/definitions/UpcomingEarning"
15470
+ }
15471
+ }
15472
+ },
15473
+ "title": "UpcomingEarnings",
15474
+ "required": [
15475
+ "code",
15476
+ "upcoming_earnings"
15477
+ ]
15478
+ },
15025
15479
  "UserReferrals": {
15026
15480
  "type": "object",
15027
15481
  "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.270",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {