zklighter-perps 1.0.295 → 1.0.296
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.
|
@@ -285,6 +285,8 @@ for definition_name, property_names in nullable_properties.items():
|
|
|
285
285
|
# These fields use `omitempty` in server.api and are absent when FMP has no
|
|
286
286
|
# value. They are optional rather than nullable in the generated SDK.
|
|
287
287
|
optional_properties = {
|
|
288
|
+
"RespStockFinancials": {"stock_financials"},
|
|
289
|
+
"StockFinancialEarnings": {"history"},
|
|
288
290
|
"StockFinancialEarningsEvent": {"timing"},
|
|
289
291
|
"StockFinancialPeriod": {"reported_currency"},
|
|
290
292
|
"StockFinancialProfile": {
|
|
@@ -294,6 +296,8 @@ optional_properties = {
|
|
|
294
296
|
"sector",
|
|
295
297
|
"country",
|
|
296
298
|
},
|
|
299
|
+
"StockFinancialStatements": {"annual", "quarterly"},
|
|
300
|
+
"Token": {"backend_symbol"},
|
|
297
301
|
"UpcomingEarning": {"currency", "timing"},
|
|
298
302
|
}
|
|
299
303
|
|
|
@@ -49,7 +49,7 @@ export interface RespStockFinancials {
|
|
|
49
49
|
* @type {Array<StockFinancial>}
|
|
50
50
|
* @memberof RespStockFinancials
|
|
51
51
|
*/
|
|
52
|
-
stock_financials
|
|
52
|
+
stock_financials?: Array<StockFinancial>;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -58,7 +58,6 @@ export interface RespStockFinancials {
|
|
|
58
58
|
export function instanceOfRespStockFinancials(value: object): value is RespStockFinancials {
|
|
59
59
|
if (!('code' in value) || value['code'] === undefined) return false;
|
|
60
60
|
if (!('stock_financial' in value) || value['stock_financial'] === undefined) return false;
|
|
61
|
-
if (!('stock_financials' in value) || value['stock_financials'] === undefined) return false;
|
|
62
61
|
return true;
|
|
63
62
|
}
|
|
64
63
|
|
|
@@ -75,7 +74,7 @@ export function RespStockFinancialsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
75
74
|
'code': json['code'],
|
|
76
75
|
'message': json['message'] == null ? undefined : json['message'],
|
|
77
76
|
'stock_financial': StockFinancialFromJSON(json['stock_financial']),
|
|
78
|
-
'stock_financials': ((json['stock_financials'] as Array<any>).map(StockFinancialFromJSON)),
|
|
77
|
+
'stock_financials': json['stock_financials'] == null ? undefined : ((json['stock_financials'] as Array<any>).map(StockFinancialFromJSON)),
|
|
79
78
|
};
|
|
80
79
|
}
|
|
81
80
|
|
|
@@ -88,7 +87,7 @@ export function RespStockFinancialsToJSON(value?: RespStockFinancials | null): a
|
|
|
88
87
|
'code': value['code'],
|
|
89
88
|
'message': value['message'],
|
|
90
89
|
'stock_financial': StockFinancialToJSON(value['stock_financial']),
|
|
91
|
-
'stock_financials': ((value['stock_financials'] as Array<any>).map(StockFinancialToJSON)),
|
|
90
|
+
'stock_financials': value['stock_financials'] == null ? undefined : ((value['stock_financials'] as Array<any>).map(StockFinancialToJSON)),
|
|
92
91
|
};
|
|
93
92
|
}
|
|
94
93
|
|
|
@@ -43,14 +43,13 @@ export interface StockFinancialEarnings {
|
|
|
43
43
|
* @type {Array<StockFinancialHistoricalEarning>}
|
|
44
44
|
* @memberof StockFinancialEarnings
|
|
45
45
|
*/
|
|
46
|
-
history
|
|
46
|
+
history?: Array<StockFinancialHistoricalEarning>;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the StockFinancialEarnings interface.
|
|
51
51
|
*/
|
|
52
52
|
export function instanceOfStockFinancialEarnings(value: object): value is StockFinancialEarnings {
|
|
53
|
-
if (!('history' in value) || value['history'] === undefined) return false;
|
|
54
53
|
return true;
|
|
55
54
|
}
|
|
56
55
|
|
|
@@ -65,7 +64,7 @@ export function StockFinancialEarningsFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
65
64
|
return {
|
|
66
65
|
|
|
67
66
|
'next': json['next'] == null ? undefined : StockFinancialEarningsEventFromJSON(json['next']),
|
|
68
|
-
'history': ((json['history'] as Array<any>).map(StockFinancialHistoricalEarningFromJSON)),
|
|
67
|
+
'history': json['history'] == null ? undefined : ((json['history'] as Array<any>).map(StockFinancialHistoricalEarningFromJSON)),
|
|
69
68
|
};
|
|
70
69
|
}
|
|
71
70
|
|
|
@@ -76,7 +75,7 @@ export function StockFinancialEarningsToJSON(value?: StockFinancialEarnings | nu
|
|
|
76
75
|
return {
|
|
77
76
|
|
|
78
77
|
'next': StockFinancialEarningsEventToJSON(value['next']),
|
|
79
|
-
'history': ((value['history'] as Array<any>).map(StockFinancialHistoricalEarningToJSON)),
|
|
78
|
+
'history': value['history'] == null ? undefined : ((value['history'] as Array<any>).map(StockFinancialHistoricalEarningToJSON)),
|
|
80
79
|
};
|
|
81
80
|
}
|
|
82
81
|
|
|
@@ -31,21 +31,19 @@ export interface StockFinancialStatements {
|
|
|
31
31
|
* @type {Array<StockFinancialPeriod>}
|
|
32
32
|
* @memberof StockFinancialStatements
|
|
33
33
|
*/
|
|
34
|
-
annual
|
|
34
|
+
annual?: Array<StockFinancialPeriod>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {Array<StockFinancialPeriod>}
|
|
38
38
|
* @memberof StockFinancialStatements
|
|
39
39
|
*/
|
|
40
|
-
quarterly
|
|
40
|
+
quarterly?: Array<StockFinancialPeriod>;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the StockFinancialStatements interface.
|
|
45
45
|
*/
|
|
46
46
|
export function instanceOfStockFinancialStatements(value: object): value is StockFinancialStatements {
|
|
47
|
-
if (!('annual' in value) || value['annual'] === undefined) return false;
|
|
48
|
-
if (!('quarterly' in value) || value['quarterly'] === undefined) return false;
|
|
49
47
|
return true;
|
|
50
48
|
}
|
|
51
49
|
|
|
@@ -59,8 +57,8 @@ export function StockFinancialStatementsFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
59
57
|
}
|
|
60
58
|
return {
|
|
61
59
|
|
|
62
|
-
'annual': ((json['annual'] as Array<any>).map(StockFinancialPeriodFromJSON)),
|
|
63
|
-
'quarterly': ((json['quarterly'] as Array<any>).map(StockFinancialPeriodFromJSON)),
|
|
60
|
+
'annual': json['annual'] == null ? undefined : ((json['annual'] as Array<any>).map(StockFinancialPeriodFromJSON)),
|
|
61
|
+
'quarterly': json['quarterly'] == null ? undefined : ((json['quarterly'] as Array<any>).map(StockFinancialPeriodFromJSON)),
|
|
64
62
|
};
|
|
65
63
|
}
|
|
66
64
|
|
|
@@ -70,8 +68,8 @@ export function StockFinancialStatementsToJSON(value?: StockFinancialStatements
|
|
|
70
68
|
}
|
|
71
69
|
return {
|
|
72
70
|
|
|
73
|
-
'annual': ((value['annual'] as Array<any>).map(StockFinancialPeriodToJSON)),
|
|
74
|
-
'quarterly': ((value['quarterly'] as Array<any>).map(StockFinancialPeriodToJSON)),
|
|
71
|
+
'annual': value['annual'] == null ? undefined : ((value['annual'] as Array<any>).map(StockFinancialPeriodToJSON)),
|
|
72
|
+
'quarterly': value['quarterly'] == null ? undefined : ((value['quarterly'] as Array<any>).map(StockFinancialPeriodToJSON)),
|
|
75
73
|
};
|
|
76
74
|
}
|
|
77
75
|
|
package/models/Token.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface Token {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof Token
|
|
32
32
|
*/
|
|
33
|
-
backend_symbol
|
|
33
|
+
backend_symbol?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -139,7 +139,6 @@ export type TokenAssetTypeEnum = typeof TokenAssetTypeEnum[keyof typeof TokenAss
|
|
|
139
139
|
*/
|
|
140
140
|
export function instanceOfToken(value: object): value is Token {
|
|
141
141
|
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
142
|
-
if (!('backend_symbol' in value) || value['backend_symbol'] === undefined) return false;
|
|
143
142
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
144
143
|
if (!('logo' in value) || value['logo'] === undefined) return false;
|
|
145
144
|
if (!('logo_extension' in value) || value['logo_extension'] === undefined) return false;
|
|
@@ -166,7 +165,7 @@ export function TokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tok
|
|
|
166
165
|
return {
|
|
167
166
|
|
|
168
167
|
'symbol': json['symbol'],
|
|
169
|
-
'backend_symbol': json['backend_symbol'],
|
|
168
|
+
'backend_symbol': json['backend_symbol'] == null ? undefined : json['backend_symbol'],
|
|
170
169
|
'name': json['name'],
|
|
171
170
|
'logo': json['logo'],
|
|
172
171
|
'logo_extension': json['logo_extension'],
|
package/openapi.json
CHANGED
|
@@ -14275,8 +14275,7 @@
|
|
|
14275
14275
|
"title": "RespStockFinancials",
|
|
14276
14276
|
"required": [
|
|
14277
14277
|
"code",
|
|
14278
|
-
"stock_financial"
|
|
14279
|
-
"stock_financials"
|
|
14278
|
+
"stock_financial"
|
|
14280
14279
|
]
|
|
14281
14280
|
},
|
|
14282
14281
|
"RespSyntheticSpotInfo": {
|
|
@@ -15085,10 +15084,7 @@
|
|
|
15085
15084
|
}
|
|
15086
15085
|
}
|
|
15087
15086
|
},
|
|
15088
|
-
"title": "StockFinancialEarnings"
|
|
15089
|
-
"required": [
|
|
15090
|
-
"history"
|
|
15091
|
-
]
|
|
15087
|
+
"title": "StockFinancialEarnings"
|
|
15092
15088
|
},
|
|
15093
15089
|
"StockFinancialEarningsEvent": {
|
|
15094
15090
|
"type": "object",
|
|
@@ -15238,11 +15234,7 @@
|
|
|
15238
15234
|
}
|
|
15239
15235
|
}
|
|
15240
15236
|
},
|
|
15241
|
-
"title": "StockFinancialStatements"
|
|
15242
|
-
"required": [
|
|
15243
|
-
"annual",
|
|
15244
|
-
"quarterly"
|
|
15245
|
-
]
|
|
15237
|
+
"title": "StockFinancialStatements"
|
|
15246
15238
|
},
|
|
15247
15239
|
"StockIncomeStatement": {
|
|
15248
15240
|
"type": "object",
|
|
@@ -15536,7 +15528,6 @@
|
|
|
15536
15528
|
"title": "Token",
|
|
15537
15529
|
"required": [
|
|
15538
15530
|
"symbol",
|
|
15539
|
-
"backend_symbol",
|
|
15540
15531
|
"name",
|
|
15541
15532
|
"logo",
|
|
15542
15533
|
"logo_extension",
|