@rivascva/dt-idl 1.1.21 → 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 +16 -15
- package/package.json +1 -1
- package/services/dt-trade-service.yaml +16 -17
- package/ts/services/dt-trade-service.ts +14 -12
- 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,28 +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;
|
|
791
796
|
/**
|
|
792
797
|
* Format: int64
|
|
793
798
|
* @example 1713398544000
|
|
794
799
|
*/
|
|
795
|
-
|
|
800
|
+
dateExecuted: number | null;
|
|
796
801
|
/**
|
|
797
802
|
* Format: int64
|
|
798
803
|
* @example 1713398544000
|
|
799
804
|
*/
|
|
800
|
-
|
|
801
|
-
};
|
|
802
|
-
/** @description A trade past order */
|
|
803
|
-
PastOrder: components["schemas"]["ActiveOrder"] & {
|
|
805
|
+
dateCreated: number;
|
|
804
806
|
/**
|
|
805
|
-
* Format:
|
|
806
|
-
* @example
|
|
807
|
+
* Format: int64
|
|
808
|
+
* @example 1713398544000
|
|
807
809
|
*/
|
|
808
|
-
|
|
810
|
+
dateUpdated: number;
|
|
809
811
|
};
|
|
810
812
|
/** @description A generic error */
|
|
811
813
|
Error: {
|
|
@@ -1011,7 +1013,7 @@ interface operations {
|
|
|
1011
1013
|
[name: string]: unknown;
|
|
1012
1014
|
};
|
|
1013
1015
|
content: {
|
|
1014
|
-
"application/json": components["schemas"]["
|
|
1016
|
+
"application/json": components["schemas"]["Order"];
|
|
1015
1017
|
};
|
|
1016
1018
|
};
|
|
1017
1019
|
400: components["responses"]["BadRequest"];
|
|
@@ -1046,10 +1048,9 @@ type User = TradeServiceSchemas['User'];
|
|
|
1046
1048
|
type Portfolio = TradeServiceSchemas['Portfolio'];
|
|
1047
1049
|
type PortfolioType = TradeServiceSchemas['PortfolioType'];
|
|
1048
1050
|
type OrderPayload = TradeServiceSchemas['OrderPayload'];
|
|
1049
|
-
type
|
|
1050
|
-
type PastOrder = TradeServiceSchemas['PastOrder'];
|
|
1051
|
+
type Order = TradeServiceSchemas['Order'];
|
|
1051
1052
|
type OrderType = TradeServiceSchemas['OrderType'];
|
|
1052
1053
|
type Holding = TradeServiceSchemas['Holding'];
|
|
1053
1054
|
type TradeServiceError = TradeServiceSchemas['Error'];
|
|
1054
1055
|
|
|
1055
|
-
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,6 +315,16 @@ 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
|
|
@@ -325,22 +335,11 @@ components:
|
|
|
325
335
|
example: 1713398544000
|
|
326
336
|
required:
|
|
327
337
|
- id
|
|
338
|
+
- finalPrice
|
|
339
|
+
- dateExecuted
|
|
328
340
|
- dateCreated
|
|
329
341
|
- dateUpdated
|
|
330
342
|
|
|
331
|
-
PastOrder:
|
|
332
|
-
description: A trade past order
|
|
333
|
-
allOf:
|
|
334
|
-
- $ref: '#/components/schemas/ActiveOrder'
|
|
335
|
-
- type: object
|
|
336
|
-
properties:
|
|
337
|
-
finalPrice:
|
|
338
|
-
type: number
|
|
339
|
-
format: double
|
|
340
|
-
example: 182.25
|
|
341
|
-
required:
|
|
342
|
-
- finalPrice
|
|
343
|
-
|
|
344
343
|
Error:
|
|
345
344
|
description: A generic error
|
|
346
345
|
properties:
|
|
@@ -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,28 +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;
|
|
179
184
|
/**
|
|
180
185
|
* Format: int64
|
|
181
186
|
* @example 1713398544000
|
|
182
187
|
*/
|
|
183
|
-
|
|
188
|
+
dateExecuted: number | null;
|
|
184
189
|
/**
|
|
185
190
|
* Format: int64
|
|
186
191
|
* @example 1713398544000
|
|
187
192
|
*/
|
|
188
|
-
|
|
189
|
-
};
|
|
190
|
-
/** @description A trade past order */
|
|
191
|
-
PastOrder: components["schemas"]["ActiveOrder"] & {
|
|
193
|
+
dateCreated: number;
|
|
192
194
|
/**
|
|
193
|
-
* Format:
|
|
194
|
-
* @example
|
|
195
|
+
* Format: int64
|
|
196
|
+
* @example 1713398544000
|
|
195
197
|
*/
|
|
196
|
-
|
|
198
|
+
dateUpdated: number;
|
|
197
199
|
};
|
|
198
200
|
/** @description A generic error */
|
|
199
201
|
Error: {
|
|
@@ -400,7 +402,7 @@ export interface operations {
|
|
|
400
402
|
[name: string]: unknown;
|
|
401
403
|
};
|
|
402
404
|
content: {
|
|
403
|
-
"application/json": components["schemas"]["
|
|
405
|
+
"application/json": components["schemas"]["Order"];
|
|
404
406
|
};
|
|
405
407
|
};
|
|
406
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'];
|