adaptic-backend 1.0.191 → 1.0.193

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 (200) hide show
  1. package/generated/typeStrings/Account.cjs +1 -0
  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 +1 -63
  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 +1 -0
  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 +3 -58
  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 +1 -0
  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 +1 -0
  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 +2 -107
  26. package/generated/typeStrings/Customer.d.ts +1 -1
  27. package/generated/typeStrings/Customer.d.ts.map +1 -1
  28. package/generated/typeStrings/Customer.js.map +1 -1
  29. package/generated/typeStrings/EconomicEvent.cjs +1 -0
  30. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  31. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  32. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  33. package/generated/typeStrings/MarketSentiment.cjs +1 -0
  34. package/generated/typeStrings/MarketSentiment.d.ts +1 -1
  35. package/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  36. package/generated/typeStrings/MarketSentiment.js.map +1 -1
  37. package/generated/typeStrings/NewsArticle.cjs +1 -0
  38. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  39. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  40. package/generated/typeStrings/NewsArticle.js.map +1 -1
  41. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +1 -3
  42. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  43. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  44. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  45. package/generated/typeStrings/Order.cjs +19 -21
  46. package/generated/typeStrings/Order.d.ts +1 -1
  47. package/generated/typeStrings/Order.d.ts.map +1 -1
  48. package/generated/typeStrings/Order.js.map +1 -1
  49. package/generated/typeStrings/Position.cjs +1 -3
  50. package/generated/typeStrings/Position.d.ts +1 -1
  51. package/generated/typeStrings/Position.d.ts.map +1 -1
  52. package/generated/typeStrings/Position.js.map +1 -1
  53. package/generated/typeStrings/ScheduledOptionOrder.cjs +1 -0
  54. package/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
  55. package/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
  56. package/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
  57. package/generated/typeStrings/Session.cjs +1 -121
  58. package/generated/typeStrings/Session.d.ts +1 -1
  59. package/generated/typeStrings/Session.d.ts.map +1 -1
  60. package/generated/typeStrings/Session.js.map +1 -1
  61. package/generated/typeStrings/StopLoss.cjs +0 -143
  62. package/generated/typeStrings/StopLoss.d.ts +1 -1
  63. package/generated/typeStrings/StopLoss.d.ts.map +1 -1
  64. package/generated/typeStrings/StopLoss.js.map +1 -1
  65. package/generated/typeStrings/TakeProfit.cjs +0 -143
  66. package/generated/typeStrings/TakeProfit.d.ts +1 -1
  67. package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  68. package/generated/typeStrings/TakeProfit.js.map +1 -1
  69. package/generated/typeStrings/Trade.cjs +2 -131
  70. package/generated/typeStrings/Trade.d.ts +1 -1
  71. package/generated/typeStrings/Trade.d.ts.map +1 -1
  72. package/generated/typeStrings/Trade.js.map +1 -1
  73. package/generated/typeStrings/User.cjs +3 -71
  74. package/generated/typeStrings/User.d.ts +1 -1
  75. package/generated/typeStrings/User.d.ts.map +1 -1
  76. package/generated/typeStrings/User.js.map +1 -1
  77. package/generated/typeStrings/VerificationToken.cjs +1 -0
  78. package/generated/typeStrings/VerificationToken.d.ts +1 -1
  79. package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  80. package/generated/typeStrings/VerificationToken.js.map +1 -1
  81. package/generated/typeStrings/index.d.ts +20 -20
  82. package/generated/typegraphql-prisma/models/Order.cjs +17 -17
  83. package/generated/typegraphql-prisma/models/Order.d.ts +20 -20
  84. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  85. package/generated/typegraphql-prisma/models/StopLoss.cjs +1 -1
  86. package/generated/typegraphql-prisma/models/StopLoss.d.ts +2 -2
  87. package/generated/typegraphql-prisma/models/StopLoss.js.map +1 -1
  88. package/generated/typegraphql-prisma/models/TakeProfit.cjs +1 -1
  89. package/generated/typegraphql-prisma/models/TakeProfit.d.ts +2 -2
  90. package/generated/typegraphql-prisma/models/TakeProfit.js.map +1 -1
  91. package/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  92. package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.cjs +3 -3
  93. package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
  94. package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.cjs +1 -1
  95. package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map +1 -1
  96. package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.cjs +1 -1
  97. package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.js.map +1 -1
  98. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +1 -1
  99. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  100. package/package.json +1 -1
  101. package/server/generated/typeStrings/Account.d.ts +1 -1
  102. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  103. package/server/generated/typeStrings/Account.js.map +1 -1
  104. package/server/generated/typeStrings/Account.mjs +1 -0
  105. package/server/generated/typeStrings/Action.d.ts +1 -1
  106. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  107. package/server/generated/typeStrings/Action.js.map +1 -1
  108. package/server/generated/typeStrings/Action.mjs +1 -63
  109. package/server/generated/typeStrings/Alert.d.ts +1 -1
  110. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  111. package/server/generated/typeStrings/Alert.js.map +1 -1
  112. package/server/generated/typeStrings/Alert.mjs +1 -0
  113. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  114. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  115. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  116. package/server/generated/typeStrings/AlpacaAccount.mjs +3 -58
  117. package/server/generated/typeStrings/Asset.d.ts +1 -1
  118. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  119. package/server/generated/typeStrings/Asset.js.map +1 -1
  120. package/server/generated/typeStrings/Asset.mjs +1 -0
  121. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  122. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  123. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  124. package/server/generated/typeStrings/Authenticator.mjs +1 -0
  125. package/server/generated/typeStrings/Customer.d.ts +1 -1
  126. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  127. package/server/generated/typeStrings/Customer.js.map +1 -1
  128. package/server/generated/typeStrings/Customer.mjs +2 -107
  129. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  130. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  131. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  132. package/server/generated/typeStrings/EconomicEvent.mjs +1 -0
  133. package/server/generated/typeStrings/MarketSentiment.d.ts +1 -1
  134. package/server/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  135. package/server/generated/typeStrings/MarketSentiment.js.map +1 -1
  136. package/server/generated/typeStrings/MarketSentiment.mjs +1 -0
  137. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  138. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  139. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  140. package/server/generated/typeStrings/NewsArticle.mjs +1 -0
  141. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  142. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  143. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  144. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +1 -3
  145. package/server/generated/typeStrings/Order.d.ts +1 -1
  146. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  147. package/server/generated/typeStrings/Order.js.map +1 -1
  148. package/server/generated/typeStrings/Order.mjs +19 -21
  149. package/server/generated/typeStrings/Position.d.ts +1 -1
  150. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  151. package/server/generated/typeStrings/Position.js.map +1 -1
  152. package/server/generated/typeStrings/Position.mjs +1 -3
  153. package/server/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
  154. package/server/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
  155. package/server/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
  156. package/server/generated/typeStrings/ScheduledOptionOrder.mjs +1 -0
  157. package/server/generated/typeStrings/Session.d.ts +1 -1
  158. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  159. package/server/generated/typeStrings/Session.js.map +1 -1
  160. package/server/generated/typeStrings/Session.mjs +1 -121
  161. package/server/generated/typeStrings/StopLoss.d.ts +1 -1
  162. package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
  163. package/server/generated/typeStrings/StopLoss.js.map +1 -1
  164. package/server/generated/typeStrings/StopLoss.mjs +0 -143
  165. package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
  166. package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  167. package/server/generated/typeStrings/TakeProfit.js.map +1 -1
  168. package/server/generated/typeStrings/TakeProfit.mjs +0 -143
  169. package/server/generated/typeStrings/Trade.d.ts +1 -1
  170. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  171. package/server/generated/typeStrings/Trade.js.map +1 -1
  172. package/server/generated/typeStrings/Trade.mjs +2 -131
  173. package/server/generated/typeStrings/User.d.ts +1 -1
  174. package/server/generated/typeStrings/User.d.ts.map +1 -1
  175. package/server/generated/typeStrings/User.js.map +1 -1
  176. package/server/generated/typeStrings/User.mjs +3 -71
  177. package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
  178. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  179. package/server/generated/typeStrings/VerificationToken.js.map +1 -1
  180. package/server/generated/typeStrings/VerificationToken.mjs +1 -0
  181. package/server/generated/typeStrings/index.d.ts +20 -20
  182. package/server/generated/typegraphql-prisma/models/Order.d.ts +20 -20
  183. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  184. package/server/generated/typegraphql-prisma/models/Order.mjs +37 -37
  185. package/server/generated/typegraphql-prisma/models/StopLoss.d.ts +2 -2
  186. package/server/generated/typegraphql-prisma/models/StopLoss.js.map +1 -1
  187. package/server/generated/typegraphql-prisma/models/StopLoss.mjs +3 -3
  188. package/server/generated/typegraphql-prisma/models/TakeProfit.d.ts +2 -2
  189. package/server/generated/typegraphql-prisma/models/TakeProfit.js.map +1 -1
  190. package/server/generated/typegraphql-prisma/models/TakeProfit.mjs +3 -3
  191. package/server/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  192. package/server/generated/typegraphql-prisma/models/Trade.mjs +1 -1
  193. package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
  194. package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.mjs +3 -3
  195. package/server/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map +1 -1
  196. package/server/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.mjs +1 -1
  197. package/server/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.js.map +1 -1
  198. package/server/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.mjs +1 -1
  199. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  200. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +1 -1
