@rivascva/dt-idl 1.1.16 → 1.1.17
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 +14 -10
- package/package.json +1 -1
- package/services/dt-trade-service.yaml +16 -8
- package/ts/services/dt-trade-service.ts +11 -8
- package/ts/types/types.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -783,21 +783,24 @@ interface components {
|
|
|
783
783
|
*/
|
|
784
784
|
shares: number;
|
|
785
785
|
};
|
|
786
|
-
/** @description A trade order */
|
|
787
|
-
|
|
786
|
+
/** @description A trade active order */
|
|
787
|
+
ActiveOrder: components["schemas"]["OrderPayload"] & {
|
|
788
788
|
/** @example 123456 */
|
|
789
789
|
id: string;
|
|
790
|
-
/**
|
|
791
|
-
* Format: double
|
|
792
|
-
* @example 182.25
|
|
793
|
-
*/
|
|
794
|
-
actualPrice: number;
|
|
795
790
|
/**
|
|
796
791
|
* Format: int64
|
|
797
792
|
* @example 1713398544000
|
|
798
793
|
*/
|
|
799
794
|
dateCreated: number;
|
|
800
795
|
};
|
|
796
|
+
/** @description A trade past order */
|
|
797
|
+
PastOrder: components["schemas"]["ActiveOrder"] & {
|
|
798
|
+
/**
|
|
799
|
+
* Format: double
|
|
800
|
+
* @example 182.25
|
|
801
|
+
*/
|
|
802
|
+
finalPrice: number;
|
|
803
|
+
};
|
|
801
804
|
/** @description A generic error */
|
|
802
805
|
Error: {
|
|
803
806
|
/**
|
|
@@ -1002,7 +1005,7 @@ interface operations {
|
|
|
1002
1005
|
[name: string]: unknown;
|
|
1003
1006
|
};
|
|
1004
1007
|
content: {
|
|
1005
|
-
"application/json": components["schemas"]["
|
|
1008
|
+
"application/json": components["schemas"]["ActiveOrder"];
|
|
1006
1009
|
};
|
|
1007
1010
|
};
|
|
1008
1011
|
400: components["responses"]["BadRequest"];
|
|
@@ -1037,9 +1040,10 @@ type User = TradeServiceSchemas['User'];
|
|
|
1037
1040
|
type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
1038
1041
|
type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
1039
1042
|
type OrderPayload = TradeServiceSchemas['OrderPayload'];
|
|
1040
|
-
type
|
|
1043
|
+
type ActiveOrder = TradeServiceSchemas['ActiveOrder'];
|
|
1044
|
+
type PastOrder = TradeServiceSchemas['PastOrder'];
|
|
1041
1045
|
type OrderType = TradeServiceSchemas['OrderType'];
|
|
1042
1046
|
type Holding = TradeServiceSchemas['Holding'];
|
|
1043
1047
|
type TradeServiceError = TradeServiceSchemas['Error'];
|
|
1044
1048
|
|
|
1045
|
-
export { type FullQuote, type Holding, type MarketServiceError, type NewsArticle, type
|
|
1049
|
+
export { type ActiveOrder, type FullQuote, type Holding, type MarketServiceError, type NewsArticle, type OrderPayload, type OrderType, type PastOrder, type Portfolio, type PortfolioType, type SimpleQuote, type StockNewsArticle, type TradeServiceError, type User, createMarketServiceClient, createTradeServiceClient, isMarketServiceError, isTradeServiceError };
|
package/package.json
CHANGED
|
@@ -159,7 +159,7 @@ paths:
|
|
|
159
159
|
content:
|
|
160
160
|
application/json:
|
|
161
161
|
schema:
|
|
162
|
-
$ref: '#/components/schemas/
|
|
162
|
+
$ref: '#/components/schemas/ActiveOrder'
|
|
163
163
|
400:
|
|
164
164
|
$ref: '#/components/responses/BadRequest'
|
|
165
165
|
404:
|
|
@@ -301,8 +301,8 @@ components:
|
|
|
301
301
|
- targetPrice
|
|
302
302
|
- shares
|
|
303
303
|
|
|
304
|
-
|
|
305
|
-
description: A trade order
|
|
304
|
+
ActiveOrder:
|
|
305
|
+
description: A trade active order
|
|
306
306
|
allOf:
|
|
307
307
|
- $ref: '#/components/schemas/OrderPayload'
|
|
308
308
|
- type: object
|
|
@@ -310,19 +310,27 @@ components:
|
|
|
310
310
|
id:
|
|
311
311
|
type: string
|
|
312
312
|
example: 123456
|
|
313
|
-
actualPrice:
|
|
314
|
-
type: number
|
|
315
|
-
format: double
|
|
316
|
-
example: 182.25
|
|
317
313
|
dateCreated:
|
|
318
314
|
type: integer
|
|
319
315
|
format: int64
|
|
320
316
|
example: 1713398544000
|
|
321
317
|
required:
|
|
322
318
|
- id
|
|
323
|
-
- actualPrice
|
|
324
319
|
- dateCreated
|
|
325
320
|
|
|
321
|
+
PastOrder:
|
|
322
|
+
description: A trade past order
|
|
323
|
+
allOf:
|
|
324
|
+
- $ref: '#/components/schemas/ActiveOrder'
|
|
325
|
+
- type: object
|
|
326
|
+
properties:
|
|
327
|
+
finalPrice:
|
|
328
|
+
type: number
|
|
329
|
+
format: double
|
|
330
|
+
example: 182.25
|
|
331
|
+
required:
|
|
332
|
+
- finalPrice
|
|
333
|
+
|
|
326
334
|
Error:
|
|
327
335
|
description: A generic error
|
|
328
336
|
properties:
|
|
@@ -171,21 +171,24 @@ export interface components {
|
|
|
171
171
|
*/
|
|
172
172
|
shares: number;
|
|
173
173
|
};
|
|
174
|
-
/** @description A trade order */
|
|
175
|
-
|
|
174
|
+
/** @description A trade active order */
|
|
175
|
+
ActiveOrder: components["schemas"]["OrderPayload"] & {
|
|
176
176
|
/** @example 123456 */
|
|
177
177
|
id: string;
|
|
178
|
-
/**
|
|
179
|
-
* Format: double
|
|
180
|
-
* @example 182.25
|
|
181
|
-
*/
|
|
182
|
-
actualPrice: number;
|
|
183
178
|
/**
|
|
184
179
|
* Format: int64
|
|
185
180
|
* @example 1713398544000
|
|
186
181
|
*/
|
|
187
182
|
dateCreated: number;
|
|
188
183
|
};
|
|
184
|
+
/** @description A trade past order */
|
|
185
|
+
PastOrder: components["schemas"]["ActiveOrder"] & {
|
|
186
|
+
/**
|
|
187
|
+
* Format: double
|
|
188
|
+
* @example 182.25
|
|
189
|
+
*/
|
|
190
|
+
finalPrice: number;
|
|
191
|
+
};
|
|
189
192
|
/** @description A generic error */
|
|
190
193
|
Error: {
|
|
191
194
|
/**
|
|
@@ -391,7 +394,7 @@ export interface operations {
|
|
|
391
394
|
[name: string]: unknown;
|
|
392
395
|
};
|
|
393
396
|
content: {
|
|
394
|
-
"application/json": components["schemas"]["
|
|
397
|
+
"application/json": components["schemas"]["ActiveOrder"];
|
|
395
398
|
};
|
|
396
399
|
};
|
|
397
400
|
400: components["responses"]["BadRequest"];
|
package/ts/types/types.ts
CHANGED
|
@@ -16,7 +16,8 @@ export type User = TradeServiceSchemas['User'];
|
|
|
16
16
|
export type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
17
17
|
export type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
18
18
|
export type OrderPayload = TradeServiceSchemas['OrderPayload'];
|
|
19
|
-
export type
|
|
19
|
+
export type ActiveOrder = TradeServiceSchemas['ActiveOrder'];
|
|
20
|
+
export type PastOrder = TradeServiceSchemas['PastOrder'];
|
|
20
21
|
export type OrderType = TradeServiceSchemas['OrderType'];
|
|
21
22
|
export type Holding = TradeServiceSchemas['Holding'];
|
|
22
23
|
export type TradeServiceError = TradeServiceSchemas['Error'];
|