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.
Files changed (128) hide show
  1. package/generated/typeStrings/Action.cjs +0 -120
  2. package/generated/typeStrings/Action.d.ts +1 -1
  3. package/generated/typeStrings/Action.d.ts.map +1 -1
  4. package/generated/typeStrings/Action.js.map +1 -1
  5. package/generated/typeStrings/AlpacaAccount.cjs +2 -58
  6. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  7. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  8. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  9. package/generated/typeStrings/Customer.cjs +1 -107
  10. package/generated/typeStrings/Customer.d.ts +1 -1
  11. package/generated/typeStrings/Customer.d.ts.map +1 -1
  12. package/generated/typeStrings/Customer.js.map +1 -1
  13. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +0 -27
  14. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  15. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  16. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  17. package/generated/typeStrings/Order.cjs +18 -45
  18. package/generated/typeStrings/Order.d.ts +1 -1
  19. package/generated/typeStrings/Order.d.ts.map +1 -1
  20. package/generated/typeStrings/Order.js.map +1 -1
  21. package/generated/typeStrings/Position.cjs +0 -27
  22. package/generated/typeStrings/Position.d.ts +1 -1
  23. package/generated/typeStrings/Position.d.ts.map +1 -1
  24. package/generated/typeStrings/Position.js.map +1 -1
  25. package/generated/typeStrings/Session.cjs +1 -122
  26. package/generated/typeStrings/Session.d.ts +1 -1
  27. package/generated/typeStrings/Session.d.ts.map +1 -1
  28. package/generated/typeStrings/Session.js.map +1 -1
  29. package/generated/typeStrings/StopLoss.cjs +0 -144
  30. package/generated/typeStrings/StopLoss.d.ts +1 -1
  31. package/generated/typeStrings/StopLoss.d.ts.map +1 -1
  32. package/generated/typeStrings/StopLoss.js.map +1 -1
  33. package/generated/typeStrings/TakeProfit.cjs +0 -144
  34. package/generated/typeStrings/TakeProfit.d.ts +1 -1
  35. package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  36. package/generated/typeStrings/TakeProfit.js.map +1 -1
  37. package/generated/typeStrings/Trade.cjs +1 -172
  38. package/generated/typeStrings/Trade.d.ts +1 -1
  39. package/generated/typeStrings/Trade.d.ts.map +1 -1
  40. package/generated/typeStrings/Trade.js.map +1 -1
  41. package/generated/typeStrings/User.cjs +2 -71
  42. package/generated/typeStrings/User.d.ts +1 -1
  43. package/generated/typeStrings/User.d.ts.map +1 -1
  44. package/generated/typeStrings/User.js.map +1 -1
  45. package/generated/typeStrings/index.d.ts +11 -11
  46. package/generated/typegraphql-prisma/models/Order.cjs +17 -17
  47. package/generated/typegraphql-prisma/models/Order.d.ts +20 -20
  48. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  49. package/generated/typegraphql-prisma/models/StopLoss.cjs +1 -1
  50. package/generated/typegraphql-prisma/models/StopLoss.d.ts +2 -2
  51. package/generated/typegraphql-prisma/models/StopLoss.js.map +1 -1
  52. package/generated/typegraphql-prisma/models/TakeProfit.cjs +1 -1
  53. package/generated/typegraphql-prisma/models/TakeProfit.d.ts +2 -2
  54. package/generated/typegraphql-prisma/models/TakeProfit.js.map +1 -1
  55. package/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  56. package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.cjs +3 -3
  57. package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
  58. package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.cjs +1 -1
  59. package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map +1 -1
  60. package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.cjs +1 -1
  61. package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.js.map +1 -1
  62. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +1 -1
  63. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  64. package/package.json +1 -1
  65. package/server/generated/typeStrings/Action.d.ts +1 -1
  66. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  67. package/server/generated/typeStrings/Action.js.map +1 -1
  68. package/server/generated/typeStrings/Action.mjs +0 -120
  69. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  70. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  71. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  72. package/server/generated/typeStrings/AlpacaAccount.mjs +2 -58
  73. package/server/generated/typeStrings/Customer.d.ts +1 -1
  74. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  75. package/server/generated/typeStrings/Customer.js.map +1 -1
  76. package/server/generated/typeStrings/Customer.mjs +1 -107
  77. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  78. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  79. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  80. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +0 -27
  81. package/server/generated/typeStrings/Order.d.ts +1 -1
  82. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  83. package/server/generated/typeStrings/Order.js.map +1 -1
  84. package/server/generated/typeStrings/Order.mjs +18 -45
  85. package/server/generated/typeStrings/Position.d.ts +1 -1
  86. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  87. package/server/generated/typeStrings/Position.js.map +1 -1
  88. package/server/generated/typeStrings/Position.mjs +0 -27
  89. package/server/generated/typeStrings/Session.d.ts +1 -1
  90. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  91. package/server/generated/typeStrings/Session.js.map +1 -1
  92. package/server/generated/typeStrings/Session.mjs +1 -122
  93. package/server/generated/typeStrings/StopLoss.d.ts +1 -1
  94. package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
  95. package/server/generated/typeStrings/StopLoss.js.map +1 -1
  96. package/server/generated/typeStrings/StopLoss.mjs +0 -144
  97. package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
  98. package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  99. package/server/generated/typeStrings/TakeProfit.js.map +1 -1
  100. package/server/generated/typeStrings/TakeProfit.mjs +0 -144
  101. package/server/generated/typeStrings/Trade.d.ts +1 -1
  102. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  103. package/server/generated/typeStrings/Trade.js.map +1 -1
  104. package/server/generated/typeStrings/Trade.mjs +1 -172
  105. package/server/generated/typeStrings/User.d.ts +1 -1
  106. package/server/generated/typeStrings/User.d.ts.map +1 -1
  107. package/server/generated/typeStrings/User.js.map +1 -1
  108. package/server/generated/typeStrings/User.mjs +2 -71
  109. package/server/generated/typeStrings/index.d.ts +11 -11
  110. package/server/generated/typegraphql-prisma/models/Order.d.ts +20 -20
  111. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  112. package/server/generated/typegraphql-prisma/models/Order.mjs +37 -37
  113. package/server/generated/typegraphql-prisma/models/StopLoss.d.ts +2 -2
  114. package/server/generated/typegraphql-prisma/models/StopLoss.js.map +1 -1
  115. package/server/generated/typegraphql-prisma/models/StopLoss.mjs +3 -3
  116. package/server/generated/typegraphql-prisma/models/TakeProfit.d.ts +2 -2
  117. package/server/generated/typegraphql-prisma/models/TakeProfit.js.map +1 -1
  118. package/server/generated/typegraphql-prisma/models/TakeProfit.mjs +3 -3
  119. package/server/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  120. package/server/generated/typegraphql-prisma/models/Trade.mjs +1 -1
  121. package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
  122. package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.mjs +3 -3
  123. package/server/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map +1 -1
  124. package/server/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.mjs +1 -1
  125. package/server/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.js.map +1 -1
  126. package/server/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.mjs +1 -1
  127. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  128. 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: "Client-supplied unique identifier for the order (from Alpaca). Only include this, if the corresponding action for this order is to either cancel or replace an order."
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 value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided."
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 (market, limit, stop, stop_limit, trailing_stop)."
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 (simple, bracket, oco, oso)."
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 (day, gtc, opg, cls, ioc, fok)."
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 and required for LIMIT or STOP_LIMIT orders. It must be basePrice + 0.01, and should always be greater than stopPrice."
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 and required for STOP or STOP_LIMIT orders. It must be basePrice - 0.01, and should always be less than limitPrice."
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 and required for TRAILING_STOP orders."
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 representing the percentage and required for TRAILING_STOP orders."
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 extended hours."
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: "Cancel requested at timestamp when the request to cancel an order was made."
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: "CanceledAt timestamp when the order was canceled."
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: "If the asset.type is OPTION, then provide type of contract (CALL or PUT)."
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
- * Client-supplied unique identifier for the order (from Alpaca). Only include this, if the corresponding action for this order is to either cancel or replace an order.
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 value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.
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 (market, limit, stop, stop_limit, trailing_stop).
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 (simple, bracket, oco, oso).
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 (day, gtc, opg, cls, ioc, fok).
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 and required for LIMIT or STOP_LIMIT orders. It must be basePrice + 0.01, and should always be greater than stopPrice.
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 and required for STOP or STOP_LIMIT orders. It must be basePrice - 0.01, and should always be less than limitPrice.
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 required for bracket orders.
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 required for bracket orders. For take_profit, must be base_price + 0.01.
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 and required for TRAILING_STOP orders.
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 representing the percentage and required for TRAILING_STOP orders.
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 extended hours.
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
- * Cancel requested at timestamp when the request to cancel an order was made.
104
+ * Timestamp when the request to cancel the order was made.
105
105
  */
