zklighter-perps 1.0.303 → 1.0.305

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.
@@ -259,6 +259,8 @@ models/Status.ts
259
259
  models/StockBalanceSheet.ts
260
260
  models/StockCashFlowStatement.ts
261
261
  models/StockFinancial.ts
262
+ models/StockFinancialDividendEvent.ts
263
+ models/StockFinancialDividends.ts
262
264
  models/StockFinancialEarnings.ts
263
265
  models/StockFinancialEarningsEvent.ts
264
266
  models/StockFinancialHistoricalEarning.ts
@@ -36,7 +36,7 @@ export interface StockFinancialsRequest {
36
36
  export class StockfinancialsApi extends runtime.BaseAPI {
37
37
 
38
38
  /**
39
- * Get stock financials. Returns stock_financial for a single market_id, or stock_financials for every stock market when market_id is omitted. fields narrows the response to a subset of currency, exchange, industry, sector, country, market_cap, next_earnings; omit it to get the full record, which requires market_id.
39
+ * Get stock financials. Returns stock_financial for a single market_id, or stock_financials for every stock market when market_id is omitted. fields narrows the response to a subset of currency, exchange, industry, sector, country, market_cap, next_earnings, next_dividend; omit it to get the full record, which requires market_id.
40
40
  * stockFinancials
41
41
  */
42
42
  async stockFinancialsRaw(requestParameters: StockFinancialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespStockFinancials>> {
@@ -63,7 +63,7 @@ export class StockfinancialsApi extends runtime.BaseAPI {
63
63
  }
64
64
 
65
65
  /**
66
- * Get stock financials. Returns stock_financial for a single market_id, or stock_financials for every stock market when market_id is omitted. fields narrows the response to a subset of currency, exchange, industry, sector, country, market_cap, next_earnings; omit it to get the full record, which requires market_id.
66
+ * Get stock financials. Returns stock_financial for a single market_id, or stock_financials for every stock market when market_id is omitted. fields narrows the response to a subset of currency, exchange, industry, sector, country, market_cap, next_earnings, next_dividend; omit it to get the full record, which requires market_id.
67
67
  * stockFinancials
68
68
  */
69
69
  async stockFinancials(requestParameters: StockFinancialsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespStockFinancials> {
@@ -25,6 +25,12 @@ import {
25
25
  StockFinancialProfileFromJSONTyped,
26
26
  StockFinancialProfileToJSON,
27
27
  } from './StockFinancialProfile';
28
+ import type { StockFinancialDividends } from './StockFinancialDividends';
29
+ import {
30
+ StockFinancialDividendsFromJSON,
31
+ StockFinancialDividendsFromJSONTyped,
32
+ StockFinancialDividendsToJSON,
33
+ } from './StockFinancialDividends';
28
34
  import type { StockFinancialEarnings } from './StockFinancialEarnings';
29
35
  import {
30
36
  StockFinancialEarningsFromJSON,
@@ -56,6 +62,12 @@ export interface StockFinancial {
56
62
  * @memberof StockFinancial
57
63
  */
58
64
  earnings: StockFinancialEarnings;
65
+ /**
66
+ *
67
+ * @type {StockFinancialDividends}
68
+ * @memberof StockFinancial
69
+ */
70
+ dividends: StockFinancialDividends;
59
71
  /**
60
72
  *
61
73
  * @type {StockFinancialStatements}
@@ -71,6 +83,7 @@ export function instanceOfStockFinancial(value: object): value is StockFinancial
71
83
  if (!('market_id' in value) || value['market_id'] === undefined) return false;
72
84
  if (!('profile' in value) || value['profile'] === undefined) return false;
73
85
  if (!('earnings' in value) || value['earnings'] === undefined) return false;
86
+ if (!('dividends' in value) || value['dividends'] === undefined) return false;
74
87
  if (!('statements' in value) || value['statements'] === undefined) return false;
75
88
  return true;
76
89
  }
@@ -88,6 +101,7 @@ export function StockFinancialFromJSONTyped(json: any, ignoreDiscriminator: bool
88
101
  'market_id': json['market_id'],
89
102
  'profile': StockFinancialProfileFromJSON(json['profile']),
90
103
  'earnings': StockFinancialEarningsFromJSON(json['earnings']),
104
+ 'dividends': StockFinancialDividendsFromJSON(json['dividends']),
91
105
  'statements': StockFinancialStatementsFromJSON(json['statements']),
92
106
  };
93
107
  }
@@ -101,6 +115,7 @@ export function StockFinancialToJSON(value?: StockFinancial | null): any {
101
115
  'market_id': value['market_id'],
102
116
  'profile': StockFinancialProfileToJSON(value['profile']),
103
117
  'earnings': StockFinancialEarningsToJSON(value['earnings']),
118
+ 'dividends': StockFinancialDividendsToJSON(value['dividends']),
104
119
  'statements': StockFinancialStatementsToJSON(value['statements']),
105
120
  };
106
121
  }
@@ -0,0 +1,146 @@
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 StockFinancialDividendEvent
20
+ */
21
+ export interface StockFinancialDividendEvent {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof StockFinancialDividendEvent
26
+ */
27
+ source: StockFinancialDividendEventSourceEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof StockFinancialDividendEvent
32
+ */
33
+ ex_date: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof StockFinancialDividendEvent
38
+ */
39
+ record_date?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof StockFinancialDividendEvent
44
+ */
45
+ payment_date?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof StockFinancialDividendEvent
50
+ */
51
+ declaration_date?: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof StockFinancialDividendEvent
56
+ */
57
+ amount: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof StockFinancialDividendEvent
62
+ */
63
+ adj_amount?: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof StockFinancialDividendEvent
68
+ */
69
+ frequency?: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof StockFinancialDividendEvent
74
+ */
75
+ currency?: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof StockFinancialDividendEvent
80
+ */
81
+ status?: string;
82
+ }
83
+
84
+
85
+ /**
86
+ * @export
87
+ */
88
+ export const StockFinancialDividendEventSourceEnum = {
89
+ Fmp: 'fmp',
90
+ Robinhood: 'robinhood'
91
+ } as const;
92
+ export type StockFinancialDividendEventSourceEnum = typeof StockFinancialDividendEventSourceEnum[keyof typeof StockFinancialDividendEventSourceEnum];
93
+
94
+
95
+ /**
96
+ * Check if a given object implements the StockFinancialDividendEvent interface.
97
+ */
98
+ export function instanceOfStockFinancialDividendEvent(value: object): value is StockFinancialDividendEvent {
99
+ if (!('source' in value) || value['source'] === undefined) return false;
100
+ if (!('ex_date' in value) || value['ex_date'] === undefined) return false;
101
+ if (!('amount' in value) || value['amount'] === undefined) return false;
102
+ return true;
103
+ }
104
+
105
+ export function StockFinancialDividendEventFromJSON(json: any): StockFinancialDividendEvent {
106
+ return StockFinancialDividendEventFromJSONTyped(json, false);
107
+ }
108
+
109
+ export function StockFinancialDividendEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): StockFinancialDividendEvent {
110
+ if (json == null) {
111
+ return json;
112
+ }
113
+ return {
114
+
115
+ 'source': json['source'],
116
+ 'ex_date': json['ex_date'],
117
+ 'record_date': json['record_date'] == null ? undefined : json['record_date'],
118
+ 'payment_date': json['payment_date'] == null ? undefined : json['payment_date'],
119
+ 'declaration_date': json['declaration_date'] == null ? undefined : json['declaration_date'],
120
+ 'amount': json['amount'],
121
+ 'adj_amount': json['adj_amount'] == null ? undefined : json['adj_amount'],
122
+ 'frequency': json['frequency'] == null ? undefined : json['frequency'],
123
+ 'currency': json['currency'] == null ? undefined : json['currency'],
124
+ 'status': json['status'] == null ? undefined : json['status'],
125
+ };
126
+ }
127
+
128
+ export function StockFinancialDividendEventToJSON(value?: StockFinancialDividendEvent | null): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+ return {
133
+
134
+ 'source': value['source'],
135
+ 'ex_date': value['ex_date'],
136
+ 'record_date': value['record_date'],
137
+ 'payment_date': value['payment_date'],
138
+ 'declaration_date': value['declaration_date'],
139
+ 'amount': value['amount'],
140
+ 'adj_amount': value['adj_amount'],
141
+ 'frequency': value['frequency'],
142
+ 'currency': value['currency'],
143
+ 'status': value['status'],
144
+ };
145
+ }
146
+
@@ -0,0 +1,83 @@
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
+ import type { StockFinancialDividendEvent } from './StockFinancialDividendEvent';
17
+ import {
18
+ StockFinancialDividendEventFromJSON,
19
+ StockFinancialDividendEventFromJSONTyped,
20
+ StockFinancialDividendEventToJSON,
21
+ } from './StockFinancialDividendEvent';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface StockFinancialDividends
27
+ */
28
+ export interface StockFinancialDividends {
29
+ /**
30
+ *
31
+ * @type {StockFinancialDividendEvent}
32
+ * @memberof StockFinancialDividends
33
+ */
34
+ next?: StockFinancialDividendEvent;
35
+ /**
36
+ *
37
+ * @type {Array<StockFinancialDividendEvent>}
38
+ * @memberof StockFinancialDividends
39
+ */
40
+ history?: Array<StockFinancialDividendEvent>;
41
+ /**
42
+ *
43
+ * @type {Array<StockFinancialDividendEvent>}
44
+ * @memberof StockFinancialDividends
45
+ */
46
+ distributions?: Array<StockFinancialDividendEvent>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the StockFinancialDividends interface.
51
+ */
52
+ export function instanceOfStockFinancialDividends(value: object): value is StockFinancialDividends {
53
+ return true;
54
+ }
55
+
56
+ export function StockFinancialDividendsFromJSON(json: any): StockFinancialDividends {
57
+ return StockFinancialDividendsFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function StockFinancialDividendsFromJSONTyped(json: any, ignoreDiscriminator: boolean): StockFinancialDividends {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'next': json['next'] == null ? undefined : StockFinancialDividendEventFromJSON(json['next']),
67
+ 'history': json['history'] == null ? undefined : ((json['history'] as Array<any>).map(StockFinancialDividendEventFromJSON)),
68
+ 'distributions': json['distributions'] == null ? undefined : ((json['distributions'] as Array<any>).map(StockFinancialDividendEventFromJSON)),
69
+ };
70
+ }
71
+
72
+ export function StockFinancialDividendsToJSON(value?: StockFinancialDividends | null): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+
78
+ 'next': StockFinancialDividendEventToJSON(value['next']),
79
+ 'history': value['history'] == null ? undefined : ((value['history'] as Array<any>).map(StockFinancialDividendEventToJSON)),
80
+ 'distributions': value['distributions'] == null ? undefined : ((value['distributions'] as Array<any>).map(StockFinancialDividendEventToJSON)),
81
+ };
82
+ }
83
+
@@ -112,10 +112,10 @@ export interface TvSymbolInfo {
112
112
  has_intraday: boolean;
113
113
  /**
114
114
  *
115
- * @type {boolean}
115
+ * @type {Array<boolean>}
116
116
  * @memberof TvSymbolInfo
117
117
  */
118
- has_no_volume: boolean;
118
+ has_no_volume: Array<boolean>;
119
119
  /**
120
120
  *
121
121
  * @type {boolean}
package/models/index.ts CHANGED
@@ -237,6 +237,8 @@ export * from './Status';
237
237
  export * from './StockBalanceSheet';
238
238
  export * from './StockCashFlowStatement';
239
239
  export * from './StockFinancial';
240
+ export * from './StockFinancialDividendEvent';
241
+ export * from './StockFinancialDividends';
240
242
  export * from './StockFinancialEarnings';
241
243
  export * from './StockFinancialEarningsEvent';
242
244
  export * from './StockFinancialHistoricalEarning';
package/openapi.json CHANGED
@@ -4832,7 +4832,7 @@
4832
4832
  "consumes": [
4833
4833
  "multipart/form-data"
4834
4834
  ],
4835
- "description": "Get stock financials. Returns stock_financial for a single market_id, or stock_financials for every stock market when market_id is omitted. fields narrows the response to a subset of currency, exchange, industry, sector, country, market_cap, next_earnings; omit it to get the full record, which requires market_id."
4835
+ "description": "Get stock financials. Returns stock_financial for a single market_id, or stock_financials for every stock market when market_id is omitted. fields narrows the response to a subset of currency, exchange, industry, sector, country, market_cap, next_earnings, next_dividend; omit it to get the full record, which requires market_id."
4836
4836
  }
4837
4837
  },
4838
4838
  "/api/v1/syntheticSpotInfo": {
@@ -15548,6 +15548,9 @@
15548
15548
  "earnings": {
15549
15549
  "$ref": "#/definitions/StockFinancialEarnings"
15550
15550
  },
15551
+ "dividends": {
15552
+ "$ref": "#/definitions/StockFinancialDividends"
15553
+ },
15551
15554
  "statements": {
15552
15555
  "$ref": "#/definitions/StockFinancialStatements"
15553
15556
  }
@@ -15557,9 +15560,78 @@
15557
15560
  "market_id",
15558
15561
  "profile",
15559
15562
  "earnings",
15563
+ "dividends",
15560
15564
  "statements"
15561
15565
  ]
15562
15566
  },
15567
+ "StockFinancialDividendEvent": {
15568
+ "type": "object",
15569
+ "properties": {
15570
+ "source": {
15571
+ "type": "string",
15572
+ "enum": [
15573
+ "fmp",
15574
+ "robinhood"
15575
+ ]
15576
+ },
15577
+ "ex_date": {
15578
+ "type": "string"
15579
+ },
15580
+ "record_date": {
15581
+ "type": "string"
15582
+ },
15583
+ "payment_date": {
15584
+ "type": "string"
15585
+ },
15586
+ "declaration_date": {
15587
+ "type": "string"
15588
+ },
15589
+ "amount": {
15590
+ "type": "number",
15591
+ "format": "double"
15592
+ },
15593
+ "adj_amount": {
15594
+ "type": "number",
15595
+ "format": "double"
15596
+ },
15597
+ "frequency": {
15598
+ "type": "string"
15599
+ },
15600
+ "currency": {
15601
+ "type": "string"
15602
+ },
15603
+ "status": {
15604
+ "type": "string"
15605
+ }
15606
+ },
15607
+ "title": "StockFinancialDividendEvent",
15608
+ "required": [
15609
+ "source",
15610
+ "ex_date",
15611
+ "amount"
15612
+ ]
15613
+ },
15614
+ "StockFinancialDividends": {
15615
+ "type": "object",
15616
+ "properties": {
15617
+ "next": {
15618
+ "$ref": "#/definitions/StockFinancialDividendEvent"
15619
+ },
15620
+ "history": {
15621
+ "type": "array",
15622
+ "items": {
15623
+ "$ref": "#/definitions/StockFinancialDividendEvent"
15624
+ }
15625
+ },
15626
+ "distributions": {
15627
+ "type": "array",
15628
+ "items": {
15629
+ "$ref": "#/definitions/StockFinancialDividendEvent"
15630
+ }
15631
+ }
15632
+ },
15633
+ "title": "StockFinancialDividends"
15634
+ },
15563
15635
  "StockFinancialEarnings": {
15564
15636
  "type": "object",
15565
15637
  "properties": {
@@ -16859,8 +16931,10 @@
16859
16931
  "format": "boolean"
16860
16932
  },
16861
16933
  "has-no-volume": {
16862
- "type": "boolean",
16863
- "format": "boolean"
16934
+ "type": "array",
16935
+ "items": {
16936
+ "type": "boolean"
16937
+ }
16864
16938
  },
16865
16939
  "has-daily": {
16866
16940
  "type": "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.303",
3
+ "version": "1.0.305",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {