@rivascva/dt-idl 1.1.20 → 1.1.22
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 -13
- package/package.json +1 -1
- package/services/dt-trade-service.yaml +21 -17
- package/ts/services/dt-trade-service.ts +17 -10
- package/ts/types/types.ts +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -726,7 +726,7 @@ interface components {
|
|
|
726
726
|
*/
|
|
727
727
|
cash: number;
|
|
728
728
|
holdings: components["schemas"]["Holding"][];
|
|
729
|
-
activeOrders: components["schemas"]["
|
|
729
|
+
activeOrders: components["schemas"]["Order"][];
|
|
730
730
|
/**
|
|
731
731
|
* Format: int64
|
|
732
732
|
* @example 1713398544000
|
|
@@ -784,23 +784,30 @@ interface components {
|
|
|
784
784
|
*/
|
|
785
785
|
shares: number;
|
|
786
786
|
};
|
|
787
|
-
/** @description A trade
|
|
788
|
-
|
|
787
|
+
/** @description A trade order */
|
|
788
|
+
Order: components["schemas"]["OrderPayload"] & {
|
|
789
789
|
/** @example 123456 */
|
|
790
790
|
id: string;
|
|
791
|
+
/**
|
|
792
|
+
* Format: double
|
|
793
|
+
* @example 182.25
|
|
794
|
+
*/
|
|
795
|
+
finalPrice: number | null;
|
|
796
|
+
/**
|
|
797
|
+
* Format: int64
|
|
798
|
+
* @example 1713398544000
|
|
799
|
+
*/
|
|
800
|
+
dateExecuted: number | null;
|
|
791
801
|
/**
|
|
792
802
|
* Format: int64
|
|
793
803
|
* @example 1713398544000
|
|
794
804
|
*/
|
|
795
805
|
dateCreated: number;
|
|
796
|
-
};
|
|
797
|
-
/** @description A trade past order */
|
|
798
|
-
PastOrder: components["schemas"]["ActiveOrder"] & {
|
|
799
806
|
/**
|
|
800
|
-
* Format:
|
|
801
|
-
* @example
|
|
807
|
+
* Format: int64
|
|
808
|
+
* @example 1713398544000
|
|
802
809
|
*/
|
|
803
|
-
|
|
810
|
+
dateUpdated: number;
|
|
804
811
|
};
|
|
805
812
|
/** @description A generic error */
|
|
806
813
|
Error: {
|
|
@@ -1006,7 +1013,7 @@ interface operations {
|
|
|
1006
1013
|
[name: string]: unknown;
|
|
1007
1014
|
};
|
|
1008
1015
|
content: {
|
|
1009
|
-
"application/json": components["schemas"]["
|
|
1016
|
+
"application/json": components["schemas"]["Order"];
|
|
1010
1017
|
};
|
|
1011
1018
|
};
|
|
1012
1019
|
400: components["responses"]["BadRequest"];
|
|
@@ -1041,10 +1048,9 @@ type User = TradeServiceSchemas['User'];
|
|
|
1041
1048
|
type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
1042
1049
|
type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
1043
1050
|
type OrderPayload = TradeServiceSchemas['OrderPayload'];
|
|
1044
|
-
type
|
|
1045
|
-
type PastOrder = TradeServiceSchemas['PastOrder'];
|
|
1051
|
+
type Order = TradeServiceSchemas['Order'];
|
|
1046
1052
|
type OrderType = TradeServiceSchemas['OrderType'];
|
|
1047
1053
|
type Holding = TradeServiceSchemas['Holding'];
|
|
1048
1054
|
type TradeServiceError = TradeServiceSchemas['Error'];
|
|
1049
1055
|
|
|
1050
|
-
export { type
|
|
1056
|
+
export { type FullQuote, type Holding, type MarketServiceError, type NewsArticle, type Order, type OrderPayload, type OrderType, 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/Order'
|
|
163
163
|
400:
|
|
164
164
|
$ref: '#/components/responses/BadRequest'
|
|
165
165
|
404:
|
|
@@ -227,7 +227,7 @@ components:
|
|
|
227
227
|
activeOrders:
|
|
228
228
|
type: array
|
|
229
229
|
items:
|
|
230
|
-
$ref: '#/components/schemas/
|
|
230
|
+
$ref: '#/components/schemas/Order'
|
|
231
231
|
dateCreated:
|
|
232
232
|
type: integer
|
|
233
233
|
format: int64
|
|
@@ -306,8 +306,8 @@ components:
|
|
|
306
306
|
- targetPrice
|
|
307
307
|
- shares
|
|
308
308
|
|
|
309
|
-
|
|
310
|
-
description: A trade
|
|
309
|
+
Order:
|
|
310
|
+
description: A trade order
|
|
311
311
|
allOf:
|
|
312
312
|
- $ref: '#/components/schemas/OrderPayload'
|
|
313
313
|
- type: object
|
|
@@ -315,26 +315,30 @@ components:
|
|
|
315
315
|
id:
|
|
316
316
|
type: string
|
|
317
317
|
example: 123456
|
|
318
|
+
finalPrice:
|
|
319
|
+
type: number
|
|
320
|
+
nullable: true
|
|
321
|
+
format: double
|
|
322
|
+
example: 182.25
|
|
323
|
+
dateExecuted:
|
|
324
|
+
type: integer
|
|
325
|
+
nullable: true
|
|
326
|
+
format: int64
|
|
327
|
+
example: 1713398544000
|
|
318
328
|
dateCreated:
|
|
319
329
|
type: integer
|
|
320
330
|
format: int64
|
|
321
331
|
example: 1713398544000
|
|
332
|
+
dateUpdated:
|
|
333
|
+
type: integer
|
|
334
|
+
format: int64
|
|
335
|
+
example: 1713398544000
|
|
322
336
|
required:
|
|
323
337
|
- id
|
|
324
|
-
- dateCreated
|
|
325
|
-
|
|
326
|
-
PastOrder:
|
|
327
|
-
description: A trade past order
|
|
328
|
-
allOf:
|
|
329
|
-
- $ref: '#/components/schemas/ActiveOrder'
|
|
330
|
-
- type: object
|
|
331
|
-
properties:
|
|
332
|
-
finalPrice:
|
|
333
|
-
type: number
|
|
334
|
-
format: double
|
|
335
|
-
example: 182.25
|
|
336
|
-
required:
|
|
337
338
|
- finalPrice
|
|
339
|
+
- dateExecuted
|
|
340
|
+
- dateCreated
|
|
341
|
+
- dateUpdated
|
|
338
342
|
|
|
339
343
|
Error:
|
|
340
344
|
description: A generic error
|
|
@@ -114,7 +114,7 @@ export interface components {
|
|
|
114
114
|
*/
|
|
115
115
|
cash: number;
|
|
116
116
|
holdings: components["schemas"]["Holding"][];
|
|
117
|
-
activeOrders: components["schemas"]["
|
|
117
|
+
activeOrders: components["schemas"]["Order"][];
|
|
118
118
|
/**
|
|
119
119
|
* Format: int64
|
|
120
120
|
* @example 1713398544000
|
|
@@ -172,23 +172,30 @@ export interface components {
|
|
|
172
172
|
*/
|
|
173
173
|
shares: number;
|
|
174
174
|
};
|
|
175
|
-
/** @description A trade
|
|
176
|
-
|
|
175
|
+
/** @description A trade order */
|
|
176
|
+
Order: components["schemas"]["OrderPayload"] & {
|
|
177
177
|
/** @example 123456 */
|
|
178
178
|
id: string;
|
|
179
|
+
/**
|
|
180
|
+
* Format: double
|
|
181
|
+
* @example 182.25
|
|
182
|
+
*/
|
|
183
|
+
finalPrice: number | null;
|
|
184
|
+
/**
|
|
185
|
+
* Format: int64
|
|
186
|
+
* @example 1713398544000
|
|
187
|
+
*/
|
|
188
|
+
dateExecuted: number | null;
|
|
179
189
|
/**
|
|
180
190
|
* Format: int64
|
|
181
191
|
* @example 1713398544000
|
|
182
192
|
*/
|
|
183
193
|
dateCreated: number;
|
|
184
|
-
};
|
|
185
|
-
/** @description A trade past order */
|
|
186
|
-
PastOrder: components["schemas"]["ActiveOrder"] & {
|
|
187
194
|
/**
|
|
188
|
-
* Format:
|
|
189
|
-
* @example
|
|
195
|
+
* Format: int64
|
|
196
|
+
* @example 1713398544000
|
|
190
197
|
*/
|
|
191
|
-
|
|
198
|
+
dateUpdated: number;
|
|
192
199
|
};
|
|
193
200
|
/** @description A generic error */
|
|
194
201
|
Error: {
|
|
@@ -395,7 +402,7 @@ export interface operations {
|
|
|
395
402
|
[name: string]: unknown;
|
|
396
403
|
};
|
|
397
404
|
content: {
|
|
398
|
-
"application/json": components["schemas"]["
|
|
405
|
+
"application/json": components["schemas"]["Order"];
|
|
399
406
|
};
|
|
400
407
|
};
|
|
401
408
|
400: components["responses"]["BadRequest"];
|
package/ts/types/types.ts
CHANGED
|
@@ -16,8 +16,7 @@ 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
|
|
20
|
-
export type PastOrder = TradeServiceSchemas['PastOrder'];
|
|
19
|
+
export type Order = TradeServiceSchemas['Order'];
|
|
21
20
|
export type OrderType = TradeServiceSchemas['OrderType'];
|
|
22
21
|
export type Holding = TradeServiceSchemas['Holding'];
|
|
23
22
|
export type TradeServiceError = TradeServiceSchemas['Error'];
|