106
106
  cancelRequestedAt?: Date | null;
107
107
  /**
108
- * CanceledAt timestamp when the order was canceled.
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 GQL.EXCLUDE=['trades', 'orders', 'positions', 'user']
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
- * If the asset.type is OPTION, then provide type of contract (CALL or PUT).
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;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;QACd,WAAW,EAAE,yEAAyE;KACvF,CAAC;;uCACuB;AAwBzB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE;QAC7C,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,gCAAgC;KAC9C,CAAC;;kCACkB;AASpB;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE;QAC7C,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,yEAAyE;KACvF,CAAC;;0CAC0B;AAS5B;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE;QAChC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4EAA4E;KAC1F,CAAC;;6CAC2B;AAS7B;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,uBAAU,EAAE;QACtC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,oFAAoF;KAClG,CAAC;;yCACiC;AASnC;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,mFAAmF;KACjG,CAAC;;yCACyB;AAS3B;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,IAAI;QACd,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,IAAI;QACd,WAAW,EAAE,8NAA8N;KAC5O,CAAC;;2CACwB;AAS1B;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,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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AAE,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,C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AAC,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,+EAA+E;KAC7F,CAAC;;2CACe;qBArDN,UAAU;IADtB,WAAW,CAAC,UAAU,CAAC,YAAY,EAAE,EAAE,CAAC;GAC5B,UAAU,CA2DtB"}
@@ -76,7 +76,7 @@ export declare class Trade {
76
76
  */
