@rivascva/dt-idl 1.1.56 → 1.1.58
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.
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,23 @@ interface paths$3 {
|
|
|
74
74
|
patch?: never;
|
|
75
75
|
trace?: never;
|
|
76
76
|
};
|
|
77
|
+
"/stocks/indexes": {
|
|
78
|
+
parameters: {
|
|
79
|
+
query?: never;
|
|
80
|
+
header?: never;
|
|
81
|
+
path?: never;
|
|
82
|
+
cookie?: never;
|
|
83
|
+
};
|
|
84
|
+
/** @description Gets all the indexes */
|
|
85
|
+
get: operations$3["getIndexes"];
|
|
86
|
+
put?: never;
|
|
87
|
+
post?: never;
|
|
88
|
+
delete?: never;
|
|
89
|
+
options?: never;
|
|
90
|
+
head?: never;
|
|
91
|
+
patch?: never;
|
|
92
|
+
trace?: never;
|
|
93
|
+
};
|
|
77
94
|
"/stocks/market/gainers": {
|
|
78
95
|
parameters: {
|
|
79
96
|
query?: never;
|
|
@@ -324,6 +341,15 @@ interface components$3 {
|
|
|
324
341
|
/** @example AAPL */
|
|
325
342
|
symbol: string;
|
|
326
343
|
};
|
|
344
|
+
/** @description An index that represents a group of stocks */
|
|
345
|
+
Index: {
|
|
346
|
+
/** @example ^GSPC */
|
|
347
|
+
symbol: string;
|
|
348
|
+
/** @example S&P 500 */
|
|
349
|
+
name: string;
|
|
350
|
+
quote: components$3["schemas"]["SimpleQuote"];
|
|
351
|
+
quotes: components$3["schemas"]["SimpleQuote"][];
|
|
352
|
+
};
|
|
327
353
|
/** @description A generic error */
|
|
328
354
|
Error: {
|
|
329
355
|
/**
|
|
@@ -488,6 +514,32 @@ interface operations$3 {
|
|
|
488
514
|
500: components$3["responses"]["InternalServerError"];
|
|
489
515
|
};
|
|
490
516
|
};
|
|
517
|
+
getIndexes: {
|
|
518
|
+
parameters: {
|
|
519
|
+
query?: {
|
|
520
|
+
/** @description The sort order of the stock quotes */
|
|
521
|
+
sortOrder?: components$3["schemas"]["SortOrder"];
|
|
522
|
+
/** @description The sort field of the stock quotes */
|
|
523
|
+
sortField?: components$3["schemas"]["SortField"];
|
|
524
|
+
};
|
|
525
|
+
header?: never;
|
|
526
|
+
path?: never;
|
|
527
|
+
cookie?: never;
|
|
528
|
+
};
|
|
529
|
+
requestBody?: never;
|
|
530
|
+
responses: {
|
|
531
|
+
/** @description Success */
|
|
532
|
+
200: {
|
|
533
|
+
headers: {
|
|
534
|
+
[name: string]: unknown;
|
|
535
|
+
};
|
|
536
|
+
content: {
|
|
537
|
+
"application/json": components$3["schemas"]["Index"][];
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
500: components$3["responses"]["InternalServerError"];
|
|
541
|
+
};
|
|
542
|
+
};
|
|
491
543
|
getMarketGainersStocks: {
|
|
492
544
|
parameters: {
|
|
493
545
|
query?: never;
|
package/package.json
CHANGED
|
@@ -105,16 +105,16 @@ paths:
|
|
|
105
105
|
required: false
|
|
106
106
|
schema:
|
|
107
107
|
$ref: '#/components/schemas/SortOrder'
|
|
108
|
-
example:
|
|
109
|
-
default:
|
|
108
|
+
example: DESC
|
|
109
|
+
default: DESC
|
|
110
110
|
- in: query
|
|
111
111
|
name: sortField
|
|
112
112
|
description: The sort field of the stock quotes
|
|
113
113
|
required: false
|
|
114
114
|
schema:
|
|
115
115
|
$ref: '#/components/schemas/SortField'
|
|
116
|
-
example:
|
|
117
|
-
default:
|
|
116
|
+
example: MARKET_CAP
|
|
117
|
+
default: MARKET_CAP
|
|
118
118
|
responses:
|
|
119
119
|
200:
|
|
120
120
|
description: Success
|
|
@@ -149,16 +149,16 @@ paths:
|
|
|
149
149
|
required: false
|
|
150
150
|
schema:
|
|
151
151
|
$ref: '#/components/schemas/SortOrder'
|
|
152
|
-
example:
|
|
153
|
-
default:
|
|
152
|
+
example: DESC
|
|
153
|
+
default: DESC
|
|
154
154
|
- in: query
|
|
155
155
|
name: sortField
|
|
156
156
|
description: The sort field of the stock quotes
|
|
157
157
|
required: false
|
|
158
158
|
schema:
|
|
159
159
|
$ref: '#/components/schemas/SortField'
|
|
160
|
-
example:
|
|
161
|
-
default:
|
|
160
|
+
example: MARKET_CAP
|
|
161
|
+
default: MARKET_CAP
|
|
162
162
|
responses:
|
|
163
163
|
200:
|
|
164
164
|
description: Success
|
|
@@ -173,6 +173,41 @@ paths:
|
|
|
173
173
|
500:
|
|
174
174
|
$ref: '#/components/responses/InternalServerError'
|
|
175
175
|
|
|
176
|
+
/stocks/indexes:
|
|
177
|
+
get:
|
|
178
|
+
description: Gets all the indexes
|
|
179
|
+
operationId: getIndexes
|
|
180
|
+
tags:
|
|
181
|
+
- Stocks
|
|
182
|
+
parameters:
|
|
183
|
+
- in: query
|
|
184
|
+
name: sortOrder
|
|
185
|
+
description: The sort order of the stock quotes
|
|
186
|
+
required: false
|
|
187
|
+
schema:
|
|
188
|
+
$ref: '#/components/schemas/SortOrder'
|
|
189
|
+
example: DESC
|
|
190
|
+
default: DESC
|
|
191
|
+
- in: query
|
|
192
|
+
name: sortField
|
|
193
|
+
description: The sort field of the stock quotes
|
|
194
|
+
required: false
|
|
195
|
+
schema:
|
|
196
|
+
$ref: '#/components/schemas/SortField'
|
|
197
|
+
example: MARKET_CAP
|
|
198
|
+
default: MARKET_CAP
|
|
199
|
+
responses:
|
|
200
|
+
200:
|
|
201
|
+
description: Success
|
|
202
|
+
content:
|
|
203
|
+
application/json:
|
|
204
|
+
schema:
|
|
205
|
+
type: array
|
|
206
|
+
items:
|
|
207
|
+
$ref: '#/components/schemas/Index'
|
|
208
|
+
500:
|
|
209
|
+
$ref: '#/components/responses/InternalServerError'
|
|
210
|
+
|
|
176
211
|
/stocks/market/gainers:
|
|
177
212
|
get:
|
|
178
213
|
description: Gets the simple quotes for the market gainers
|
|
@@ -519,6 +554,27 @@ components:
|
|
|
519
554
|
required:
|
|
520
555
|
- symbol
|
|
521
556
|
|
|
557
|
+
Index:
|
|
558
|
+
description: An index that represents a group of stocks
|
|
559
|
+
properties:
|
|
560
|
+
symbol:
|
|
561
|
+
type: string
|
|
562
|
+
example: ^GSPC
|
|
563
|
+
name:
|
|
564
|
+
type: string
|
|
565
|
+
example: S&P 500
|
|
566
|
+
quote:
|
|
567
|
+
$ref: '#/components/schemas/SimpleQuote'
|
|
568
|
+
quotes:
|
|
569
|
+
type: array
|
|
570
|
+
items:
|
|
571
|
+
$ref: '#/components/schemas/SimpleQuote'
|
|
572
|
+
required:
|
|
573
|
+
- symbol
|
|
574
|
+
- name
|
|
575
|
+
- quote
|
|
576
|
+
- quotes
|
|
577
|
+
|
|
522
578
|
Error:
|
|
523
579
|
description: A generic error
|
|
524
580
|
properties:
|
|
@@ -72,6 +72,23 @@ export interface paths {
|
|
|
72
72
|
patch?: never;
|
|
73
73
|
trace?: never;
|
|
74
74
|
};
|
|
75
|
+
"/stocks/indexes": {
|
|
76
|
+
parameters: {
|
|
77
|
+
query?: never;
|
|
78
|
+
header?: never;
|
|
79
|
+
path?: never;
|
|
80
|
+
cookie?: never;
|
|
81
|
+
};
|
|
82
|
+
/** @description Gets all the indexes */
|
|
83
|
+
get: operations["getIndexes"];
|
|
84
|
+
put?: never;
|
|
85
|
+
post?: never;
|
|
86
|
+
delete?: never;
|
|
87
|
+
options?: never;
|
|
88
|
+
head?: never;
|
|
89
|
+
patch?: never;
|
|
90
|
+
trace?: never;
|
|
91
|
+
};
|
|
75
92
|
"/stocks/market/gainers": {
|
|
76
93
|
parameters: {
|
|
77
94
|
query?: never;
|
|
@@ -323,6 +340,15 @@ export interface components {
|
|
|
323
340
|
/** @example AAPL */
|
|
324
341
|
symbol: string;
|
|
325
342
|
};
|
|
343
|
+
/** @description An index that represents a group of stocks */
|
|
344
|
+
Index: {
|
|
345
|
+
/** @example ^GSPC */
|
|
346
|
+
symbol: string;
|
|
347
|
+
/** @example S&P 500 */
|
|
348
|
+
name: string;
|
|
349
|
+
quote: components["schemas"]["SimpleQuote"];
|
|
350
|
+
quotes: components["schemas"]["SimpleQuote"][];
|
|
351
|
+
};
|
|
326
352
|
/** @description A generic error */
|
|
327
353
|
Error: {
|
|
328
354
|
/**
|
|
@@ -488,6 +514,32 @@ export interface operations {
|
|
|
488
514
|
500: components["responses"]["InternalServerError"];
|
|
489
515
|
};
|
|
490
516
|
};
|
|
517
|
+
getIndexes: {
|
|
518
|
+
parameters: {
|
|
519
|
+
query?: {
|
|
520
|
+
/** @description The sort order of the stock quotes */
|
|
521
|
+
sortOrder?: components["schemas"]["SortOrder"];
|
|
522
|
+
/** @description The sort field of the stock quotes */
|
|
523
|
+
sortField?: components["schemas"]["SortField"];
|
|
524
|
+
};
|
|
525
|
+
header?: never;
|
|
526
|
+
path?: never;
|
|
527
|
+
cookie?: never;
|
|
528
|
+
};
|
|
529
|
+
requestBody?: never;
|
|
530
|
+
responses: {
|
|
531
|
+
/** @description Success */
|
|
532
|
+
200: {
|
|
533
|
+
headers: {
|
|
534
|
+
[name: string]: unknown;
|
|
535
|
+
};
|
|
536
|
+
content: {
|
|
537
|
+
"application/json": components["schemas"]["Index"][];
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
500: components["responses"]["InternalServerError"];
|
|
541
|
+
};
|
|
542
|
+
};
|
|
491
543
|
getMarketGainersStocks: {
|
|
492
544
|
parameters: {
|
|
493
545
|
query?: never;
|