@rivascva/dt-idl 1.1.57 → 1.1.59
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 +43 -48
- package/package.json +1 -1
- package/services/dt-market-service.yaml +46 -54
- package/ts/services/dt-market-service.ts +43 -48
package/dist/index.d.ts
CHANGED
|
@@ -6,15 +6,15 @@ import { ClientOptions } from 'openapi-fetch';
|
|
|
6
6
|
* Do not make direct changes to the file.
|
|
7
7
|
*/
|
|
8
8
|
interface paths$3 {
|
|
9
|
-
"/stocks/
|
|
9
|
+
"/stocks/{symbol}": {
|
|
10
10
|
parameters: {
|
|
11
11
|
query?: never;
|
|
12
12
|
header?: never;
|
|
13
13
|
path?: never;
|
|
14
14
|
cookie?: never;
|
|
15
15
|
};
|
|
16
|
-
/** @description Gets
|
|
17
|
-
get: operations$3["
|
|
16
|
+
/** @description Gets the full quote for the given stock symbol */
|
|
17
|
+
get: operations$3["getStock"];
|
|
18
18
|
put?: never;
|
|
19
19
|
post?: never;
|
|
20
20
|
delete?: never;
|
|
@@ -23,15 +23,15 @@ interface paths$3 {
|
|
|
23
23
|
patch?: never;
|
|
24
24
|
trace?: never;
|
|
25
25
|
};
|
|
26
|
-
"/stocks/{symbol}": {
|
|
26
|
+
"/stocks/{symbol}/history": {
|
|
27
27
|
parameters: {
|
|
28
28
|
query?: never;
|
|
29
29
|
header?: never;
|
|
30
30
|
path?: never;
|
|
31
31
|
cookie?: never;
|
|
32
32
|
};
|
|
33
|
-
/** @description Gets the
|
|
34
|
-
get: operations$3["
|
|
33
|
+
/** @description Gets the price history chart for the given stock symbol */
|
|
34
|
+
get: operations$3["getStockHistory"];
|
|
35
35
|
put?: never;
|
|
36
36
|
post?: never;
|
|
37
37
|
delete?: never;
|
|
@@ -40,15 +40,15 @@ interface paths$3 {
|
|
|
40
40
|
patch?: never;
|
|
41
41
|
trace?: never;
|
|
42
42
|
};
|
|
43
|
-
"/stocks/{
|
|
43
|
+
"/stocks/by-symbols/{symbols}": {
|
|
44
44
|
parameters: {
|
|
45
45
|
query?: never;
|
|
46
46
|
header?: never;
|
|
47
47
|
path?: never;
|
|
48
48
|
cookie?: never;
|
|
49
49
|
};
|
|
50
|
-
/** @description Gets the
|
|
51
|
-
get: operations$3["
|
|
50
|
+
/** @description Gets the simple quotes for the given stock symbols */
|
|
51
|
+
get: operations$3["getStocksBySymbols"];
|
|
52
52
|
put?: never;
|
|
53
53
|
post?: never;
|
|
54
54
|
delete?: never;
|
|
@@ -57,15 +57,15 @@ interface paths$3 {
|
|
|
57
57
|
patch?: never;
|
|
58
58
|
trace?: never;
|
|
59
59
|
};
|
|
60
|
-
"/stocks/by-
|
|
60
|
+
"/stocks/by-exchange/{exchange}": {
|
|
61
61
|
parameters: {
|
|
62
62
|
query?: never;
|
|
63
63
|
header?: never;
|
|
64
64
|
path?: never;
|
|
65
65
|
cookie?: never;
|
|
66
66
|
};
|
|
67
|
-
/** @description Gets the simple quotes for the given stock
|
|
68
|
-
get: operations$3["
|
|
67
|
+
/** @description Gets the simple quotes for the given stock exchange */
|
|
68
|
+
get: operations$3["getStocksByExchange"];
|
|
69
69
|
put?: never;
|
|
70
70
|
post?: never;
|
|
71
71
|
delete?: never;
|
|
@@ -74,15 +74,15 @@ interface paths$3 {
|
|
|
74
74
|
patch?: never;
|
|
75
75
|
trace?: never;
|
|
76
76
|
};
|
|
77
|
-
"/stocks/
|
|
77
|
+
"/stocks/indexes": {
|
|
78
78
|
parameters: {
|
|
79
79
|
query?: never;
|
|
80
80
|
header?: never;
|
|
81
81
|
path?: never;
|
|
82
82
|
cookie?: never;
|
|
83
83
|
};
|
|
84
|
-
/** @description Gets
|
|
85
|
-
get: operations$3["
|
|
84
|
+
/** @description Gets all the indexes */
|
|
85
|
+
get: operations$3["getIndexes"];
|
|
86
86
|
put?: never;
|
|
87
87
|
post?: never;
|
|
88
88
|
delete?: never;
|
|
@@ -342,13 +342,8 @@ interface components$3 {
|
|
|
342
342
|
symbol: string;
|
|
343
343
|
};
|
|
344
344
|
/** @description A market index that represents a group of stocks */
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
symbol: string;
|
|
348
|
-
/** @example S&P 500 */
|
|
349
|
-
name: string;
|
|
350
|
-
quote: components$3["schemas"]["SimpleQuote"];
|
|
351
|
-
quotes: components$3["schemas"]["SimpleQuote"][];
|
|
345
|
+
Index: components$3["schemas"]["SimpleQuote"] & {
|
|
346
|
+
components: components$3["schemas"]["SimpleQuote"][];
|
|
352
347
|
};
|
|
353
348
|
/** @description A generic error */
|
|
354
349
|
Error: {
|
|
@@ -397,32 +392,6 @@ interface components$3 {
|
|
|
397
392
|
pathItems: never;
|
|
398
393
|
}
|
|
399
394
|
interface operations$3 {
|
|
400
|
-
getMarketIndexes: {
|
|
401
|
-
parameters: {
|
|
402
|
-
query?: {
|
|
403
|
-
/** @description The sort order of the stock quotes */
|
|
404
|
-
sortOrder?: components$3["schemas"]["SortOrder"];
|
|
405
|
-
/** @description The sort field of the stock quotes */
|
|
406
|
-
sortField?: components$3["schemas"]["SortField"];
|
|
407
|
-
};
|
|
408
|
-
header?: never;
|
|
409
|
-
path?: never;
|
|
410
|
-
cookie?: never;
|
|
411
|
-
};
|
|
412
|
-
requestBody?: never;
|
|
413
|
-
responses: {
|
|
414
|
-
/** @description Success */
|
|
415
|
-
200: {
|
|
416
|
-
headers: {
|
|
417
|
-
[name: string]: unknown;
|
|
418
|
-
};
|
|
419
|
-
content: {
|
|
420
|
-
"application/json": components$3["schemas"]["MarketIndex"][];
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
500: components$3["responses"]["InternalServerError"];
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
395
|
getStock: {
|
|
427
396
|
parameters: {
|
|
428
397
|
query?: never;
|
|
@@ -540,6 +509,32 @@ interface operations$3 {
|
|
|
540
509
|
500: components$3["responses"]["InternalServerError"];
|
|
541
510
|
};
|
|
542
511
|
};
|
|
512
|
+
getIndexes: {
|
|
513
|
+
parameters: {
|
|
514
|
+
query?: {
|
|
515
|
+
/** @description The sort order of the stock quotes */
|
|
516
|
+
sortOrder?: components$3["schemas"]["SortOrder"];
|
|
517
|
+
/** @description The sort field of the stock quotes */
|
|
518
|
+
sortField?: components$3["schemas"]["SortField"];
|
|
519
|
+
};
|
|
520
|
+
header?: never;
|
|
521
|
+
path?: never;
|
|
522
|
+
cookie?: never;
|
|
523
|
+
};
|
|
524
|
+
requestBody?: never;
|
|
525
|
+
responses: {
|
|
526
|
+
/** @description Success */
|
|
527
|
+
200: {
|
|
528
|
+
headers: {
|
|
529
|
+
[name: string]: unknown;
|
|
530
|
+
};
|
|
531
|
+
content: {
|
|
532
|
+
"application/json": components$3["schemas"]["Index"][];
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
500: components$3["responses"]["InternalServerError"];
|
|
536
|
+
};
|
|
537
|
+
};
|
|
543
538
|
getMarketGainersStocks: {
|
|
544
539
|
parameters: {
|
|
545
540
|
query?: never;
|
package/package.json
CHANGED
|
@@ -9,41 +9,6 @@ servers:
|
|
|
9
9
|
- url: http://localhost:8082/v1
|
|
10
10
|
|
|
11
11
|
paths:
|
|
12
|
-
/stocks/indexes:
|
|
13
|
-
get:
|
|
14
|
-
description: Gets all the market indexes
|
|
15
|
-
operationId: getMarketIndexes
|
|
16
|
-
tags:
|
|
17
|
-
- Stocks
|
|
18
|
-
parameters:
|
|
19
|
-
- in: query
|
|
20
|
-
name: sortOrder
|
|
21
|
-
description: The sort order of the stock quotes
|
|
22
|
-
required: false
|
|
23
|
-
schema:
|
|
24
|
-
$ref: '#/components/schemas/SortOrder'
|
|
25
|
-
example: DESC
|
|
26
|
-
default: DESC
|
|
27
|
-
- in: query
|
|
28
|
-
name: sortField
|
|
29
|
-
description: The sort field of the stock quotes
|
|
30
|
-
required: false
|
|
31
|
-
schema:
|
|
32
|
-
$ref: '#/components/schemas/SortField'
|
|
33
|
-
example: MARKET_CAP
|
|
34
|
-
default: MARKET_CAP
|
|
35
|
-
responses:
|
|
36
|
-
200:
|
|
37
|
-
description: Success
|
|
38
|
-
content:
|
|
39
|
-
application/json:
|
|
40
|
-
schema:
|
|
41
|
-
type: array
|
|
42
|
-
items:
|
|
43
|
-
$ref: '#/components/schemas/MarketIndex'
|
|
44
|
-
500:
|
|
45
|
-
$ref: '#/components/responses/InternalServerError'
|
|
46
|
-
|
|
47
12
|
/stocks/{symbol}:
|
|
48
13
|
get:
|
|
49
14
|
description: Gets the full quote for the given stock symbol
|
|
@@ -208,6 +173,41 @@ paths:
|
|
|
208
173
|
500:
|
|
209
174
|
$ref: '#/components/responses/InternalServerError'
|
|
210
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
|
+
|
|
211
211
|
/stocks/market/gainers:
|
|
212
212
|
get:
|
|
213
213
|
description: Gets the simple quotes for the market gainers
|
|
@@ -554,26 +554,18 @@ components:
|
|
|
554
554
|
required:
|
|
555
555
|
- symbol
|
|
556
556
|
|
|
557
|
-
|
|
557
|
+
Index:
|
|
558
558
|
description: A market index that represents a group of stocks
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
type: array
|
|
570
|
-
items:
|
|
571
|
-
$ref: '#/components/schemas/SimpleQuote'
|
|
572
|
-
required:
|
|
573
|
-
- symbol
|
|
574
|
-
- name
|
|
575
|
-
- quote
|
|
576
|
-
- quotes
|
|
559
|
+
allOf:
|
|
560
|
+
- $ref: '#/components/schemas/SimpleQuote'
|
|
561
|
+
- type: object
|
|
562
|
+
properties:
|
|
563
|
+
components:
|
|
564
|
+
type: array
|
|
565
|
+
items:
|
|
566
|
+
$ref: '#/components/schemas/SimpleQuote'
|
|
567
|
+
required:
|
|
568
|
+
- components
|
|
577
569
|
|
|
578
570
|
Error:
|
|
579
571
|
description: A generic error
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
|
-
"/stocks/
|
|
7
|
+
"/stocks/{symbol}": {
|
|
8
8
|
parameters: {
|
|
9
9
|
query?: never;
|
|
10
10
|
header?: never;
|
|
11
11
|
path?: never;
|
|
12
12
|
cookie?: never;
|
|
13
13
|
};
|
|
14
|
-
/** @description Gets
|
|
15
|
-
get: operations["
|
|
14
|
+
/** @description Gets the full quote for the given stock symbol */
|
|
15
|
+
get: operations["getStock"];
|
|
16
16
|
put?: never;
|
|
17
17
|
post?: never;
|
|
18
18
|
delete?: never;
|
|
@@ -21,15 +21,15 @@ export interface paths {
|
|
|
21
21
|
patch?: never;
|
|
22
22
|
trace?: never;
|
|
23
23
|
};
|
|
24
|
-
"/stocks/{symbol}": {
|
|
24
|
+
"/stocks/{symbol}/history": {
|
|
25
25
|
parameters: {
|
|
26
26
|
query?: never;
|
|
27
27
|
header?: never;
|
|
28
28
|
path?: never;
|
|
29
29
|
cookie?: never;
|
|
30
30
|
};
|
|
31
|
-
/** @description Gets the
|
|
32
|
-
get: operations["
|
|
31
|
+
/** @description Gets the price history chart for the given stock symbol */
|
|
32
|
+
get: operations["getStockHistory"];
|
|
33
33
|
put?: never;
|
|
34
34
|
post?: never;
|
|
35
35
|
delete?: never;
|
|
@@ -38,15 +38,15 @@ export interface paths {
|
|
|
38
38
|
patch?: never;
|
|
39
39
|
trace?: never;
|
|
40
40
|
};
|
|
41
|
-
"/stocks/{
|
|
41
|
+
"/stocks/by-symbols/{symbols}": {
|
|
42
42
|
parameters: {
|
|
43
43
|
query?: never;
|
|
44
44
|
header?: never;
|
|
45
45
|
path?: never;
|
|
46
46
|
cookie?: never;
|
|
47
47
|
};
|
|
48
|
-
/** @description Gets the
|
|
49
|
-
get: operations["
|
|
48
|
+
/** @description Gets the simple quotes for the given stock symbols */
|
|
49
|
+
get: operations["getStocksBySymbols"];
|
|
50
50
|
put?: never;
|
|
51
51
|
post?: never;
|
|
52
52
|
delete?: never;
|
|
@@ -55,15 +55,15 @@ export interface paths {
|
|
|
55
55
|
patch?: never;
|
|
56
56
|
trace?: never;
|
|
57
57
|
};
|
|
58
|
-
"/stocks/by-
|
|
58
|
+
"/stocks/by-exchange/{exchange}": {
|
|
59
59
|
parameters: {
|
|
60
60
|
query?: never;
|
|
61
61
|
header?: never;
|
|
62
62
|
path?: never;
|
|
63
63
|
cookie?: never;
|
|
64
64
|
};
|
|
65
|
-
/** @description Gets the simple quotes for the given stock
|
|
66
|
-
get: operations["
|
|
65
|
+
/** @description Gets the simple quotes for the given stock exchange */
|
|
66
|
+
get: operations["getStocksByExchange"];
|
|
67
67
|
put?: never;
|
|
68
68
|
post?: never;
|
|
69
69
|
delete?: never;
|
|
@@ -72,15 +72,15 @@ export interface paths {
|
|
|
72
72
|
patch?: never;
|
|
73
73
|
trace?: never;
|
|
74
74
|
};
|
|
75
|
-
"/stocks/
|
|
75
|
+
"/stocks/indexes": {
|
|
76
76
|
parameters: {
|
|
77
77
|
query?: never;
|
|
78
78
|
header?: never;
|
|
79
79
|
path?: never;
|
|
80
80
|
cookie?: never;
|
|
81
81
|
};
|
|
82
|
-
/** @description Gets
|
|
83
|
-
get: operations["
|
|
82
|
+
/** @description Gets all the indexes */
|
|
83
|
+
get: operations["getIndexes"];
|
|
84
84
|
put?: never;
|
|
85
85
|
post?: never;
|
|
86
86
|
delete?: never;
|
|
@@ -341,13 +341,8 @@ export interface components {
|
|
|
341
341
|
symbol: string;
|
|
342
342
|
};
|
|
343
343
|
/** @description A market index that represents a group of stocks */
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
symbol: string;
|
|
347
|
-
/** @example S&P 500 */
|
|
348
|
-
name: string;
|
|
349
|
-
quote: components["schemas"]["SimpleQuote"];
|
|
350
|
-
quotes: components["schemas"]["SimpleQuote"][];
|
|
344
|
+
Index: components["schemas"]["SimpleQuote"] & {
|
|
345
|
+
components: components["schemas"]["SimpleQuote"][];
|
|
351
346
|
};
|
|
352
347
|
/** @description A generic error */
|
|
353
348
|
Error: {
|
|
@@ -397,32 +392,6 @@ export interface components {
|
|
|
397
392
|
}
|
|
398
393
|
export type $defs = Record<string, never>;
|
|
399
394
|
export interface operations {
|
|
400
|
-
getMarketIndexes: {
|
|
401
|
-
parameters: {
|
|
402
|
-
query?: {
|
|
403
|
-
/** @description The sort order of the stock quotes */
|
|
404
|
-
sortOrder?: components["schemas"]["SortOrder"];
|
|
405
|
-
/** @description The sort field of the stock quotes */
|
|
406
|
-
sortField?: components["schemas"]["SortField"];
|
|
407
|
-
};
|
|
408
|
-
header?: never;
|
|
409
|
-
path?: never;
|
|
410
|
-
cookie?: never;
|
|
411
|
-
};
|
|
412
|
-
requestBody?: never;
|
|
413
|
-
responses: {
|
|
414
|
-
/** @description Success */
|
|
415
|
-
200: {
|
|
416
|
-
headers: {
|
|
417
|
-
[name: string]: unknown;
|
|
418
|
-
};
|
|
419
|
-
content: {
|
|
420
|
-
"application/json": components["schemas"]["MarketIndex"][];
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
500: components["responses"]["InternalServerError"];
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
395
|
getStock: {
|
|
427
396
|
parameters: {
|
|
428
397
|
query?: never;
|
|
@@ -540,6 +509,32 @@ export interface operations {
|
|
|
540
509
|
500: components["responses"]["InternalServerError"];
|
|
541
510
|
};
|
|
542
511
|
};
|
|
512
|
+
getIndexes: {
|
|
513
|
+
parameters: {
|
|
514
|
+
query?: {
|
|
515
|
+
/** @description The sort order of the stock quotes */
|
|
516
|
+
sortOrder?: components["schemas"]["SortOrder"];
|
|
517
|
+
/** @description The sort field of the stock quotes */
|
|
518
|
+
sortField?: components["schemas"]["SortField"];
|
|
519
|
+
};
|
|
520
|
+
header?: never;
|
|
521
|
+
path?: never;
|
|
522
|
+
cookie?: never;
|
|
523
|
+
};
|
|
524
|
+
requestBody?: never;
|
|
525
|
+
responses: {
|
|
526
|
+
/** @description Success */
|
|
527
|
+
200: {
|
|
528
|
+
headers: {
|
|
529
|
+
[name: string]: unknown;
|
|
530
|
+
};
|
|
531
|
+
content: {
|
|
532
|
+
"application/json": components["schemas"]["Index"][];
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
500: components["responses"]["InternalServerError"];
|
|
536
|
+
};
|
|
537
|
+
};
|
|
543
538
|
getMarketGainersStocks: {
|
|
544
539
|
parameters: {
|
|
545
540
|
query?: never;
|