77
77
  asset?: Asset;
78
78
  /**
79
- * List of actions associated with this trade. TYPESTRING.INCLUDE=[\"id\",\"sequence\",\"type\",\"note\",\"status\",\"fee\",\"order\"] GQL.EXCLUDE=['trade']
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 required for bracket orders."
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 required for bracket orders. For take_profit, must be base_price + 0.01."
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 GQL.EXCLUDE=['trades', 'orders', 'positions', 'user']"
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()),
@@ -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,sBAAs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,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"}
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,EAA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A,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"}
@@ -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()),
@@ -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,gEAAgE;KAC9E,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"}
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"}
@@ -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,kEAAkE;KAChF,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"}
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\",\"fee\",\"order\"] GQL.EXCLUDE=['trade']"
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()),
@@ -1 +1 @@
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,iDAA8C;AAC9C,8DAA2D;AAC3D,8CAAkI;AAG3H,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAK3B,AAAN,KAAK,CAAC,aAAa,CAAqB,KAAY,EAAqB,GAAQ,EAAsB,IAAwB;QAC7H,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,aAAa,CAAC;YACf,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;IAMK,AAAN,KAAK,CAAC,KAAK,CAAqB,KAAY,EAAqB,GAAQ,EAAsB,IAAwB;QACrH,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,KAAK,CAAC;YACP,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;IAMK,AAAN,KAAK,CAAC,OAAO,C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AAE,CAAA;IAAY,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;IAA4B,WAAA,WAAW,CAAC,IAAI,EAAE,CAAA;;qCAArG,aAAK,kBAAuG,mCAAgB;;qDAUpK;iCA7CU,sBAAsB;IADlC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,aAAK,CAAC;GACtB,sBAAsB,CA8ClC"}
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,iDAA8C;AAC9C,8DAA2D;AAC3D,8CAAkI;AAG3H,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAK3B,AAAN,KAAK,CAAC,aAAa,CAAqB,KAAY,EAAqB,GAAQ,EAAsB,IAAwB;QAC7H,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,aAAa,CAAC;YACf,GAAG,CAAC,MAAM,IAAI,IAAA,qDAA2C,EAAC,MAAM,CAAC,CAAC;SACnE,CAAC,CAAC;IACL,CAAC;IAMK,AAAN,KAAK,CAAC,KAAK,CAAqB,KAAY,EAAqB,GAAQ,EAAsB,IAAwB;QACrH,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,K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AAC,EAAE,CAAC,CAAC,eAAM,CAAC,EAAE;QAC5C,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,yIAAyI;KACvJ,CAAC;IACa,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,mCAAgB;;qDAUpK;iCA7CU,sBAAsB;IADlC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,aAAK,CAAC;GACtB,sBAAsB,CA8ClC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adaptic-backend",
3
- "version": "1.0.191",
3
+ "version": "1.0.192",
4
4
  "description": "Backend executable CRUD functions with dynamic variables construction, and type definitions for the Adaptic AI platform.",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -1,2 +1,2 @@
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 // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\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 // Take profit object required for bracket orders. For take_profit, must be \u2265 base_price + 0.01.\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 // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\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\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n HELD = \"HELD\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\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,6pMAyL5B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyL/B,CAAC"}
1
+ {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE/B,CAAC"}