adaptic-backend 1.0.198 → 1.0.199

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 (171) hide show
  1. package/generated/typeStrings/Account.cjs +2 -3
  2. package/generated/typeStrings/Account.d.ts +1 -1
  3. package/generated/typeStrings/Account.d.ts.map +1 -1
  4. package/generated/typeStrings/Account.js.map +1 -1
  5. package/generated/typeStrings/Action.cjs +13 -138
  6. package/generated/typeStrings/Action.d.ts +1 -1
  7. package/generated/typeStrings/Action.d.ts.map +1 -1
  8. package/generated/typeStrings/Action.js.map +1 -1
  9. package/generated/typeStrings/Alert.cjs +2 -3
  10. package/generated/typeStrings/Alert.d.ts +1 -1
  11. package/generated/typeStrings/Alert.d.ts.map +1 -1
  12. package/generated/typeStrings/Alert.js.map +1 -1
  13. package/generated/typeStrings/AlpacaAccount.cjs +77 -5
  14. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  15. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  16. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  17. package/generated/typeStrings/Asset.cjs +2 -3
  18. package/generated/typeStrings/Asset.d.ts +1 -1
  19. package/generated/typeStrings/Asset.d.ts.map +1 -1
  20. package/generated/typeStrings/Asset.js.map +1 -1
  21. package/generated/typeStrings/Authenticator.cjs +2 -3
  22. package/generated/typeStrings/Authenticator.d.ts +1 -1
  23. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  24. package/generated/typeStrings/Authenticator.js.map +1 -1
  25. package/generated/typeStrings/Customer.cjs +4 -4
  26. package/generated/typeStrings/Customer.d.ts +1 -1
  27. package/generated/typeStrings/Customer.d.ts.map +1 -1
  28. package/generated/typeStrings/EconomicEvent.cjs +2 -3
  29. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  30. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  31. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  32. package/generated/typeStrings/MarketSentiment.cjs +2 -3
  33. package/generated/typeStrings/MarketSentiment.d.ts +1 -1
  34. package/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  35. package/generated/typeStrings/MarketSentiment.js.map +1 -1
  36. package/generated/typeStrings/NewsArticle.cjs +2 -3
  37. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  38. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  39. package/generated/typeStrings/NewsArticle.js.map +1 -1
  40. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +5 -3
  41. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  42. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  43. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  44. package/generated/typeStrings/Order.cjs +5 -3
  45. package/generated/typeStrings/Order.d.ts +1 -1
  46. package/generated/typeStrings/Order.d.ts.map +1 -1
  47. package/generated/typeStrings/Order.js.map +1 -1
  48. package/generated/typeStrings/Position.cjs +5 -68
  49. package/generated/typeStrings/Position.d.ts +1 -1
  50. package/generated/typeStrings/Position.d.ts.map +1 -1
  51. package/generated/typeStrings/Position.js.map +1 -1
  52. package/generated/typeStrings/ScheduledOptionOrder.cjs +2 -3
  53. package/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
  54. package/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
  55. package/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
  56. package/generated/typeStrings/Session.cjs +4 -4
  57. package/generated/typeStrings/Session.d.ts +1 -1
  58. package/generated/typeStrings/Session.d.ts.map +1 -1
  59. package/generated/typeStrings/StopLoss.cjs +2 -3
  60. package/generated/typeStrings/StopLoss.d.ts +1 -1
  61. package/generated/typeStrings/StopLoss.d.ts.map +1 -1
  62. package/generated/typeStrings/StopLoss.js.map +1 -1
  63. package/generated/typeStrings/TakeProfit.cjs +2 -3
  64. package/generated/typeStrings/TakeProfit.d.ts +1 -1
  65. package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  66. package/generated/typeStrings/TakeProfit.js.map +1 -1
  67. package/generated/typeStrings/Trade.cjs +153 -4
  68. package/generated/typeStrings/Trade.d.ts +1 -1
  69. package/generated/typeStrings/Trade.d.ts.map +1 -1
  70. package/generated/typeStrings/Trade.js.map +1 -1
  71. package/generated/typeStrings/User.cjs +5 -5
  72. package/generated/typeStrings/User.d.ts +1 -1
  73. package/generated/typeStrings/User.d.ts.map +1 -1
  74. package/generated/typeStrings/VerificationToken.cjs +2 -3
  75. package/generated/typeStrings/VerificationToken.d.ts +1 -1
  76. package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  77. package/generated/typeStrings/VerificationToken.js.map +1 -1
  78. package/generated/typeStrings/index.d.ts +20 -20
  79. package/generated/typegraphql-prisma/models/Action.d.ts +1 -1
  80. package/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  81. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.cjs +1 -1
  82. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  83. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +1 -1
  84. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  85. package/package.json +1 -1
  86. package/server/generated/typeStrings/Account.d.ts +1 -1
  87. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  88. package/server/generated/typeStrings/Account.js.map +1 -1
  89. package/server/generated/typeStrings/Account.mjs +2 -3
  90. package/server/generated/typeStrings/Action.d.ts +1 -1
  91. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  92. package/server/generated/typeStrings/Action.js.map +1 -1
  93. package/server/generated/typeStrings/Action.mjs +13 -138
  94. package/server/generated/typeStrings/Alert.d.ts +1 -1
  95. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  96. package/server/generated/typeStrings/Alert.js.map +1 -1
  97. package/server/generated/typeStrings/Alert.mjs +2 -3
  98. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  99. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  100. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  101. package/server/generated/typeStrings/AlpacaAccount.mjs +77 -5
  102. package/server/generated/typeStrings/Asset.d.ts +1 -1
  103. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  104. package/server/generated/typeStrings/Asset.js.map +1 -1
  105. package/server/generated/typeStrings/Asset.mjs +2 -3
  106. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  107. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  108. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  109. package/server/generated/typeStrings/Authenticator.mjs +2 -3
  110. package/server/generated/typeStrings/Customer.d.ts +1 -1
  111. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  112. package/server/generated/typeStrings/Customer.mjs +4 -4
  113. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  114. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  115. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  116. package/server/generated/typeStrings/EconomicEvent.mjs +2 -3
  117. package/server/generated/typeStrings/MarketSentiment.d.ts +1 -1
  118. package/server/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  119. package/server/generated/typeStrings/MarketSentiment.js.map +1 -1
  120. package/server/generated/typeStrings/MarketSentiment.mjs +2 -3
  121. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  122. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  123. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  124. package/server/generated/typeStrings/NewsArticle.mjs +2 -3
  125. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  126. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  127. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  128. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +5 -3
  129. package/server/generated/typeStrings/Order.d.ts +1 -1
  130. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  131. package/server/generated/typeStrings/Order.js.map +1 -1
  132. package/server/generated/typeStrings/Order.mjs +5 -3
  133. package/server/generated/typeStrings/Position.d.ts +1 -1
  134. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  135. package/server/generated/typeStrings/Position.js.map +1 -1
  136. package/server/generated/typeStrings/Position.mjs +5 -68
  137. package/server/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
  138. package/server/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
  139. package/server/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
  140. package/server/generated/typeStrings/ScheduledOptionOrder.mjs +2 -3
  141. package/server/generated/typeStrings/Session.d.ts +1 -1
  142. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  143. package/server/generated/typeStrings/Session.mjs +4 -4
  144. package/server/generated/typeStrings/StopLoss.d.ts +1 -1
  145. package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
  146. package/server/generated/typeStrings/StopLoss.js.map +1 -1
  147. package/server/generated/typeStrings/StopLoss.mjs +2 -3
  148. package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
  149. package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  150. package/server/generated/typeStrings/TakeProfit.js.map +1 -1
  151. package/server/generated/typeStrings/TakeProfit.mjs +2 -3
  152. package/server/generated/typeStrings/Trade.d.ts +1 -1
  153. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  154. package/server/generated/typeStrings/Trade.js.map +1 -1
  155. package/server/generated/typeStrings/Trade.mjs +153 -4
  156. package/server/generated/typeStrings/User.d.ts +1 -1
  157. package/server/generated/typeStrings/User.d.ts.map +1 -1
  158. package/server/generated/typeStrings/User.mjs +5 -5
  159. package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
  160. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  161. package/server/generated/typeStrings/VerificationToken.js.map +1 -1
  162. package/server/generated/typeStrings/VerificationToken.mjs +2 -3
  163. package/server/generated/typeStrings/index.d.ts +20 -20
  164. package/server/generated/typegraphql-prisma/models/Action.d.ts +1 -1
  165. package/server/generated/typegraphql-prisma/models/Action.mjs +1 -1
  166. package/server/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  167. package/server/generated/typegraphql-prisma/models/Trade.mjs +1 -1
  168. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  169. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.mjs +1 -1
  170. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  171. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +1 -1
