@rivascva/dt-idl 1.1.52 → 1.1.53
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 +19 -3
- package/package.json +1 -1
- package/services/dt-market-service.yaml +47 -0
- package/ts/services/dt-market-service.ts +16 -2
- package/ts/types/types.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -335,6 +335,10 @@ interface components$3 {
|
|
|
335
335
|
ErrorCode: "ERROR";
|
|
336
336
|
/** @enum {string} */
|
|
337
337
|
StockHistoryTimeframe: "MIN5" | "MIN15" | "MIN30" | "HOUR1" | "HOUR4" | "DAY1";
|
|
338
|
+
/** @enum {string} */
|
|
339
|
+
SortOrder: "ASC" | "DESC";
|
|
340
|
+
/** @enum {string} */
|
|
341
|
+
SortField: "SYMBOL" | "NAME" | "PRICE" | "PRICE_CHANGE" | "PERCENT_CHANGE";
|
|
338
342
|
};
|
|
339
343
|
responses: {
|
|
340
344
|
/** @description The resource was not found */
|
|
@@ -421,7 +425,12 @@ interface operations$3 {
|
|
|
421
425
|
};
|
|
422
426
|
getStocksBySymbols: {
|
|
423
427
|
parameters: {
|
|
424
|
-
query?:
|
|
428
|
+
query?: {
|
|
429
|
+
/** @description The sort order of the stock quotes */
|
|
430
|
+
sortOrder?: components$3["schemas"]["SortOrder"];
|
|
431
|
+
/** @description The sort field of the stock quotes */
|
|
432
|
+
sortField?: components$3["schemas"]["SortField"];
|
|
433
|
+
};
|
|
425
434
|
header?: never;
|
|
426
435
|
path: {
|
|
427
436
|
/** @description The stock symbols */
|
|
@@ -446,7 +455,12 @@ interface operations$3 {
|
|
|
446
455
|
};
|
|
447
456
|
getStocksByExchange: {
|
|
448
457
|
parameters: {
|
|
449
|
-
query?:
|
|
458
|
+
query?: {
|
|
459
|
+
/** @description The sort order of the stock quotes */
|
|
460
|
+
sortOrder?: components$3["schemas"]["SortOrder"];
|
|
461
|
+
/** @description The sort field of the stock quotes */
|
|
462
|
+
sortField?: components$3["schemas"]["SortField"];
|
|
463
|
+
};
|
|
450
464
|
header?: never;
|
|
451
465
|
path: {
|
|
452
466
|
/** @description The stock exchange */
|
|
@@ -1421,6 +1435,8 @@ type StockNewsArticle = MarketServiceSchemas['StockNewsArticle'];
|
|
|
1421
1435
|
type MarketServiceError = MarketServiceSchemas['Error'];
|
|
1422
1436
|
type StockHistoryTimeframe = MarketServiceSchemas['StockHistoryTimeframe'];
|
|
1423
1437
|
type StockHistoryEntry = MarketServiceSchemas['StockHistoryEntry'];
|
|
1438
|
+
type SortOrder = MarketServiceSchemas['SortOrder'];
|
|
1439
|
+
type SortField = MarketServiceSchemas['SortField'];
|
|
1424
1440
|
type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
1425
1441
|
type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
1426
1442
|
type AddOrderPayload = TradeServiceSchemas['AddOrderPayload'];
|
|
@@ -1438,4 +1454,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
|
|
|
1438
1454
|
type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
|
|
1439
1455
|
type AssetServiceError = AssetServiceSchemas['Error'];
|
|
1440
1456
|
|
|
1441
|
-
export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type Holding, type ImageType, type MarketServiceError, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioType, type SimpleQuote, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdateUserPayload, type UploadImagePayload, type UploadImageResponse, type User, type UserServiceError, createAssetServiceClient, createMarketServiceClient, createTradeServiceClient, createUserServiceClient, isAssetServiceError, isMarketServiceError, isTradeServiceError, isUserServiceError };
|
|
1457
|
+
export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type Holding, type ImageType, type MarketServiceError, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioType, type SimpleQuote, type SortField, type SortOrder, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdateUserPayload, type UploadImagePayload, type UploadImageResponse, type User, type UserServiceError, createAssetServiceClient, createMarketServiceClient, createTradeServiceClient, createUserServiceClient, isAssetServiceError, isMarketServiceError, isTradeServiceError, isUserServiceError };
|
package/package.json
CHANGED
|
@@ -99,6 +99,22 @@ paths:
|
|
|
99
99
|
schema:
|
|
100
100
|
type: string
|
|
101
101
|
example: AAPL,MSFT,AMZN
|
|
102
|
+
- in: query
|
|
103
|
+
name: sortOrder
|
|
104
|
+
description: The sort order of the stock quotes
|
|
105
|
+
required: false
|
|
106
|
+
schema:
|
|
107
|
+
$ref: '#/components/schemas/SortOrder'
|
|
108
|
+
example: ASC
|
|
109
|
+
default: ASC
|
|
110
|
+
- in: query
|
|
111
|
+
name: sortField
|
|
112
|
+
description: The sort field of the stock quotes
|
|
113
|
+
required: false
|
|
114
|
+
schema:
|
|
115
|
+
$ref: '#/components/schemas/SortField'
|
|
116
|
+
example: SYMBOL
|
|
117
|
+
default: SYMBOL
|
|
102
118
|
responses:
|
|
103
119
|
200:
|
|
104
120
|
description: Success
|
|
@@ -127,6 +143,22 @@ paths:
|
|
|
127
143
|
schema:
|
|
128
144
|
type: string
|
|
129
145
|
example: NYSE
|
|
146
|
+
- in: query
|
|
147
|
+
name: sortOrder
|
|
148
|
+
description: The sort order of the stock quotes
|
|
149
|
+
required: false
|
|
150
|
+
schema:
|
|
151
|
+
$ref: '#/components/schemas/SortOrder'
|
|
152
|
+
example: ASC
|
|
153
|
+
default: ASC
|
|
154
|
+
- in: query
|
|
155
|
+
name: sortField
|
|
156
|
+
description: The sort field of the stock quotes
|
|
157
|
+
required: false
|
|
158
|
+
schema:
|
|
159
|
+
$ref: '#/components/schemas/SortField'
|
|
160
|
+
example: SYMBOL
|
|
161
|
+
default: SYMBOL
|
|
130
162
|
responses:
|
|
131
163
|
200:
|
|
132
164
|
description: Success
|
|
@@ -515,6 +547,21 @@ components:
|
|
|
515
547
|
- HOUR4
|
|
516
548
|
- DAY1
|
|
517
549
|
|
|
550
|
+
SortOrder:
|
|
551
|
+
type: string
|
|
552
|
+
enum:
|
|
553
|
+
- ASC
|
|
554
|
+
- DESC
|
|
555
|
+
|
|
556
|
+
SortField:
|
|
557
|
+
type: string
|
|
558
|
+
enum:
|
|
559
|
+
- SYMBOL
|
|
560
|
+
- NAME
|
|
561
|
+
- PRICE
|
|
562
|
+
- PRICE_CHANGE
|
|
563
|
+
- PERCENT_CHANGE
|
|
564
|
+
|
|
518
565
|
responses:
|
|
519
566
|
NotFound:
|
|
520
567
|
description: The resource was not found
|
|
@@ -334,6 +334,10 @@ export interface components {
|
|
|
334
334
|
ErrorCode: "ERROR";
|
|
335
335
|
/** @enum {string} */
|
|
336
336
|
StockHistoryTimeframe: "MIN5" | "MIN15" | "MIN30" | "HOUR1" | "HOUR4" | "DAY1";
|
|
337
|
+
/** @enum {string} */
|
|
338
|
+
SortOrder: "ASC" | "DESC";
|
|
339
|
+
/** @enum {string} */
|
|
340
|
+
SortField: "SYMBOL" | "NAME" | "PRICE" | "PRICE_CHANGE" | "PERCENT_CHANGE";
|
|
337
341
|
};
|
|
338
342
|
responses: {
|
|
339
343
|
/** @description The resource was not found */
|
|
@@ -421,7 +425,12 @@ export interface operations {
|
|
|
421
425
|
};
|
|
422
426
|
getStocksBySymbols: {
|
|
423
427
|
parameters: {
|
|
424
|
-
query?:
|
|
428
|
+
query?: {
|
|
429
|
+
/** @description The sort order of the stock quotes */
|
|
430
|
+
sortOrder?: components["schemas"]["SortOrder"];
|
|
431
|
+
/** @description The sort field of the stock quotes */
|
|
432
|
+
sortField?: components["schemas"]["SortField"];
|
|
433
|
+
};
|
|
425
434
|
header?: never;
|
|
426
435
|
path: {
|
|
427
436
|
/** @description The stock symbols */
|
|
@@ -446,7 +455,12 @@ export interface operations {
|
|
|
446
455
|
};
|
|
447
456
|
getStocksByExchange: {
|
|
448
457
|
parameters: {
|
|
449
|
-
query?:
|
|
458
|
+
query?: {
|
|
459
|
+
/** @description The sort order of the stock quotes */
|
|
460
|
+
sortOrder?: components["schemas"]["SortOrder"];
|
|
461
|
+
/** @description The sort field of the stock quotes */
|
|
462
|
+
sortField?: components["schemas"]["SortField"];
|
|
463
|
+
};
|
|
450
464
|
header?: never;
|
|
451
465
|
path: {
|
|
452
466
|
/** @description The stock exchange */
|
package/ts/types/types.ts
CHANGED
|
@@ -16,6 +16,8 @@ export type StockNewsArticle = MarketServiceSchemas['StockNewsArticle'];
|
|
|
16
16
|
export type MarketServiceError = MarketServiceSchemas['Error'];
|
|
17
17
|
export type StockHistoryTimeframe = MarketServiceSchemas['StockHistoryTimeframe'];
|
|
18
18
|
export type StockHistoryEntry = MarketServiceSchemas['StockHistoryEntry'];
|
|
19
|
+
export type SortOrder = MarketServiceSchemas['SortOrder'];
|
|
20
|
+
export type SortField = MarketServiceSchemas['SortField'];
|
|
19
21
|
|
|
20
22
|
// Trade Service Types
|
|
21
23
|
export type Portfolio = TradeServiceSchemas['Portfolio'];
|