adaptic-backend 1.0.191 → 1.0.192
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/generated/typeStrings/Action.cjs +0 -120
- package/generated/typeStrings/Action.d.ts +1 -1
- package/generated/typeStrings/Action.d.ts.map +1 -1
- package/generated/typeStrings/Action.js.map +1 -1
- package/generated/typeStrings/AlpacaAccount.cjs +2 -58
- package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/generated/typeStrings/AlpacaAccount.js.map +1 -1
- package/generated/typeStrings/Customer.cjs +1 -107
- package/generated/typeStrings/Customer.d.ts +1 -1
- package/generated/typeStrings/Customer.d.ts.map +1 -1
- package/generated/typeStrings/Customer.js.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.cjs +0 -27
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
- package/generated/typeStrings/Order.cjs +18 -45
- package/generated/typeStrings/Order.d.ts +1 -1
- package/generated/typeStrings/Order.d.ts.map +1 -1
- package/generated/typeStrings/Order.js.map +1 -1
- package/generated/typeStrings/Position.cjs +0 -27
- package/generated/typeStrings/Position.d.ts +1 -1
- package/generated/typeStrings/Position.d.ts.map +1 -1
- package/generated/typeStrings/Position.js.map +1 -1
- package/generated/typeStrings/Session.cjs +1 -122
- package/generated/typeStrings/Session.d.ts +1 -1
- package/generated/typeStrings/Session.d.ts.map +1 -1
- package/generated/typeStrings/Session.js.map +1 -1
- package/generated/typeStrings/StopLoss.cjs +0 -144
- package/generated/typeStrings/StopLoss.d.ts +1 -1
- package/generated/typeStrings/StopLoss.d.ts.map +1 -1
- package/generated/typeStrings/StopLoss.js.map +1 -1
- package/generated/typeStrings/TakeProfit.cjs +0 -144
- package/generated/typeStrings/TakeProfit.d.ts +1 -1
- package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
- package/generated/typeStrings/TakeProfit.js.map +1 -1
- package/generated/typeStrings/Trade.cjs +1 -172
- package/generated/typeStrings/Trade.d.ts +1 -1
- package/generated/typeStrings/Trade.d.ts.map +1 -1
- package/generated/typeStrings/Trade.js.map +1 -1
- package/generated/typeStrings/User.cjs +2 -71
- package/generated/typeStrings/User.d.ts +1 -1
- package/generated/typeStrings/User.d.ts.map +1 -1
- package/generated/typeStrings/User.js.map +1 -1
- package/generated/typeStrings/index.d.ts +11 -11
- package/generated/typegraphql-prisma/models/Order.cjs +17 -17
- package/generated/typegraphql-prisma/models/Order.d.ts +20 -20
- package/generated/typegraphql-prisma/models/Order.js.map +1 -1
- package/generated/typegraphql-prisma/models/StopLoss.cjs +1 -1
- package/generated/typegraphql-prisma/models/StopLoss.d.ts +2 -2
- package/generated/typegraphql-prisma/models/StopLoss.js.map +1 -1
- package/generated/typegraphql-prisma/models/TakeProfit.cjs +1 -1
- package/generated/typegraphql-prisma/models/TakeProfit.d.ts +2 -2
- package/generated/typegraphql-prisma/models/TakeProfit.js.map +1 -1
- package/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.cjs +3 -3
- package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
- package/package.json +1 -1
- package/server/generated/typeStrings/Action.d.ts +1 -1
- package/server/generated/typeStrings/Action.d.ts.map +1 -1
- package/server/generated/typeStrings/Action.js.map +1 -1
- package/server/generated/typeStrings/Action.mjs +0 -120
- package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.mjs +2 -58
- package/server/generated/typeStrings/Customer.d.ts +1 -1
- package/server/generated/typeStrings/Customer.d.ts.map +1 -1
- package/server/generated/typeStrings/Customer.js.map +1 -1
- package/server/generated/typeStrings/Customer.mjs +1 -107
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +0 -27
- package/server/generated/typeStrings/Order.d.ts +1 -1
- package/server/generated/typeStrings/Order.d.ts.map +1 -1
- package/server/generated/typeStrings/Order.js.map +1 -1
- package/server/generated/typeStrings/Order.mjs +18 -45
- package/server/generated/typeStrings/Position.d.ts +1 -1
- package/server/generated/typeStrings/Position.d.ts.map +1 -1
- package/server/generated/typeStrings/Position.js.map +1 -1
- package/server/generated/typeStrings/Position.mjs +0 -27
- package/server/generated/typeStrings/Session.d.ts +1 -1
- package/server/generated/typeStrings/Session.d.ts.map +1 -1
- package/server/generated/typeStrings/Session.js.map +1 -1
- package/server/generated/typeStrings/Session.mjs +1 -122
- package/server/generated/typeStrings/StopLoss.d.ts +1 -1
- package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
- package/server/generated/typeStrings/StopLoss.js.map +1 -1
- package/server/generated/typeStrings/StopLoss.mjs +0 -144
- package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
- package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
- package/server/generated/typeStrings/TakeProfit.js.map +1 -1
- package/server/generated/typeStrings/TakeProfit.mjs +0 -144
- package/server/generated/typeStrings/Trade.d.ts +1 -1
- package/server/generated/typeStrings/Trade.d.ts.map +1 -1
- package/server/generated/typeStrings/Trade.js.map +1 -1
- package/server/generated/typeStrings/Trade.mjs +1 -172
- package/server/generated/typeStrings/User.d.ts +1 -1
- package/server/generated/typeStrings/User.d.ts.map +1 -1
- package/server/generated/typeStrings/User.js.map +1 -1
- package/server/generated/typeStrings/User.mjs +2 -71
- package/server/generated/typeStrings/index.d.ts +11 -11
- package/server/generated/typegraphql-prisma/models/Order.d.ts +20 -20
- package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/Order.mjs +37 -37
- package/server/generated/typegraphql-prisma/models/StopLoss.d.ts +2 -2
- package/server/generated/typegraphql-prisma/models/StopLoss.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/StopLoss.mjs +3 -3
- package/server/generated/typegraphql-prisma/models/TakeProfit.d.ts +2 -2
- package/server/generated/typegraphql-prisma/models/TakeProfit.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/TakeProfit.mjs +3 -3
- package/server/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
- package/server/generated/typegraphql-prisma/models/Trade.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.mjs +3 -3
- package/server/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +1 -1
@@ -53,7 +53,7 @@ __decorate([
|
|
53
53
|
__decorate([
|
54
54
|
TypeGraphQL.Field(_type => String, {
|
55
55
|
nullable: true,
|
56
|
-
description: "
|
56
|
+
description: "Optional client-supplied unique identifier for the order. If not provided, Alpaca will auto-generate one. Required when canceling or replacing an existing order."
|
57
57
|
}),
|
58
58
|
__metadata("design:type", Object)
|
59
59
|
], Order.prototype, "clientOrderId", void 0);
|
@@ -74,77 +74,77 @@ __decorate([
|
|
74
74
|
__decorate([
|
75
75
|
TypeGraphQL.Field(_type => TypeGraphQL.Float, {
|
76
76
|
nullable: true,
|
77
|
-
description: "Quantity of the asset to be ordered."
|
77
|
+
description: "Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional."
|
78
78
|
}),
|
79
79
|
__metadata("design:type", Object)
|
80
80
|
], Order.prototype, "qty", void 0);
|
81
81
|
__decorate([
|
82
82
|
TypeGraphQL.Field(_type => TypeGraphQL.Float, {
|
83
83
|
nullable: true,
|
84
|
-
description: "Notional
|
84
|
+
description: "Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'."
|
85
85
|
}),
|
86
86
|
__metadata("design:type", Object)
|
87
87
|
], Order.prototype, "notional", void 0);
|
88
88
|
__decorate([
|
89
89
|
TypeGraphQL.Field(_type => OrderSide_1.OrderSide, {
|
90
90
|
nullable: false,
|
91
|
-
description: "Side of the order (BUY or SELL)."
|
91
|
+
description: "Side of the order ('BUY' or 'SELL')."
|
92
92
|
}),
|
93
93
|
__metadata("design:type", String)
|
94
94
|
], Order.prototype, "side", void 0);
|
95
95
|
__decorate([
|
96
96
|
TypeGraphQL.Field(_type => OrderType_1.OrderType, {
|
97
97
|
nullable: false,
|
98
|
-
description: "Type of order (
|
98
|
+
description: "Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP')."
|
99
99
|
}),
|
100
100
|
__metadata("design:type", String)
|
101
101
|
], Order.prototype, "type", void 0);
|
102
102
|
__decorate([
|
103
103
|
TypeGraphQL.Field(_type => OrderClass_1.OrderClass, {
|
104
104
|
nullable: false,
|
105
|
-
description: "Order class for advanced order types
|
105
|
+
description: "Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required."
|
106
106
|
}),
|
107
107
|
__metadata("design:type", String)
|
108
108
|
], Order.prototype, "orderClass", void 0);
|
109
109
|
__decorate([
|
110
110
|
TypeGraphQL.Field(_type => TimeInForce_1.TimeInForce, {
|
111
111
|
nullable: false,
|
112
|
-
description: "Time in force for the order (
|
112
|
+
description: "Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK')."
|
113
113
|
}),
|
114
114
|
__metadata("design:type", String)
|
115
115
|
], Order.prototype, "timeInForce", void 0);
|
116
116
|
__decorate([
|
117
117
|
TypeGraphQL.Field(_type => TypeGraphQL.Float, {
|
118
118
|
nullable: true,
|
119
|
-
description: "Must be a positive number
|
119
|
+
description: "Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept."
|
120
120
|
}),
|
121
121
|
__metadata("design:type", Object)
|
122
122
|
], Order.prototype, "limitPrice", void 0);
|
123
123
|
__decorate([
|
124
124
|
TypeGraphQL.Field(_type => TypeGraphQL.Float, {
|
125
125
|
nullable: true,
|
126
|
-
description: "Must be a positive number
|
126
|
+
description: "Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'."
|
127
127
|
}),
|
128
128
|
__metadata("design:type", Object)
|
129
129
|
], Order.prototype, "stopPrice", void 0);
|
130
130
|
__decorate([
|
131
131
|
TypeGraphQL.Field(_type => TypeGraphQL.Float, {
|
132
132
|
nullable: true,
|
133
|
-
description: "Must be a positive number
|
133
|
+
description: "Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'."
|
134
134
|
}),
|
135
135
|
__metadata("design:type", Object)
|
136
136
|
], Order.prototype, "trailPrice", void 0);
|
137
137
|
__decorate([
|
138
138
|
TypeGraphQL.Field(_type => TypeGraphQL.Float, {
|
139
139
|
nullable: true,
|
140
|
-
description: "Must be a positive number
|
140
|
+
description: "Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'."
|
141
141
|
}),
|
142
142
|
__metadata("design:type", Object)
|
143
143
|
], Order.prototype, "trailPercent", void 0);
|
144
144
|
__decorate([
|
145
145
|
TypeGraphQL.Field(_type => Boolean, {
|
146
146
|
nullable: true,
|
147
|
-
description: "Whether the order is eligible for
|
147
|
+
description: "Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false."
|
148
148
|
}),
|
149
149
|
__metadata("design:type", Object)
|
150
150
|
], Order.prototype, "extendedHours", void 0);
|
@@ -200,14 +200,14 @@ __decorate([
|
|
200
200
|
__decorate([
|
201
201
|
TypeGraphQL.Field(_type => Date, {
|
202
202
|
nullable: true,
|
203
|
-
description: "
|
203
|
+
description: "Timestamp when the request to cancel the order was made."
|
204
204
|
}),
|
205
205
|
__metadata("design:type", Object)
|
206
206
|
], Order.prototype, "cancelRequestedAt", void 0);
|
207
207
|
__decorate([
|
208
208
|
TypeGraphQL.Field(_type => Date, {
|
209
209
|
nullable: true,
|
210
|
-
description: "
|
210
|
+
description: "Timestamp when the order was canceled."
|
211
211
|
}),
|
212
212
|
__metadata("design:type", Object)
|
213
213
|
], Order.prototype, "canceledAt", void 0);
|
@@ -228,21 +228,21 @@ __decorate([
|
|
228
228
|
__decorate([
|
229
229
|
TypeGraphQL.Field(_type => TypeGraphQL.Float, {
|
230
230
|
nullable: true,
|
231
|
-
description: "Strike price for option orders."
|
231
|
+
description: "Strike price for option orders. Required when 'asset.type' is 'OPTION'."
|
232
232
|
}),
|
233
233
|
__metadata("design:type", Object)
|
234
234
|
], Order.prototype, "strikePrice", void 0);
|
235
235
|
__decorate([
|
236
236
|
TypeGraphQL.Field(_type => Date, {
|
237
237
|
nullable: true,
|
238
|
-
description: "Expiration date for option orders."
|
238
|
+
description: "Expiration date for option orders. Required when 'asset.type' is 'OPTION'."
|
239
239
|
}),
|
240
240
|
__metadata("design:type", Object)
|
241
241
|
], Order.prototype, "expirationDate", void 0);
|
242
242
|
__decorate([
|
243
243
|
TypeGraphQL.Field(_type => OptionType_1.OptionType, {
|
244
244
|
nullable: true,
|
245
|
-
description: "
|
245
|
+
description: "Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'."
|
246
246
|
}),
|
247
247
|
__metadata("design:type", Object)
|
248
248
|
], Order.prototype, "optionType", void 0);
|
@@ -9,7 +9,7 @@ export declare class Order {
|
|
9
9
|
*/
|
10
10
|
id: string;
|
11
11
|
/**
|
12
|
-
*
|
12
|
+
* Optional client-supplied unique identifier for the order. If not provided, Alpaca will auto-generate one. Required when canceling or replacing an existing order.
|
13
13
|
*/
|
14
14
|
clientOrderId?: string | null;
|
15
15
|
/**
|
@@ -21,55 +21,55 @@ export declare class Order {
|
|
21
21
|
*/
|
22
22
|
assetId: string;
|
23
23
|
/**
|
24
|
-
* Quantity of the asset to be ordered.
|
24
|
+
* Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.
|
25
25
|
*/
|
26
26
|
qty?: number | null;
|
27
27
|
/**
|
28
|
-
* Notional
|
28
|
+
* Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.
|
29
29
|
*/
|
30
30
|
notional?: number | null;
|
31
31
|
/**
|
32
|
-
* Side of the order (BUY or SELL).
|
32
|
+
* Side of the order ('BUY' or 'SELL').
|
33
33
|
*/
|
34
34
|
side: "BUY" | "SELL";
|
35
35
|
/**
|
36
|
-
* Type of order (
|
36
|
+
* Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').
|
37
37
|
*/
|
38
38
|
type: "MARKET" | "LIMIT" | "STOP" | "STOP_LIMIT" | "TRAILING_STOP";
|
39
39
|
/**
|
40
|
-
* Order class for advanced order types
|
40
|
+
* Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.
|
41
41
|
*/
|
42
42
|
orderClass: "SIMPLE" | "BRACKET" | "OCO" | "OSO" | "OTO";
|
43
43
|
/**
|
44
|
-
* Time in force for the order (
|
44
|
+
* Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').
|
45
45
|
*/
|
46
46
|
timeInForce: "DAY" | "GTC" | "OPG" | "CLS" | "IOC" | "FOK";
|
47
47
|
/**
|
48
|
-
* Must be a positive number
|
48
|
+
* Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.
|
49
49
|
*/
|
50
50
|
limitPrice?: number | null;
|
51
51
|
/**
|
52
|
-
* Must be a positive number
|
52
|
+
* Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.
|
53
53
|
*/
|
54
54
|
stopPrice?: number | null;
|
55
55
|
/**
|
56
|
-
* Stop loss object
|
56
|
+
* Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.
|
57
57
|
*/
|
58
58
|
stopLoss?: StopLoss | null;
|
59
59
|
/**
|
60
|
-
* Take profit object
|
60
|
+
* Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.
|
61
61
|
*/
|
62
62
|
takeProfit?: TakeProfit | null;
|
63
63
|
/**
|
64
|
-
* Must be a positive number
|
64
|
+
* Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.
|
65
65
|
*/
|
66
66
|
trailPrice?: number | null;
|
67
67
|
/**
|
68
|
-
* Must be a positive number
|
68
|
+
* Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.
|
69
69
|
*/
|
70
70
|
trailPercent?: number | null;
|
71
71
|
/**
|
72
|
-
* Whether the order is eligible for
|
72
|
+
* Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.
|
73
73
|
*/
|
74
74
|
extendedHours?: boolean | null;
|
75
75
|
/**
|
@@ -101,11 +101,11 @@ export declare class Order {
|
|
101
101
|
*/
|
102
102
|
filledAvgPrice?: number | null;
|
103
103
|
/**
|
104
|
-
*
|
104
|
+
* Timestamp when the request to cancel the order was made.
|
105
105
|
*/
|
106
106
|
cancelRequestedAt?: Date | null;
|
107
107
|
/**
|
108
|
-
*
|
108
|
+
* Timestamp when the order was canceled.
|
109
109
|
*/
|
110
110
|
canceledAt?: Date | null;
|
111
111
|
/**
|
@@ -113,7 +113,7 @@ export declare class Order {
|
|
113
113
|
*/
|
114
114
|
actionId?: string | null;
|
115
115
|
/**
|
116
|
-
* The Alpaca account this order is associated with. TYPESTRING.SKIP=true
|
116
|
+
* The Alpaca account this order is associated with. TYPESTRING.SKIP=true GQL.EXCLUDE=['trades', 'orders', 'positions', 'user']
|
117
117
|
*/
|
118
118
|
alpacaAccount?: AlpacaAccount;
|
119
119
|
/**
|
@@ -129,15 +129,15 @@ export declare class Order {
|
|
129
129
|
*/
|
130
130
|
fee?: number | null;
|
131
131
|
/**
|
132
|
-
* Strike price for option orders.
|
132
|
+
* Strike price for option orders. Required when 'asset.type' is 'OPTION'.
|
133
133
|
*/
|
134
134
|
strikePrice?: number | null;
|
135
135
|
/**
|
136
|
-
* Expiration date for option orders.
|
136
|
+
* Expiration date for option orders. Required when 'asset.type' is 'OPTION'.
|
137
137
|
*/
|
138
138
|
expirationDate?: Date | null;
|
139
139
|
/**
|
140
|
-
*
|
140
|
+
* Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.
|
141
141
|
*/
|
142
142
|
optionType?: "CALL" | "PUT" | null;
|
143
143
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../../src/generated/typegraphql-prisma/models/Order.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAS5C,oDAAiD;AACjD,oDAAiD;AACjD,kDAA+C;AAC/C,sDAAmD;AACnD,kDAA+C;AAC/C,sDAAmD;AAG5C,IAAM,KAAK,GAAX,MAAM,KAAK;CAgTjB,CAAA;AAhTY,sBAAK;AAQhB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,uDAAuD;KACrE,CAAC;;iCACU;AASZ;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,IAA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d,WAAW,EAAE,qFAAqF;KACnG,CAAC;;2CAC2B;gBA/SlB,KAAK;IADjB,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;GACvB,KAAK,CAgTjB"}
|
@@ -75,7 +75,7 @@ __decorate([
|
|
75
75
|
__decorate([
|
76
76
|
TypeGraphQL.Field(_type => String, {
|
77
77
|
nullable: false,
|
78
|
-
description: "Reference to the order associated with this stop loss."
|
78
|
+
description: "Reference to the order associated with this stop loss. TYPESTRING.SKIP=true"
|
79
79
|
}),
|
80
80
|
__metadata("design:type", String)
|
81
81
|
], StopLoss.prototype, "orderId", void 0);
|
@@ -21,11 +21,11 @@ export declare class StopLoss {
|
|
21
21
|
*/
|
22
22
|
updatedAt: Date;
|
23
23
|
/**
|
24
|
-
* Reference to the order associated with this stop loss.
|
24
|
+
* Reference to the order associated with this stop loss. TYPESTRING.SKIP=true
|
25
25
|
*/
|
26
26
|
orderId: string;
|
27
27
|
/**
|
28
|
-
* An order that is associated with this stop loss. GQL.SKIP=true
|
28
|
+
* An order that is associated with this stop loss. TYPESTRING.SKIP=true GQL.SKIP=true
|
29
29
|
*/
|
30
30
|
Order?: Order;
|
31
31
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StopLoss.js","sourceRoot":"","sources":["../../../../src/generated/typegraphql-prisma/models/StopLoss.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAOrC,IAAM,QAAQ,GAAd,MAAM,QAAQ;CA2DpB,CAAA;AA3DY,4BAAQ;AAQnB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,iEAAiE;KAC/E,CAAC;;oCACU;AASZ;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE;QAC7C,QAAQ,EAAE,IA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AAK,EAAE;QAC7C,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,0JAA0J;KACxK,CAAC;;4CACyB;AAS3B;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE;QAChC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,sEAAsE;KACpF,CAAC;8BACU,IAAI;2CAAC;AASjB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE;QAChC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,2EAA2E;KACzF,CAAC;8BACU,IAAI;2CAAC;AASjB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6EAA6E;KAC3F,CAAC;;yCACe;mBArDN,QAAQ;IADpB,WAAW,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC;GAC1B,QAAQ,CA2DpB"}
|
@@ -75,7 +75,7 @@ __decorate([
|
|
75
75
|
__decorate([
|
76
76
|
TypeGraphQL.Field(_type => String, {
|
77
77
|
nullable: false,
|
78
|
-
description: "Reference to the order associated with this take profit."
|
78
|
+
description: "Reference to the order associated with this take profit. TYPESTRING.SKIP=true"
|
79
79
|
}),
|
80
80
|
__metadata("design:type", String)
|
81
81
|
], TakeProfit.prototype, "orderId", void 0);
|
@@ -21,11 +21,11 @@ export declare class TakeProfit {
|
|
21
21
|
*/
|
22
22
|
updatedAt: Date;
|
23
23
|
/**
|
24
|
-
* Reference to the order associated with this take profit.
|
24
|
+
* Reference to the order associated with this take profit. TYPESTRING.SKIP=true
|
25
25
|
*/
|
26
26
|
orderId: string;
|
27
27
|
/**
|
28
|
-
* An order that is associated with this take profit. GQL.SKIP=true
|
28
|
+
* An order that is associated with this take profit. TYPESTRING.SKIP=true GQL.SKIP=true
|
29
29
|
*/
|
30
30
|
Order?: Order;
|
31
31
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TakeProfit.js","sourceRoot":"","sources":["../../../../src/generated/typegraphql-prisma/models/TakeProfit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAOrC,IAAM,UAAU,GAAhB,MAAM,UAAU;CA2DtB,CAAA;AA3DY,gCAAU;AAQrB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,mEAAmE;KACjF,CAAC;;sCACU;AASZ;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE;QAC7C,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,mNAAmN;KACjO,CAAC;;8CACyB;AAS3B;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE;QAC7C,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,wJAAwJ;KACtK,CAAC;;6CACwB;AAS1B;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE;QAChC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,wEAAwE;KACtF,CAAC;8BACU,IAAI;6CAAC;AASjB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE;QAChC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6EAA6E;KAC3F,CAAC;8BACU,IAAI;6CAAC;AASjB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE
|
1
|
+
{"version":3,"file":"TakeProfit.js","sourceRoot":"","sources":["../../../../src/generated/typegraphql-prisma/models/TakeProfit.ts"],"names":[],"mappings":";;;;;;;;;;;;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UDE=[\"id\",\"sequence\",\"type\",\"note\",\"status\"
|
79
|
+
* List of actions associated with this trade. TYPESTRING.INCLUDE=[\"id\",\"sequence\",\"type\",\"note\",\"status\"] GQL.EXCLUDE=['trade']
|
80
80
|
*/
|
81
81
|
actions?: Action[];
|
82
82
|
_count?: TradeCount | null;
|
@@ -106,7 +106,7 @@ exports.OrderRelationsResolver = OrderRelationsResolver;
|
|
106
106
|
__decorate([
|
107
107
|
TypeGraphQL.FieldResolver(_type => StopLoss_1.StopLoss, {
|
108
108
|
nullable: true,
|
109
|
-
description: "Stop loss object
|
109
|
+
description: "Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'."
|
110
110
|
}),
|
111
111
|
__param(0, TypeGraphQL.Root()),
|
112
112
|
__param(1, TypeGraphQL.Ctx()),
|
@@ -119,7 +119,7 @@ __decorate([
|
|
119
119
|
__decorate([
|
120
120
|
TypeGraphQL.FieldResolver(_type => TakeProfit_1.TakeProfit, {
|
121
121
|
nullable: true,
|
122
|
-
description: "Take profit object
|
122
|
+
description: "Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'."
|
123
123
|
}),
|
124
124
|
__param(0, TypeGraphQL.Root()),
|
125
125
|
__param(1, TypeGraphQL.Ctx()),
|
@@ -132,7 +132,7 @@ __decorate([
|
|
132
132
|
__decorate([
|
133
133
|
TypeGraphQL.FieldResolver(_type => AlpacaAccount_1.AlpacaAccount, {
|
134
134
|
nullable: false,
|
135
|
-
description: "The Alpaca account this order is associated with. TYPESTRING.SKIP=true
|
135
|
+
description: "The Alpaca account this order is associated with. TYPESTRING.SKIP=true GQL.EXCLUDE=['trades', 'orders', 'positions', 'user']"
|
136
136
|
}),
|
137
137
|
__param(0, TypeGraphQL.Root()),
|
138
138
|
__param(1, TypeGraphQL.Ctx()),
|
package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"OrderRelationsResolver.js","sourceRoot":"","sources":["../../../../../../src/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,mDAAgD;AAChD,iEAA8D;AAC9D,iDAA8C;AAC9C,iDAA8C;AAC9C,uDAAoD;AACpD,2DAAwD;AACxD,4DAAyD;AACzD,gEAA6D;AAC7D,oEAAiE;AACjE,8CAAkI;AAG3H,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAK3B,AAAN,KAAK,CAAC,QAAQ,CAAqB,KAAY,EAAqB,GAAQ,EAAsB,IAAwB,EAAsB,IAAuB;QACrK,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC;QACrD,OAAO,IAAA,8BAAoB,EAAC,GAAG,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;YACvD,KAAK,EAAE;gBACL,EAAE,EAAE,KAAK,CAAC,EAAE;aACb;SACF,CAAC,CAAC,QAAQ,CAAC;YACV,GAAG,IAAI;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;IAMK,AAAN,KAAK,CAAC,UAAU,CAAqB,KAAY,EAAqB,GAAQ,EAAsB,IAAwB,EAAsB,IAAyB;QACzK,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC;QACrD,OAAO,IAAA,8BAAoB,EAAC,GAAG,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;YACvD,KAAK,EAAE;gBACL,EAAE,EAAE,KAAK,CAAC,EAAE;aACb;SACF,CAAC,CAAC,UAAU,CAAC;YACZ,GAAG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b;SACF,CAAC,CAAC,KAAK,CAAC;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA9EY,wDAAsB;AAK3B;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,mBAAQ,EAAE;QAC5C,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE
|
1
|
+
{"version":3,"file":"OrderRelationsResolver.js","sourceRoot":"","sources":["../../../../../../src/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,mDAAgD;AAChD,iEAA8D;AAC9D,iDAA8C;AAC9C,iDAA8C;AAC9C,uDAAoD;AACpD,2DAAwD;AACxD,4DAAyD;AACzD,gEAA6D;AAC7D,oEAAiE;AACjE,8CAAkI;AAG3H,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAK3B,AAAN,KAAK,CAAC,QAAQ,CAAqB,KAAY,EAAqB,GAAQ,EAAsB,IAAwB,EAAsB,IAAuB;QACrK,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC;QACrD,OAAO,IAAA,8BAAoB,EAAC,GAAG,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;YACvD,KAAK,EAAE;gBACL,EAAE,EAAE,KAAK,CAAC,EAAE;aACb;SACF,CAAC,CAAC,QAAQ,CAAC;YACV,GAAG,IAAI;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;IAMK,AAAN,KAAK,CAAC,UAAU,CAAqB,KAAY,EAAqB,GAAQ,EAAsB,IAAwB,EAAsB,IAAyB;QACzK,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAA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AgB,WAAA,WAAW,CAAC,GAAG,EAAE,CAAA;IAAY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;;qCAAvD,aAAK;;2DASnD;AAMK;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,eAAM,EAAE;QAC1C,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,+FAA+F;KAC7G,CAAC;IACY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;IAAgB,WAAA,WAAW,CAAC,GAAG,EAAE,CAAA;IAAY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;IAA4B,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;;qCAArG,aAAK,kBAAuG,iCAAe;;oDAUlK;AAMK;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,aAAK,EAAE;QACzC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,sIAAsI;KACpJ,CAAC;IACW,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;IAAgB,WAAA,WAAW,CAAC,GAAG,EAAE,CAAA;IAAY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;;qCAAvD,aAAK;;mDAS3C;iCA7EU,sBAAsB;IADlC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,aAAK,CAAC;GACtB,sBAAsB,CA8ElC"}
|
package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.cjs
CHANGED
@@ -56,7 +56,7 @@ exports.StopLossRelationsResolver = StopLossRelationsResolver;
|
|
56
56
|
__decorate([
|
57
57
|
TypeGraphQL.FieldResolver(_type => Order_1.Order, {
|
58
58
|
nullable: false,
|
59
|
-
description: "An order that is associated with this stop loss. GQL.SKIP=true"
|
59
|
+
description: "An order that is associated with this stop loss. TYPESTRING.SKIP=true GQL.SKIP=true"
|
60
60
|
}),
|
61
61
|
__param(0, TypeGraphQL.Root()),
|
62
62
|
__param(1, TypeGraphQL.Ctx()),
|
package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StopLossRelationsResolver.js","sourceRoot":"","sources":["../../../../../../src/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,iDAA8C;AAC9C,uDAAoD;AACpD,8CAAkI;AAG3H,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAK9B,AAAN,KAAK,CAAC,KAAK,CAAqB,QAAkB,EAAqB,GAAQ,EAAsB,IAAwB;QAC3H,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC;QACrD,OAAO,IAAA,8BAAoB,EAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC;YAC1D,KAAK,EAAE;gBACL,EAAE,EAAE,QAAQ,CAAC,EAAE;aAChB;SACF,CAAC,CAAC,KAAK,CAAC;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAfY,8DAAyB;AAK9B;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,aAAK,EAAE;QACzC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"StopLossRelationsResolver.js","sourceRoot":"","sources":["../../../../../../src/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,iDAA8C;AAC9C,uDAAoD;AACpD,8CAAkI;AAG3H,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAK9B,AAAN,KAAK,CAAC,KAAK,CAAqB,QAAkB,EAAqB,GAAQ,EAAsB,IAAwB;QAC3H,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC;QACrD,OAAO,IAAA,8BAAoB,EAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC;YAC1D,KAAK,EAAE;gBACL,EAAE,EAAE,QAAQ,CAAC,EAAE;aAChB;SACF,CAAC,CAAC,KAAK,CAAC;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAfY,8DAAyB;AAK9B;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,aAAK,EAAE;QACzC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,qFAAqF;KACnG,CAAC;IACW,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;IAAsB,WAAA,WAAW,CAAC,GAAG,EAAE,CAAA;IAAY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;;qCAA1D,mBAAQ;;sDASjD;oCAdU,yBAAyB;IADrC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,mBAAQ,CAAC;GACzB,yBAAyB,CAerC"}
|
package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.cjs
CHANGED
@@ -56,7 +56,7 @@ exports.TakeProfitRelationsResolver = TakeProfitRelationsResolver;
|
|
56
56
|
__decorate([
|
57
57
|
TypeGraphQL.FieldResolver(_type => Order_1.Order, {
|
58
58
|
nullable: false,
|
59
|
-
description: "An order that is associated with this take profit. GQL.SKIP=true"
|
59
|
+
description: "An order that is associated with this take profit. TYPESTRING.SKIP=true GQL.SKIP=true"
|
60
60
|
}),
|
61
61
|
__param(0, TypeGraphQL.Root()),
|
62
62
|
__param(1, TypeGraphQL.Ctx()),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TakeProfitRelationsResolver.js","sourceRoot":"","sources":["../../../../../../src/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,iDAA8C;AAC9C,2DAAwD;AACxD,8CAAkI;AAG3H,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAKhC,AAAN,KAAK,CAAC,KAAK,CAAqB,UAAsB,EAAqB,GAAQ,EAAsB,IAAwB;QAC/H,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC;QACrD,OAAO,IAAA,8BAAoB,EAAC,GAAG,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC;YAC5D,KAAK,EAAE;gBACL,EAAE,EAAE,UAAU,CAAC,EAAE;aAClB;SACF,CAAC,CAAC,KAAK,CAAC;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAfY,kEAA2B;AAKhC;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,aAAK,EAAE;QACzC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"TakeProfitRelationsResolver.js","sourceRoot":"","sources":["../../../../../../src/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,iDAA8C;AAC9C,2DAAwD;AACxD,8CAAkI;AAG3H,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAKhC,AAAN,KAAK,CAAC,KAAK,CAAqB,UAAsB,EAAqB,GAAQ,EAAsB,IAAwB;QAC/H,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC;QACrD,OAAO,IAAA,8BAAoB,EAAC,GAAG,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC;YAC5D,KAAK,EAAE;gBACL,EAAE,EAAE,UAAU,CAAC,EAAE;aAClB;SACF,CAAC,CAAC,KAAK,CAAC;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAfY,kEAA2B;AAKhC;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,aAAK,EAAE;QACzC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,uFAAuF;KACrG,CAAC;IACW,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;IAA0B,WAAA,WAAW,CAAC,GAAG,EAAE,CAAA;IAAY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;;qCAA5D,uBAAU;;wDASrD;sCAdU,2BAA2B;IADvC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,uBAAU,CAAC;GAC3B,2BAA2B,CAevC"}
|
@@ -104,7 +104,7 @@ __decorate([
|
|
104
104
|
__decorate([
|
105
105
|
TypeGraphQL.FieldResolver(_type => [Action_1.Action], {
|
106
106
|
nullable: false,
|
107
|
-
description: "List of actions associated with this trade. TYPESTRING.INCLUDE=[\"id\",\"sequence\",\"type\",\"note\",\"status\"
|
107
|
+
description: "List of actions associated with this trade. TYPESTRING.INCLUDE=[\"id\",\"sequence\",\"type\",\"note\",\"status\"] GQL.EXCLUDE=['trade']"
|
108
108
|
}),
|
109
109
|
__param(0, TypeGraphQL.Root()),
|
110
110
|
__param(1, TypeGraphQL.Ctx()),
|
package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TradeRelationsResolver.js","sourceRoot":"","sources":["../../../../../../src/generated/typegraphql-prisma/resolv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A,8BAAoB,EAAC,GAAG,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;YACvD,KAAK,EAAE;gBACL,EAAE,EAAE,KAAK,CAAC,EAAE;aACb;SACF,CAAC,CAAC,OAAO,CAAC;YACT,GAAG,IAAI;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA9CY,wDAAsB;AAK3B;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,6BAAa,EAAE;QACjD,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,iHAAiH;KAC/H,CAAC;IACmB,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;IAAgB,WAAA,WAAW,CAAC,GAAG,EAAE,CAAA;IAAY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;;qCAAvD,aAAK;;2DASnD;AAMK;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,aAAK,EAAE;QACzC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,wHAAwH;KACtI,CAAC;IACW,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;IAAgB,WAAA,WAAW,CAAC,GAAG,EAAE,CAAA;IAAY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;;qCAAvD,aAAK;;mDAS3C;AAMK;IAJL,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,eAAM,CAAC,EAAE;QAC5C,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"TradeRelationsResolver.js","sourceRoot":"","sources":["../../../../../../src/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAE5C,mDAAgD;AAChD,iEAA8D;AAC9D,iDAA8C;AAC9C,iD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ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The order associated with this action.\n order?: {\n
|
1
|
+
export declare const ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The order associated with this action.\n order?: {\n qty?: number;\n notional?: number;\n side: OrderSide;\n type: OrderType;\n orderClass: OrderClass;\n timeInForce: TimeInForce;\n limitPrice?: number;\n stopPrice?: number;\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n trailPrice?: number;\n trailPercent?: number;\n extendedHours?: boolean;\n status: OrderStatus;\n submittedAt?: Date;\n strikePrice?: number;\n expirationDate?: Date;\n optionType?: OptionType;\n };\n};\nexport enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\",\n CANCELED = \"CANCELED\"\n}\n\n";
|
2
2
|
//# sourceMappingURL=Action.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,q2EAiE5B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG
|
1
|
+
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE/B,CAAC"}
|