@@ -2,17 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NewsArticleAssetSentimentTypeString = void 0;
4
4
  exports.NewsArticleAssetSentimentTypeString = `
5
- Your response should adhere to the following type definition for the "NewsArticleAssetSentiment" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "NewsArticleAssetSentiment" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type NewsArticleAssetSentiment = {
10
9
  // URL of the news article, must be unique.
11
10
  url: string;
12
11
  // Relation to the Asset model.
13
12
  asset: {
13
+ // Ticker symbol of the asset
14
14
  symbol: string;
15
+ // Full name of the asset
15
16
  name: string;
17
+ // Type of the asset, defined by AssetType enum.
16
18
  type: AssetType;
17
19
  };
18
20
  // Relevancy score indicating how relevant the news is to the asset.
@@ -1,2 +1,2 @@
1
- export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" 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 NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n};\n\n";
1
+ export declare const NewsArticleAssetSentimentTypeString = "\n// Your response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\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 // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n};\n\n";
2
2
  //# sourceMappingURL=NewsArticleAssetSentiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,4vBAsB/C,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,w3BAwB/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBlD,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBlD,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderTypeString = void 0;
4
4
  exports.OrderTypeString = `
5
- Your response should adhere to the following type definition for the "Order" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Order" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Order = {
10
9
  // 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.