@@ -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 // 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};\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\n";
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\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\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,y5CAgD/C,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,myCA8C/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDlD,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ClD,CAAC"}
@@ -7,41 +7,41 @@ Your response should adhere to the following type definition for the "Order" typ
7
7
  Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
8
 
9
9
  export type Order = {
10
- // Quantity of the asset to be ordered.
10
+ // 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.
11
11
  qty?: number;
12
- // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.
12
+ // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.
13
13
  notional?: number;
14
- // Side of the order (BUY or SELL).
14
+ // Side of the order ('BUY' or 'SELL').
15
15
  side: OrderSide;
16
- // Type of order (market, limit, stop, stop_limit, trailing_stop).
16
+ // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').
17
17
  type: OrderType;
18
- // Order class for advanced order types (simple, bracket, oco, oso).
18
+ // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.
19
19
  orderClass: OrderClass;
20
- // Time in force for the order (day, gtc, opg, cls, ioc, fok).
20
+ // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').
21
21
  timeInForce: TimeInForce;
22
- // 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.
22
+ // 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.
23
23
  limitPrice?: number;
24
- // 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.
24
+ // 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'.
25
25
  stopPrice?: number;
26
- // Stop loss object required for bracket orders.
26
+ // 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'.
27
27
  stopLoss?: {
28
28
  // 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.
29
29
  stopPrice?: number;
30
30
  // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.
31
31
  limitPrice?: number;
32
32
  };
33
- // Take profit object required for bracket orders. For take_profit, must be base_price + 0.01.
33
+ // 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'.
34
34
  takeProfit?: {
35
35
  // 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.
36
36
  limitPrice?: number;
37
37
  // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
38
38
  stopPrice?: number;
39
39
  };
40
- // Must be a positive number and required for TRAILING_STOP orders.
40
+ // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.
41
41
  trailPrice?: number;
42
- // Must be a positive number representing the percentage and required for TRAILING_STOP orders.
42
+ // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.
43
43
  trailPercent?: number;
44
- // Whether the order is eligible for extended hours.
44
+ // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.
45
45
  extendedHours?: boolean;
46
46
  // Current status of the order.
47
47
  status: OrderStatus;
@@ -53,28 +53,26 @@ export type Order = {
53
53
  filledQty?: number;
54
54
  // Average price at which the order was filled.
55
55
  filledAvgPrice?: number;
56
- // Cancel requested at timestamp when the request to cancel an order was made.
56
+ // Timestamp when the request to cancel the order was made.
57
57
  cancelRequestedAt?: Date;
58
- // CanceledAt timestamp when the order was canceled.
58
+ // Timestamp when the order was canceled.
59
59
  canceledAt?: Date;
60
60
  // The asset this order is for.
61
61
  asset: {
62
- // Ticker symbol of the asset
63
62
  symbol: string;
64
- // Full name of the asset
65
63
  name: string;
66
- // Type of the asset, defined by AssetType enum.
67
64
  type: AssetType;
68
65
  };
69
66
  // Fee associated with the order.
70
67
  fee?: number;
71
- // Strike price for option orders.
68
+ // Strike price for option orders. Required when 'asset.type' is 'OPTION'.
72
69
  strikePrice?: number;
73
- // Expiration date for option orders.
70
+ // Expiration date for option orders. Required when 'asset.type' is 'OPTION'.
74
71
  expirationDate?: Date;
75
- // If the asset.type is OPTION, then provide type of contract (CALL or PUT).
72
+ // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.
76
73
  optionType?: OptionType;
77
74
  };
75
+
78
76
  export enum OrderSide {
79
77
  BUY = "BUY",
80
78
  SELL = "SELL"
@@ -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.\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};\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 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 // 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 // Timestamp when the request to cancel the order was made.\n cancelRequestedAt?: Date;\n // Timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // Fee associated with the order.\n fee?: number;\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\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";
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,0xKA2J3B,CAAC"}
1
+ {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,upMAyJ3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2J9B,CAAC"}
1
+ {"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyJ9B,CAAC"}
@@ -9,11 +9,8 @@ Importantly, DO NOT include any annotations in your response (i.e., remove the o
9
9
  export type Position = {
10
10
  // Relation to the Asset model.
11
11
  asset: {
12
- // Ticker symbol of the asset
13
12
  symbol: string;
14
- // Full name of the asset
15
13
  name: string;
16
- // Type of the asset, defined by AssetType enum.
17
14
  type: AssetType;
18
15
  };
19
16
  // The average price at which the asset was acquired.
@@ -43,6 +40,7 @@ export type Position = {
43
40
  // Indicates if the asset is marginable.
44
41
  assetMarginable: boolean;
45
42
  };
43
+
46
44
  export enum AssetType {
47
45
  STOCK = "STOCK",
48
46
  ETF = "ETF",
@@ -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 // 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};\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\n";
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\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\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,07DAkE9B,CAAC"}
1
+ {"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,o0DAgE9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Position.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEjC,CAAC"}
1
+ {"version":3,"file":"Position.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEjC,CAAC"}
@@ -10,5 +10,6 @@ export type ScheduledOptionOrder = {
10
10
  // Payload of the scheduled option order as a JSON object.
11
11
  payload: any;
12
12
  };
13
+
13
14
  `;
14
15
  //# sourceMappingURL=ScheduledOptionOrder.js.map
@@ -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";
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";
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,0WAS1C,CAAC"}
1
+ {"version":3,"file":"ScheduledOptionOrder.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/ScheduledOptionOrder.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,4WAU1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduledOptionOrder.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/ScheduledOptionOrder.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG;;;;;;;;;CAS7C,CAAC"}
1
+ {"version":3,"file":"ScheduledOptionOrder.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/ScheduledOptionOrder.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG;;;;;;;;;;CAU7C,CAAC"}
@@ -11,131 +11,11 @@ export type Session = {
11
11
  expires: Date;
12
12
  // Relation to the User model.
13
13
  user: {
14
- // The user's full name.
14
+ id: string;
15
15
  name?: string;
16
- // The user's email address, must be unique.
17
16
  email?: string;
18
- // URL to the user's profile image.
19
- image?: string;
20
- // The role assigned to the user, determining permissions.
21
- role: UserRole;
22
- // A short biography or description of the user.
23
- bio?: string;
24
- // The user's job title or position.
25
- jobTitle?: string;
26
- // The type of Alpaca account the user currently holds.
27
- currentAccount: AlpacaAccountType;
28
- // Relation to the Customer model.
29
- customer?: {
30
- // Name of the customer.
31
- name?: string;
32
- // Subscription plan the customer is enrolled in.
33
- plan?: SubscriptionPlan;
34
- // End date of the current billing period in Stripe.
35
- stripeCurrentPeriodEnd?: Date;
36
- };
37
- // The subscription plan the user is enrolled in.
38
- plan?: SubscriptionPlan;
39
- // List of Alpaca accounts linked to the user.
40
- alpacaAccounts: {
41
- // The type of Alpaca account (PAPER or LIVE).
42
- type: AlpacaAccountType;
43
- // JSON configuration settings for the Alpaca account.
44
- configuration?: any;
45
- // Indicates whether the market is currently open for trading.
46
- marketOpen: boolean;
47
- // List of positions held in this Alpaca account.
48
- positions: {
49
- // Relation to the Asset model.
50
- asset: {
51
- // Ticker symbol of the asset
52
- symbol: string;
53
- // Full name of the asset
54
- name: string;
55
- // Type of the asset, defined by AssetType enum.
56
- type: AssetType;
57
- };
58
- // The average price at which the asset was acquired.
59
- averageEntryPrice: number;
60
- // Total quantity of the asset held.
61
- qty: number;
62
- // Quantity of the asset available for trading.
63
- qtyAvailable: number;
64
- // Current market value of the position.
65
- marketValue: number;
66
- // Total cost basis of the position.
67
- costBasis: number;
68
- // Unrealized profit or loss of the position.
69
- unrealizedPL: number;
70
- // Unrealized profit or loss as a percentage.
71
- unrealizedPLPC: number;
72
- // Unrealized intraday profit or loss.
73
- unrealisedIntradayPL: number;
74
- // Unrealized intraday profit or loss as a percentage.
75
- unrealisedIntradayPLPC: number;
76
- // Current price of the asset.
77
- currentPrice: number;
78
- // Last traded price of the asset.
79
- lastTradePrice: number;
80
- // Price change of the asset for the day.
81
- changeToday: number;
82
- // Indicates if the asset is marginable.
83
- assetMarginable: boolean;
84
- }[];
85
- }[];
86
- // OpenAI API key for the user.
87
- openaiAPIKey?: string;
88
- // OpenAI API Language model selected by the user
89
- openaiModel?: OpenaiModel;
90
17
  };
91
18
  };
92
- export enum UserRole {
93
- OWNER = "OWNER",
94
- ADMIN = "ADMIN",
95
- USER = "USER"
96
- }
97
-
98
- export enum AlpacaAccountType {
99
- PAPER = "PAPER",
100
- LIVE = "LIVE"
101
- }
102
-
103
- export enum SubscriptionPlan {
104
- FREE = "FREE",
105
- PRO = "PRO",
106
- BUSINESS = "BUSINESS"
107
- }
108
-
109
- export enum AssetType {
110
- STOCK = "STOCK",
111
- ETF = "ETF",
112
- MUTUAL_FUND = "MUTUAL_FUND",
113
- CRYPTOCURRENCY = "CRYPTOCURRENCY",
114
- INDEX = "INDEX",
115
- COMMODITY = "COMMODITY",
116
- CURRENCY = "CURRENCY",
117
- OPTION = "OPTION",
118
- FUTURE = "FUTURE",
119
- BOND = "BOND",
120
- WARRANT = "WARRANT",
121
- ADR = "ADR",
122
- GDR = "GDR",
123
- UNIT = "UNIT",
124
- RIGHT = "RIGHT",
125
- REIT = "REIT",
126
- STRUCTURED_PRODUCT = "STRUCTURED_PRODUCT",
127
- SWAP = "SWAP",
128
- SPOT = "SPOT",
129
- FORWARD = "FORWARD",
130
- OTHER = "OTHER"
131
- }
132
-
133
- export enum OpenaiModel {
134
- GPT_4O = "GPT_4O",
135
- GPT_4O_MINI = "GPT_4O_MINI",
136
- O1_PREVIEW = "O1_PREVIEW",
137
- O1_MINI = "O1_MINI"
138
- }
139
19
 
140
20
  `;
141
21
  //# sourceMappingURL=Session.js.map
@@ -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 // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\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 // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n };\n};\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\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 OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
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";
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,8nIAwI7B,CAAC"}
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,ibAgB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwIhC,CAAC"}
1
+ {"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;CAgBhC,CAAC"}
@@ -11,150 +11,7 @@ export type StopLoss = {
11
11
  stopPrice?: number;
12
12
  // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.
13
13
  limitPrice?: number;
14
- // An order that is associated with this stop loss.
15
- Order: {
16
- // Quantity of the asset to be ordered.
17
- qty?: number;
18
- // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.
19
- notional?: number;
20
- // Side of the order (BUY or SELL).
21
- side: OrderSide;
22
- // Type of order (market, limit, stop, stop_limit, trailing_stop).
23
- type: OrderType;
24
- // Order class for advanced order types (simple, bracket, oco, oso).
25
- orderClass: OrderClass;
26
- // Time in force for the order (day, gtc, opg, cls, ioc, fok).
27
- timeInForce: TimeInForce;
28
- // 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.
29
- limitPrice?: number;
30
- // 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.
31
- stopPrice?: number;
32
- // Take profit object required for bracket orders. For take_profit, must be ≥ base_price + 0.01.
33
- takeProfit?: {
34
- // 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.
35
- limitPrice?: number;
36
- // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
37
- stopPrice?: number;
38
- };
39
- // Must be a positive number and required for TRAILING_STOP orders.
40
- trailPrice?: number;
41
- // Must be a positive number representing the percentage and required for TRAILING_STOP orders.
42
- trailPercent?: number;
43
- // Whether the order is eligible for extended hours.
44
- extendedHours?: boolean;
45
- // Current status of the order.
46
- status: OrderStatus;
47
- // Timestamp when the order was submitted.
48
- submittedAt?: Date;
49
- // Timestamp when the order was filled.
50
- filledAt?: Date;
51
- // Total quantity of the order that was filled.
52
- filledQty?: number;
53
- // Average price at which the order was filled.
54
- filledAvgPrice?: number;
55
- // Cancel requested at timestamp when the request to cancel an order was made.
56
- cancelRequestedAt?: Date;
57
- // CanceledAt timestamp when the order was canceled.
58
- canceledAt?: Date;
59
- // The asset this order is for.
60
- asset: {
61
- // Ticker symbol of the asset
62
- symbol: string;
63
- // Full name of the asset
64
- name: string;
65
- // Type of the asset, defined by AssetType enum.
66
- type: AssetType;
67
- };
68
- // Fee associated with the order.
69
- fee?: number;
70
- // Strike price for option orders.
71
- strikePrice?: number;
72
- // Expiration date for option orders.
73
- expirationDate?: Date;
74
- // If the asset.type is OPTION, then provide type of contract (CALL or PUT).
75
- optionType?: OptionType;
76
- };
77
14
  };
78
- export enum OrderSide {
79
- BUY = "BUY",
80
- SELL = "SELL"
81
- }
82
-
83
- export enum OrderType {
84
- MARKET = "MARKET",
85
- LIMIT = "LIMIT",
86
- STOP = "STOP",
87
- STOP_LIMIT = "STOP_LIMIT",
88
- TRAILING_STOP = "TRAILING_STOP"
89
- }
90
-
91
- export enum OrderClass {
92
- SIMPLE = "SIMPLE",
93
- BRACKET = "BRACKET",
94
- OCO = "OCO",
95
- OSO = "OSO",
96
- OTO = "OTO"
97
- }
98
-
99
- // Time in force enum (day, gtc, opg, cls, etc.).
100
- export enum TimeInForce {
101
- DAY = "DAY",
102
- GTC = "GTC",
103
- OPG = "OPG",
104
- CLS = "CLS",
105
- IOC = "IOC",
106
- FOK = "FOK"
107
- }
108
-
109
- export enum OrderStatus {
110
- STAGED = "STAGED",
111
- NEW = "NEW",
112
- PARTIALLY_FILLED = "PARTIALLY_FILLED",
113
- FILLED = "FILLED",
114
- DONE_FOR_DAY = "DONE_FOR_DAY",
115
- CANCELED = "CANCELED",
116
- EXPIRED = "EXPIRED",
117
- HELD = "HELD",
118
- REPLACED = "REPLACED",
119
- PENDING_CANCEL = "PENDING_CANCEL",
120
- PENDING_REPLACE = "PENDING_REPLACE",
121
- ACCEPTED = "ACCEPTED",
122
- PENDING_NEW = "PENDING_NEW",
123
- ACCEPTED_FOR_BIDDING = "ACCEPTED_FOR_BIDDING",
124
- STOPPED = "STOPPED",
125
- REJECTED = "REJECTED",
126
- SUSPENDED = "SUSPENDED",
127
- CALCULATED = "CALCULATED"
128
- }
129
-
130
- export enum AssetType {
131
- STOCK = "STOCK",
132
- ETF = "ETF",
133
- MUTUAL_FUND = "MUTUAL_FUND",
134
- CRYPTOCURRENCY = "CRYPTOCURRENCY",
135
- INDEX = "INDEX",
136
- COMMODITY = "COMMODITY",
137
- CURRENCY = "CURRENCY",
138
- OPTION = "OPTION",
139
- FUTURE = "FUTURE",
140
- BOND = "BOND",
141
- WARRANT = "WARRANT",
142
- ADR = "ADR",
143
- GDR = "GDR",
144
- UNIT = "UNIT",
145
- RIGHT = "RIGHT",
146
- REIT = "REIT",
147
- STRUCTURED_PRODUCT = "STRUCTURED_PRODUCT",
148
- SWAP = "SWAP",
149
- SPOT = "SPOT",
150
- FORWARD = "FORWARD",
151
- OTHER = "OTHER"
152
- }
153
-
154
- export enum OptionType {
155
- CALL = "CALL",
156
- PUT = "PUT"
157
- }
158
15
 
159
16
  `;
160
17
  //# sourceMappingURL=StopLoss.js.map
@@ -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 // An order that is associated with this stop loss.\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 // 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 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 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";
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,+4KA2J9B,CAAC"}
1
+ {"version":3,"file":"StopLoss.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/StopLoss.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,qsBAY9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StopLoss.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/StopLoss.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JjC,CAAC"}
1
+ {"version":3,"file":"StopLoss.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/StopLoss.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;CAYjC,CAAC"}