@@ -47,8 +46,11 @@ export type Order = {
47
46
  status: OrderStatus;
48
47
  // The asset this order is for.
49
48
  asset: {
49
+ // Ticker symbol of the asset
50
50
  symbol: string;
51
+ // Full name of the asset
51
52
  name: string;
53
+ // Type of the asset, defined by AssetType enum.
52
54
  type: AssetType;
53
55
  };
54
56
  // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.
@@ -1,2 +1,2 @@
1
- export declare const OrderTypeString = "\nYour response should adhere to the following type definition for the \"Order\" 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 Order = {\n // 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.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\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. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // 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.\n limitPrice?: number;\n // 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'.\n stopPrice?: number;\n // 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'.\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' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\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 // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n};\n\n";
1
+ export declare const OrderTypeString = "\n// Your response should adhere to the following type definition for the \"Order\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Order = {\n // 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.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\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. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // 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.\n limitPrice?: number;\n // 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'.\n stopPrice?: number;\n // 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'.\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' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\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 // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\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 // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n};\n\n";
2
2
  //# sourceMappingURL=Order.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,8/HA0D3B,CAAC"}
1
+ {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,0nIA4D3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D9B,CAAC"}
1
+ {"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4D9B,CAAC"}
@@ -2,15 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PositionTypeString = void 0;
4
4
  exports.PositionTypeString = `
5
- Your response should adhere to the following type definition for the "Position" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Position" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Position = {
10
9
  // Relation to the Asset model.
11
10
  asset: {
11
+ // Ticker symbol of the asset
12
12
  symbol: string;
13
+ // Full name of the asset
13
14
  name: string;
15
+ // Type of the asset, defined by AssetType enum.
14
16
  type: AssetType;
15
17
  };
16
18
  // The average price at which the asset was acquired.
@@ -41,70 +43,5 @@ export type Position = {
41
43
  assetMarginable: boolean;
42
44
  };
43
45
 
44
- enum AssetType {
45
- /// Represents a share of ownership in a corporation.
46
- STOCK
47
-
48
- /// Exchange-Traded Fund, a type of investment fund traded on stock exchanges.
49
- ETF
50
-
51
- /// A mutual fund that pools money from many investors to purchase securities.
52
- MUTUAL_FUND
53
-
54
- /// Digital or virtual currencies using cryptography for security.
55
- CRYPTOCURRENCY
56
-
57
- /// A market index representing a collection of stocks.
58
- INDEX
59
-
60
- /// Physical goods such as gold, oil, or agricultural products.
61
- COMMODITY
62
-
63
- /// Traditional currencies used in international trade.
64
- CURRENCY
65
-
66
- /// Contracts that give the holder the right to buy or sell an asset at a set price.
67
- OPTION
68
-
69
- /// Financial contracts obligating the buyer to purchase an asset at a future date.
70
- FUTURE
71
-
72
- /// Debt securities issued by entities to raise capital.
73
- BOND
74
-
75
- /// Securities that give the holder the right to purchase stock at a specific price.
76
- WARRANT
77
-
78
- /// American Depositary Receipts representing shares in foreign companies.
79
- ADR
80
-
81
- /// Global Depositary Receipts representing shares in foreign companies.
82
- GDR
83
-
84
- /// Units of ownership in investment funds or trusts.
85
- UNIT
86
-
87
- /// Rights granted to shareholders, such as voting or dividend rights.
88
- RIGHT
89
-
90
- /// Real Estate Investment Trusts, companies that own or finance income-producing real estate.
91
- REIT
92
-
93
- /// Investment products structured to meet specific needs.
94
- STRUCTURED_PRODUCT
95
-
96
- /// Financial contracts to exchange cash flows between parties.
97
- SWAP
98
-
99
- /// Immediate exchange of financial instruments.
100
- SPOT
101
-
102
- /// Agreements to buy or sell an asset at a future date.
103
- FORWARD
104
-
105
- /// Any other type of asset not classified above.
106
- OTHER
107
- }
108
-
109
46
  `;
110
47
  //# sourceMappingURL=Position.js.map
@@ -1,2 +1,2 @@
1
- export declare const PositionTypeString = "\nYour response should adhere to the following type definition for the \"Position\" 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 Position = {\n // Relation to the Asset model.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n};\n\nenum AssetType {\n /// Represents a share of ownership in a corporation.\n STOCK\n\n /// Exchange-Traded Fund, a type of investment fund traded on stock exchanges.\n ETF\n\n /// A mutual fund that pools money from many investors to purchase securities.\n MUTUAL_FUND\n\n /// Digital or virtual currencies using cryptography for security.\n CRYPTOCURRENCY\n\n /// A market index representing a collection of stocks.\n INDEX\n\n /// Physical goods such as gold, oil, or agricultural products.\n COMMODITY\n\n /// Traditional currencies used in international trade.\n CURRENCY\n\n /// Contracts that give the holder the right to buy or sell an asset at a set price.\n OPTION\n\n /// Financial contracts obligating the buyer to purchase an asset at a future date.\n FUTURE\n\n /// Debt securities issued by entities to raise capital.\n BOND\n\n /// Securities that give the holder the right to purchase stock at a specific price.\n WARRANT\n\n /// American Depositary Receipts representing shares in foreign companies.\n ADR\n\n /// Global Depositary Receipts representing shares in foreign companies.\n GDR\n\n /// Units of ownership in investment funds or trusts.\n UNIT\n\n /// Rights granted to shareholders, such as voting or dividend rights.\n RIGHT\n\n /// Real Estate Investment Trusts, companies that own or finance income-producing real estate.\n REIT\n\n /// Investment products structured to meet specific needs.\n STRUCTURED_PRODUCT\n\n /// Financial contracts to exchange cash flows between parties.\n SWAP\n\n /// Immediate exchange of financial instruments.\n SPOT\n\n /// Agreements to buy or sell an asset at a future date.\n FORWARD\n\n /// Any other type of asset not classified above.\n OTHER\n}\n\n";
1
+ export declare const PositionTypeString = "\n// Your response should adhere to the following type definition for the \"Position\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Position = {\n // Relation to the Asset model.\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 // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n};\n\n";
2
2
  //# sourceMappingURL=Position.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,2/FAyG9B,CAAC"}
1
+ {"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,y5CA0C9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Position.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGjC,CAAC"}
1
+ {"version":3,"file":"Position.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CjC,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ScheduledOptionOrderTypeString = void 0;
4
4
  exports.ScheduledOptionOrderTypeString = `
5
- Your response should adhere to the following type definition for the "ScheduledOptionOrder" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "ScheduledOptionOrder" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type ScheduledOptionOrder = {
10
9
  // Payload of the scheduled option order as a JSON object.
@@ -1,2 +1,2 @@
1
- export declare const ScheduledOptionOrderTypeString = "\nYour response should adhere to the following type definition for the \"ScheduledOptionOrder\" 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 ScheduledOptionOrder = {\n // Payload of the scheduled option order as a JSON object.\n payload: any;\n};\n\n";
1
+ export declare const ScheduledOptionOrderTypeString = "\n// Your response should adhere to the following type definition for the \"ScheduledOptionOrder\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type ScheduledOptionOrder = {\n // Payload of the scheduled option order as a JSON object.\n payload: any;\n};\n\n";
2
2
  //# sourceMappingURL=ScheduledOptionOrder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduledOptionOrder.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/ScheduledOptionOrder.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,4WAU1C,CAAC"}
1
+ {"version":3,"file":"ScheduledOptionOrder.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/ScheduledOptionOrder.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,gXAS1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduledOptionOrder.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/ScheduledOptionOrder.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG;;;;;;;;;;CAU7C,CAAC"}
1
+ {"version":3,"file":"ScheduledOptionOrder.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/ScheduledOptionOrder.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG;;;;;;;;;CAS7C,CAAC"}
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SessionTypeString = void 0;
4
4
  exports.SessionTypeString = `
5
- Your response should adhere to the following type definition for the "Session" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Session" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Session = {
10
9
  // Expiration date and time of the session.
11
10
  expires: Date;
12
11
  // Relation to the User model.
13
12
  user: {
14
- id: string;
13
+ // The user's full name.
15
14
  name?: string;
15
+ // The user's email address, must be unique.
16
16
  email?: string;
17
17
  };
18
18
  };
@@ -1,2 +1,2 @@
1
- export declare const SessionTypeString = "\nYour response should adhere to the following type definition for the \"Session\" 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 Session = {\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: {\n id: string;\n name?: string;\n email?: string;\n };\n};\n\n";
1
+ export declare const SessionTypeString = "\n// Your response should adhere to the following type definition for the \"Session\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Session = {\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n };\n};\n\n";
2
2
  //# sourceMappingURL=Session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,ibAgB7B,CAAC"}
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,ofAgB7B,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StopLossTypeString = void 0;
4
4
  exports.StopLossTypeString = `
5
- Your response should adhere to the following type definition for the "StopLoss" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "StopLoss" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type StopLoss = {
10
9
  // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
@@ -1,2 +1,2 @@
1
- export declare const StopLossTypeString = "\nYour response should adhere to the following type definition for the \"StopLoss\" 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 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\n";
1
+ export declare const StopLossTypeString = "\n// Your response should adhere to the following type definition for the \"StopLoss\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type 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\n";
2
2
  //# sourceMappingURL=StopLoss.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StopLoss.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/StopLoss.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,qsBAY9B,CAAC"}
1
+ {"version":3,"file":"StopLoss.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/StopLoss.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,ysBAW9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StopLoss.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/StopLoss.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;CAYjC,CAAC"}
1
+ {"version":3,"file":"StopLoss.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/StopLoss.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;CAWjC,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TakeProfitTypeString = void 0;
4
4
  exports.TakeProfitTypeString = `
5
- Your response should adhere to the following type definition for the "TakeProfit" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "TakeProfit" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type TakeProfit = {
10
9
  // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.
@@ -1,2 +1,2 @@
1
- export declare const TakeProfitTypeString = "\nYour response should adhere to the following type definition for the \"TakeProfit\" 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 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\n";
1
+ export declare const TakeProfitTypeString = "\n// Your response should adhere to the following type definition for the \"TakeProfit\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type 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\n";
2
2
  //# sourceMappingURL=TakeProfit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TakeProfit.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/TakeProfit.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,4rBAYhC,CAAC"}
1
+ {"version":3,"file":"TakeProfit.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/TakeProfit.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gsBAWhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TakeProfit.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/TakeProfit.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;;;;;;;;;;;;CAYnC,CAAC"}
1
+ {"version":3,"file":"TakeProfit.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/TakeProfit.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;;;;;;;;;;;CAWnC,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TradeTypeString = void 0;
4
4
  exports.TradeTypeString = `
5
- Your response should adhere to the following type definition for the "Trade" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Trade" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Trade = {
10
9
  // Quantity of the asset being traded.
@@ -27,17 +26,48 @@ export type Trade = {
27
26
  status: TradeStatus;
28
27
  // Relation to the Asset model.
29
28
  asset: {
29
+ // Ticker symbol of the asset
30
30
  symbol: string;
31
+ // Full name of the asset
31
32
  name: string;
33
+ // Type of the asset, defined by AssetType enum.
32
34
  type: AssetType;
33
35
  };
34
36
  // List of actions associated with this trade.
35
37
  actions: {
36
- id: string;
38
+ // Sequence number of the action within the trade.
37
39
  sequence: number;
40
+ // Type of trade action, defined by ActionType enum.
38
41
  type: ActionType;
42
+ // Additional notes or comments about the action.
39
43
  note: string;
44
+ // Current status of the trade action.
40
45
  status: ActionStatus;
46
+ // The order associated with this action.
47
+ order?: {
48
+ // 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.
49
+ qty?: number;
50
+ // Side of the order ('BUY' or 'SELL').
51
+ side: OrderSide;
52
+ // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').
53
+ type: OrderType;
54
+ // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.
55
+ orderClass: OrderClass;
56
+ // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').
57
+ timeInForce: TimeInForce;
58
+ // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.
59
+ trailPercent?: number;
60
+ // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.
61
+ extendedHours?: boolean;
62
+ // Current status of the order.
63
+ status: OrderStatus;
64
+ // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.
65
+ strikePrice?: number;
66
+ // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.
67
+ expirationDate?: Date;
68
+ // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.
69
+ optionType?: OptionType;
70
+ };
41
71
  }[];
42
72
  };
43
73
 
@@ -290,5 +320,124 @@ enum ActionStatus {
290
320
  CANCELED
291
321
  }
292
322
 
323
+ enum OrderSide {
324
+ /// Represents the buying side of a trade action.
325
+ BUY
326
+
327
+ /// Represents the selling side of a trade action.
328
+ SELL
329
+ }
330
+
331
+ enum OrderType {
332
+ /// Executes immediately at the best available current market price.
333
+ MARKET
334
+
335
+ /// Executes only at the specified limit price or better.
336
+ LIMIT
337
+
338
+ /// Becomes a market order once the stop price is triggered.
339
+ STOP
340
+
341
+ /// Becomes a limit order once the stop price is triggered.
342
+ STOP_LIMIT
343
+
344
+ /// Adjusts the stop price based on a specified trail amount or percentage.
345
+ TRAILING_STOP
346
+ }
347
+
348
+ enum OrderClass {
349
+ /// A single standalone order without additional conditions.
350
+ SIMPLE
351
+
352
+ /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.
353
+ BRACKET
354
+
355
+ /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.
356
+ OCO
357
+
358
+ /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.
359
+ OSO
360
+
361
+ /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.
362
+ OTO
363
+ }
364
+
365
+ // Time in force enum (day, gtc, opg, cls, etc.).
366
+ enum TimeInForce {
367
+ /// The order is valid for the day and expires at market close.
368
+ DAY
369
+
370
+ /// The order is valid until canceled by the user.
371
+ GTC
372
+
373
+ /// The order is valid for the opening of the market.
374
+ OPG
375
+
376
+ /// The order is valid until the close of the market.
377
+ CLS
378
+
379
+ /// The order must be executed immediately or canceled.
380
+ IOC
381
+
382
+ /// The order must be executed immediately or canceled.
383
+ FOK
384
+ }
385
+
386
+ enum OrderStatus {
387
+ /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.
388
+ STAGED
389
+
390
+ /// The order has been received by Alpaca, and routed to exchanges for execution. This is the usual initial state of an order after being received.
391
+ NEW
392
+
393
+ /// The order has been partially filled.
394
+ PARTIALLY_FILLED
395
+
396
+ /// The order has been filled, and no further updates will occur for the order.
397
+ FILLED
398
+
399
+ /// The order is done executing for the day, and will not receive further updates until the next trading day.
400
+ DONE_FOR_DAY
401
+
402
+ /// The order has been canceled, and no further updates will occur for the order. This can be either due to a cancel request by the user, or the order has been canceled by the exchanges due to its time-in-force.
403
+ CANCELED
404
+
405
+ /// The order has expired, and no further updates will occur for the order.
406
+ EXPIRED
407
+
408
+ /// The order is waiting to be triggered, usually for stop or stop-limit orders.
409
+ HELD
410
+
411
+ /// The order was replaced by another order, or was updated due to a market event such as corporate action.
412
+ REPLACED
413
+
414
+ /// The order is waiting to be canceled.
415
+ PENDING_CANCEL
416
+
417
+ /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.
418
+ PENDING_REPLACE
419
+
420
+ /// The order has been received by Alpaca, but hasn’t yet been routed to the execution venue. This could be seen often outside of trading session hours.
421
+ ACCEPTED
422
+
423
+ /// The order has been received by Alpaca, and routed to the exchanges, but has not yet been accepted for execution. This state only occurs on rare occasions.
424
+ PENDING_NEW
425
+
426
+ /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.
427
+ ACCEPTED_FOR_BIDDING
428
+
429
+ /// The order has been stopped, and a trade is guaranteed for the order, usually at a stated price or better, but has not yet occurred. This state only occurs on rare occasions.
430
+ STOPPED
431
+
432
+ /// The order has been rejected, and no further updates will occur for the order. This state occurs on rare occasions and may occur based on various conditions decided by the exchanges.
433
+ REJECTED
434
+
435
+ /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.
436
+ SUSPENDED
437
+
438
+ /// The order has been completed for the day (either filled or done for day), but remaining settlement calculations are still pending. This state only occurs on rare occasions.
439
+ CALCULATED
440
+ }
441
+
293
442
  `;
294
443
  //# sourceMappingURL=Trade.js.map
@@ -1,2 +1,2 @@
1
- export declare const TradeTypeString = "\nYour response should adhere to the following type definition for the \"Trade\" 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 Trade = {\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Option Type (CALL or PUT) if the asset is an option.\n optionType?: OptionType;\n // Signal that triggered the trade.\n signal: TradeSignal;\n // Strategy used to execute the trade.\n strategy: TradeStrategy;\n // summary of the trade decision (this should be a short description of the trade).\n summary: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the Asset model.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // List of actions associated with this trade.\n actions: {\n id: string;\n sequence: number;\n type: ActionType;\n note: string;\n status: ActionStatus;\n }[];\n};\n\nenum OptionType {\n /// A contract that gives the holder the right to buy the underlying asset.\n CALL\n\n /// A contract that gives the holder the right to sell the underlying asset.\n PUT\n}\n\nenum TradeSignal {\n /// A bullish signal when a short-term moving average crosses above a long-term moving average.\n GOLDEN_CROSS\n\n /// Signal generated when a short-term moving average crosses above or below a long-term moving average.\n MOVING_AVERAGE_CROSSOVER\n\n /// Indicates that the Relative Strength Index (RSI) is over the overbought threshold.\n RSI_OVERBOUGHT\n\n /// Indicates that the Relative Strength Index (RSI) is below the oversold threshold.\n RSI_OVERSOLD\n\n /// A signal generated by the Moving Average Convergence Divergence (MACD) indicator crossing.\n MACD_CROSSOVER\n\n /// Occurs when the price breaks above or below the Bollinger Bands.\n BOLLINGER_BANDS_BREAKOUT\n\n /// A signal indicating a reversal in the current trend.\n TREND_REVERSAL\n\n /// A sudden increase in market volatility.\n VOLATILITY_SPIKE\n\n /// Signals based on specific price patterns and actions.\n PRICE_ACTION\n\n /// A surge in the implied volatility of options contracts.\n IMPLIED_VOLATILITY_SURGE\n\n /// When the price breaks above a resistance level, indicating potential upward movement.\n BREAKOUT_ABOVE_RESISTANCE\n\n /// When the price breaks below a support level, indicating potential downward movement.\n BREAKDOWN_BELOW_SUPPORT\n\n /// When the price holds above a support level, indicating strength.\n SUPPORT_LEVEL_HOLD\n\n /// When the price holds below a resistance level, indicating weakness.\n RESISTANCE_LEVEL_HOLD\n\n /// Signals based on Fibonacci retracement levels.\n FIBONACCI_RETRACEMENT\n\n /// Wave patterns identified using Elliott Wave theory.\n ELLIOTT_WAVE\n\n /// Signals generated by the Parabolic SAR indicator.\n PARABOLIC_SAR\n\n /// Indicates the strength of a trend based on the Average Directional Index (ADX).\n ADX_TREND_STRENGTH\n\n /// Indicates that the Commodity Channel Index (CCI) is over the overbought threshold.\n CCI_OVERBOUGHT\n\n /// Indicates that the Commodity Channel Index (CCI) is below the oversold threshold.\n CCI_OVERSOLD\n\n /// Indicates that the Stochastic Oscillator is below the oversold threshold.\n STOCHASTIC_OVERSOLD\n\n /// Indicates that the Stochastic Oscillator is above the overbought threshold.\n STOCHASTIC_OVERBOUGHT\n\n /// Signals based on divergence between price and an indicator.\n DIVERGENCE_SIGNAL\n\n /// Patterns identified using Gann Fan techniques.\n GANN_FAN\n\n /// Occurs when the price breaks out of the Donchian Channels.\n DONCHIAN_CHANNEL_BREAKOUT\n\n /// Signals based on pivot point levels.\n PIVOT_POINT\n\n /// Occurs when the price breaks out of the Keltner Channels.\n KELTNER_CHANNEL_BREAK\n\n /// Signals generated by the Heikin Ashi moving average crossover.\n HEIKIN_ASHI_CROSSOVER\n\n /// A sudden surge in trading volume.\n VOLUME_SURGE\n\n /// Imbalance in the order book indicating potential price movement.\n ORDER_BOOK_IMBALANCE\n\n /// Anomalies detected in time series data.\n TIME_SERIES_ANOMALY\n\n /// Level indicating potential mean reversion trading opportunities.\n MEAN_REVERSION_LEVEL\n\n /// Signals based on pair trading strategies.\n PAIR_TRADING_SIGNAL\n\n /// Thresholds based on sentiment score.\n SENTIMENT_SCORE_THRESHOLD\n\n /// Changes in news sentiment related to the asset.\n NEWS_SENTIMENT_CHANGE\n\n /// Impact of order flow on price movement.\n ORDER_FLOW_IMPACT\n\n /// Movements driven by liquidity in the market.\n LIQUIDITY_DRIVEN_MOVE\n\n /// Predictions generated by machine learning models.\n MACHINE_LEARNING_PREDICTION\n\n /// Triggers based on sentiment analysis.\n SENTIMENT_ANALYSIS_TRIGGER\n\n /// No specific signal or reason for the trade.\n NO_SIGNAL\n}\n\nenum TradeStrategy {\n /// Analyzes historical price data to predict future movements.\n TECHNICAL_ANALYSIS\n\n /// Follows the trend of an asset's price movement.\n TREND_FOLLOWING\n\n /// Capitalizes on price discrepancies between assets.\n MEAN_REVERSION\n\n /// Uses options contracts to hedge risk or generate income.\n OPTIONS_STRATEGY\n\n /// Utilizes momentum to amplify returns on investments.\n MOMENTUM_STRATEGY\n\n /// Exploits price differences between markets or related assets.\n ARBITRAGE\n\n /// Uses statistical methods to identify profitable trades.\n STATISTICAL_ARBITRAGE\n\n /// Provides liquidity to the market by continuously buying and selling.\n MARKET_MAKING\n\n /// Uses news events to predict and capitalize on market movements.\n NEWS_BASED_STRATEGY\n\n /// Analyzes sentiment data to predict market movements.\n SENTIMENT_ANALYSIS\n\n /// Supplies liquidity to earn profits from bid-ask spreads.\n LIQUIDITY_PROVISION\n\n /// Profits from small price changes by executing numerous trades.\n SCALPING\n\n /// Trades based on volatility patterns in the market.\n VOLATILITY_TRADING\n\n /// Executes trades based on economic indicators and data releases.\n EVENT_DRIVEN\n\n /// Trades based on breakout patterns from established support or resistance levels.\n BREAKOUT_STRATEGY\n\n /// Trades based on the flow and volume of orders in the market.\n ORDER_FLOW_TRADING\n\n /// Pairs assets to capitalize on relative price movements between them.\n PAIR_TRADING\n\n /// Trades based on the rotation of funds between different market sectors.\n SECTOR_ROTATION\n\n /// Executes a large number of trades at high speed to capitalize on small price changes.\n HIGH_FREQUENCY_TRADING\n\n /// Utilizes machine vision techniques to analyze market data and execute trades.\n MACHINE_VISION_ANALYSIS\n\n /// No specific strategy or approach to trading.\n NO_STRATEGY\n}\n\nenum TradeStatus {\n /// The trade is pending and has not yet been processed.\n PENDING\n\n /// The trade is currently open and active.\n OPEN\n\n /// The trade is partially filled.\n PARTIAL\n\n /// The trade has been fully completed.\n COMPLETED\n\n /// The trade has been canceled.\n CANCELED\n}\n\nenum ActionType {\n /// Initiates a purchase of an asset.\n BUY\n\n /// Identifies a suitable option contract and initiates its purchase.\n BUY_OPTION\n\n /// Exercises an option to buy or sell the underlying asset.\n EXERCISE_OPTION\n\n /// Initiates the sale of an asset.\n SELL\n\n /// Cancels an existing trade action.\n CANCEL\n\n /// Modifies the parameters of an existing trade.\n ADJUST\n\n /// Implements a hedging strategy to mitigate risk.\n HEDGE\n}\n\nenum ActionStatus {\n /// The trade action is planned and awaiting execution.\n STAGED\n\n /// The trade action has been executed but not yet finalized.\n EXECUTED\n\n /// The trade action has been fully completed.\n COMPLETED\n\n /// The trade action have been canceled.\n CANCELED\n}\n\n";
1
+ export declare const TradeTypeString = "\n// Your response should adhere to the following type definition for the \"Trade\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Trade = {\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Option Type (CALL or PUT) if the asset is an option.\n optionType?: OptionType;\n // Signal that triggered the trade.\n signal: TradeSignal;\n // Strategy used to execute the trade.\n strategy: TradeStrategy;\n // summary of the trade decision (this should be a short description of the trade).\n summary: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the Asset model.\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 // List of actions associated with this trade.\n actions: {\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 // The order associated with this action.\n order?: {\n // 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.\n qty?: 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. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n }[];\n};\n\nenum OptionType {\n /// A contract that gives the holder the right to buy the underlying asset.\n CALL\n\n /// A contract that gives the holder the right to sell the underlying asset.\n PUT\n}\n\nenum TradeSignal {\n /// A bullish signal when a short-term moving average crosses above a long-term moving average.\n GOLDEN_CROSS\n\n /// Signal generated when a short-term moving average crosses above or below a long-term moving average.\n MOVING_AVERAGE_CROSSOVER\n\n /// Indicates that the Relative Strength Index (RSI) is over the overbought threshold.\n RSI_OVERBOUGHT\n\n /// Indicates that the Relative Strength Index (RSI) is below the oversold threshold.\n RSI_OVERSOLD\n\n /// A signal generated by the Moving Average Convergence Divergence (MACD) indicator crossing.\n MACD_CROSSOVER\n\n /// Occurs when the price breaks above or below the Bollinger Bands.\n BOLLINGER_BANDS_BREAKOUT\n\n /// A signal indicating a reversal in the current trend.\n TREND_REVERSAL\n\n /// A sudden increase in market volatility.\n VOLATILITY_SPIKE\n\n /// Signals based on specific price patterns and actions.\n PRICE_ACTION\n\n /// A surge in the implied volatility of options contracts.\n IMPLIED_VOLATILITY_SURGE\n\n /// When the price breaks above a resistance level, indicating potential upward movement.\n BREAKOUT_ABOVE_RESISTANCE\n\n /// When the price breaks below a support level, indicating potential downward movement.\n BREAKDOWN_BELOW_SUPPORT\n\n /// When the price holds above a support level, indicating strength.\n SUPPORT_LEVEL_HOLD\n\n /// When the price holds below a resistance level, indicating weakness.\n RESISTANCE_LEVEL_HOLD\n\n /// Signals based on Fibonacci retracement levels.\n FIBONACCI_RETRACEMENT\n\n /// Wave patterns identified using Elliott Wave theory.\n ELLIOTT_WAVE\n\n /// Signals generated by the Parabolic SAR indicator.\n PARABOLIC_SAR\n\n /// Indicates the strength of a trend based on the Average Directional Index (ADX).\n ADX_TREND_STRENGTH\n\n /// Indicates that the Commodity Channel Index (CCI) is over the overbought threshold.\n CCI_OVERBOUGHT\n\n /// Indicates that the Commodity Channel Index (CCI) is below the oversold threshold.\n CCI_OVERSOLD\n\n /// Indicates that the Stochastic Oscillator is below the oversold threshold.\n STOCHASTIC_OVERSOLD\n\n /// Indicates that the Stochastic Oscillator is above the overbought threshold.\n STOCHASTIC_OVERBOUGHT\n\n /// Signals based on divergence between price and an indicator.\n DIVERGENCE_SIGNAL\n\n /// Patterns identified using Gann Fan techniques.\n GANN_FAN\n\n /// Occurs when the price breaks out of the Donchian Channels.\n DONCHIAN_CHANNEL_BREAKOUT\n\n /// Signals based on pivot point levels.\n PIVOT_POINT\n\n /// Occurs when the price breaks out of the Keltner Channels.\n KELTNER_CHANNEL_BREAK\n\n /// Signals generated by the Heikin Ashi moving average crossover.\n HEIKIN_ASHI_CROSSOVER\n\n /// A sudden surge in trading volume.\n VOLUME_SURGE\n\n /// Imbalance in the order book indicating potential price movement.\n ORDER_BOOK_IMBALANCE\n\n /// Anomalies detected in time series data.\n TIME_SERIES_ANOMALY\n\n /// Level indicating potential mean reversion trading opportunities.\n MEAN_REVERSION_LEVEL\n\n /// Signals based on pair trading strategies.\n PAIR_TRADING_SIGNAL\n\n /// Thresholds based on sentiment score.\n SENTIMENT_SCORE_THRESHOLD\n\n /// Changes in news sentiment related to the asset.\n NEWS_SENTIMENT_CHANGE\n\n /// Impact of order flow on price movement.\n ORDER_FLOW_IMPACT\n\n /// Movements driven by liquidity in the market.\n LIQUIDITY_DRIVEN_MOVE\n\n /// Predictions generated by machine learning models.\n MACHINE_LEARNING_PREDICTION\n\n /// Triggers based on sentiment analysis.\n SENTIMENT_ANALYSIS_TRIGGER\n\n /// No specific signal or reason for the trade.\n NO_SIGNAL\n}\n\nenum TradeStrategy {\n /// Analyzes historical price data to predict future movements.\n TECHNICAL_ANALYSIS\n\n /// Follows the trend of an asset's price movement.\n TREND_FOLLOWING\n\n /// Capitalizes on price discrepancies between assets.\n MEAN_REVERSION\n\n /// Uses options contracts to hedge risk or generate income.\n OPTIONS_STRATEGY\n\n /// Utilizes momentum to amplify returns on investments.\n MOMENTUM_STRATEGY\n\n /// Exploits price differences between markets or related assets.\n ARBITRAGE\n\n /// Uses statistical methods to identify profitable trades.\n STATISTICAL_ARBITRAGE\n\n /// Provides liquidity to the market by continuously buying and selling.\n MARKET_MAKING\n\n /// Uses news events to predict and capitalize on market movements.\n NEWS_BASED_STRATEGY\n\n /// Analyzes sentiment data to predict market movements.\n SENTIMENT_ANALYSIS\n\n /// Supplies liquidity to earn profits from bid-ask spreads.\n LIQUIDITY_PROVISION\n\n /// Profits from small price changes by executing numerous trades.\n SCALPING\n\n /// Trades based on volatility patterns in the market.\n VOLATILITY_TRADING\n\n /// Executes trades based on economic indicators and data releases.\n EVENT_DRIVEN\n\n /// Trades based on breakout patterns from established support or resistance levels.\n BREAKOUT_STRATEGY\n\n /// Trades based on the flow and volume of orders in the market.\n ORDER_FLOW_TRADING\n\n /// Pairs assets to capitalize on relative price movements between them.\n PAIR_TRADING\n\n /// Trades based on the rotation of funds between different market sectors.\n SECTOR_ROTATION\n\n /// Executes a large number of trades at high speed to capitalize on small price changes.\n HIGH_FREQUENCY_TRADING\n\n /// Utilizes machine vision techniques to analyze market data and execute trades.\n MACHINE_VISION_ANALYSIS\n\n /// No specific strategy or approach to trading.\n NO_STRATEGY\n}\n\nenum TradeStatus {\n /// The trade is pending and has not yet been processed.\n PENDING\n\n /// The trade is currently open and active.\n OPEN\n\n /// The trade is partially filled.\n PARTIAL\n\n /// The trade has been fully completed.\n COMPLETED\n\n /// The trade has been canceled.\n CANCELED\n}\n\nenum ActionType {\n /// Initiates a purchase of an asset.\n BUY\n\n /// Identifies a suitable option contract and initiates its purchase.\n BUY_OPTION\n\n /// Exercises an option to buy or sell the underlying asset.\n EXERCISE_OPTION\n\n /// Initiates the sale of an asset.\n SELL\n\n /// Cancels an existing trade action.\n CANCEL\n\n /// Modifies the parameters of an existing trade.\n ADJUST\n\n /// Implements a hedging strategy to mitigate risk.\n HEDGE\n}\n\nenum ActionStatus {\n /// The trade action is planned and awaiting execution.\n STAGED\n\n /// The trade action has been executed but not yet finalized.\n EXECUTED\n\n /// The trade action has been fully completed.\n COMPLETED\n\n /// The trade action have been canceled.\n CANCELED\n}\n\nenum OrderSide {\n /// Represents the buying side of a trade action.\n BUY\n\n /// Represents the selling side of a trade action.\n SELL\n}\n\nenum OrderType {\n /// Executes immediately at the best available current market price.\n MARKET\n\n /// Executes only at the specified limit price or better.\n LIMIT\n\n /// Becomes a market order once the stop price is triggered.\n STOP\n\n /// Becomes a limit order once the stop price is triggered.\n STOP_LIMIT\n\n /// Adjusts the stop price based on a specified trail amount or percentage.\n TRAILING_STOP\n}\n\nenum OrderClass {\n /// A single standalone order without additional conditions.\n SIMPLE\n\n /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.\n BRACKET\n\n /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.\n OCO\n\n /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.\n OSO\n\n /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.\n OTO\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nenum TimeInForce {\n /// The order is valid for the day and expires at market close.\n DAY\n\n /// The order is valid until canceled by the user.\n GTC\n\n /// The order is valid for the opening of the market.\n OPG\n\n /// The order is valid until the close of the market.\n CLS\n\n /// The order must be executed immediately or canceled.\n IOC\n\n /// The order must be executed immediately or canceled.\n FOK\n}\n\nenum OrderStatus {\n /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.\n STAGED\n\n /// The order has been received by Alpaca, and routed to exchanges for execution. This is the usual initial state of an order after being received.\n NEW\n\n /// The order has been partially filled.\n PARTIALLY_FILLED\n\n /// The order has been filled, and no further updates will occur for the order.\n FILLED\n\n /// The order is done executing for the day, and will not receive further updates until the next trading day.\n DONE_FOR_DAY\n\n /// The order has been canceled, and no further updates will occur for the order. This can be either due to a cancel request by the user, or the order has been canceled by the exchanges due to its time-in-force.\n CANCELED\n\n /// The order has expired, and no further updates will occur for the order.\n EXPIRED\n\n /// The order is waiting to be triggered, usually for stop or stop-limit orders.\n HELD\n\n /// The order was replaced by another order, or was updated due to a market event such as corporate action.\n REPLACED\n\n /// The order is waiting to be canceled.\n PENDING_CANCEL\n\n /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.\n PENDING_REPLACE\n\n /// The order has been received by Alpaca, but hasn\u2019t yet been routed to the execution venue. This could be seen often outside of trading session hours.\n ACCEPTED\n\n /// The order has been received by Alpaca, and routed to the exchanges, but has not yet been accepted for execution. This state only occurs on rare occasions.\n PENDING_NEW\n\n /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.\n ACCEPTED_FOR_BIDDING\n\n /// The order has been stopped, and a trade is guaranteed for the order, usually at a stated price or better, but has not yet occurred. This state only occurs on rare occasions.\n STOPPED\n\n /// The order has been rejected, and no further updates will occur for the order. This state occurs on rare occasions and may occur based on various conditions decided by the exchanges.\n REJECTED\n\n /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.\n SUSPENDED\n\n /// The order has been completed for the day (either filled or done for day), but remaining settlement calculations are still pending. This state only occurs on rare occasions.\n CALCULATED\n}\n\n";
2
2
  //# sourceMappingURL=Trade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,g7PAiS3B,CAAC"}
1
+ {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,+8bAsb3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Trade.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiS9B,CAAC"}
1
+ {"version":3,"file":"Trade.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsb9B,CAAC"}