adaptic-backend 1.0.241 → 1.0.243

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 (115) hide show
  1. package/generated/typeStrings/Action.cjs +114 -0
  2. package/generated/typeStrings/Action.d.ts +1 -1
  3. package/generated/typeStrings/Action.d.ts.map +1 -1
  4. package/generated/typeStrings/Action.js.map +1 -1
  5. package/generated/typeStrings/Alert.cjs +0 -4
  6. package/generated/typeStrings/Alert.d.ts +1 -1
  7. package/generated/typeStrings/Alert.d.ts.map +1 -1
  8. package/generated/typeStrings/Alert.js.map +1 -1
  9. package/generated/typeStrings/AlpacaAccount.cjs +6 -21
  10. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  11. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  12. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  13. package/generated/typeStrings/Asset.cjs +44 -0
  14. package/generated/typeStrings/Asset.d.ts +1 -1
  15. package/generated/typeStrings/Asset.d.ts.map +1 -1
  16. package/generated/typeStrings/Asset.js.map +1 -1
  17. package/generated/typeStrings/Contract.cjs +44 -43
  18. package/generated/typeStrings/Contract.d.ts +1 -1
  19. package/generated/typeStrings/Contract.d.ts.map +1 -1
  20. package/generated/typeStrings/Contract.js.map +1 -1
  21. package/generated/typeStrings/Customer.cjs +8 -0
  22. package/generated/typeStrings/Customer.d.ts +1 -1
  23. package/generated/typeStrings/Customer.d.ts.map +1 -1
  24. package/generated/typeStrings/Customer.js.map +1 -1
  25. package/generated/typeStrings/Deliverable.cjs +144 -0
  26. package/generated/typeStrings/Deliverable.d.ts +1 -1
  27. package/generated/typeStrings/Deliverable.d.ts.map +1 -1
  28. package/generated/typeStrings/Deliverable.js.map +1 -1
  29. package/generated/typeStrings/EconomicEvent.cjs +0 -3
  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 +0 -7
  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/NewsArticleAssetSentiment.cjs +44 -0
  38. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  39. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  40. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  41. package/generated/typeStrings/Order.cjs +132 -0
  42. package/generated/typeStrings/Order.d.ts +1 -1
  43. package/generated/typeStrings/Order.d.ts.map +1 -1
  44. package/generated/typeStrings/Order.js.map +1 -1
  45. package/generated/typeStrings/Position.cjs +44 -0
  46. package/generated/typeStrings/Position.d.ts +1 -1
  47. package/generated/typeStrings/Position.d.ts.map +1 -1
  48. package/generated/typeStrings/Position.js.map +1 -1
  49. package/generated/typeStrings/Trade.cjs +132 -70
  50. package/generated/typeStrings/Trade.d.ts +1 -1
  51. package/generated/typeStrings/Trade.d.ts.map +1 -1
  52. package/generated/typeStrings/Trade.js.map +1 -1
  53. package/generated/typeStrings/User.cjs +0 -8
  54. package/generated/typeStrings/User.d.ts +1 -1
  55. package/generated/typeStrings/User.d.ts.map +1 -1
  56. package/generated/typeStrings/User.js.map +1 -1
  57. package/generated/typeStrings/index.d.ts +14 -14
  58. package/package.json +1 -1
  59. package/server/generated/typeStrings/Action.d.ts +1 -1
  60. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  61. package/server/generated/typeStrings/Action.js.map +1 -1
  62. package/server/generated/typeStrings/Action.mjs +114 -0
  63. package/server/generated/typeStrings/Alert.d.ts +1 -1
  64. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  65. package/server/generated/typeStrings/Alert.js.map +1 -1
  66. package/server/generated/typeStrings/Alert.mjs +0 -4
  67. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  68. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  69. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  70. package/server/generated/typeStrings/AlpacaAccount.mjs +6 -21
  71. package/server/generated/typeStrings/Asset.d.ts +1 -1
  72. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  73. package/server/generated/typeStrings/Asset.js.map +1 -1
  74. package/server/generated/typeStrings/Asset.mjs +44 -0
  75. package/server/generated/typeStrings/Contract.d.ts +1 -1
  76. package/server/generated/typeStrings/Contract.d.ts.map +1 -1
  77. package/server/generated/typeStrings/Contract.js.map +1 -1
  78. package/server/generated/typeStrings/Contract.mjs +44 -43
  79. package/server/generated/typeStrings/Customer.d.ts +1 -1
  80. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  81. package/server/generated/typeStrings/Customer.js.map +1 -1
  82. package/server/generated/typeStrings/Customer.mjs +8 -0
  83. package/server/generated/typeStrings/Deliverable.d.ts +1 -1
  84. package/server/generated/typeStrings/Deliverable.d.ts.map +1 -1
  85. package/server/generated/typeStrings/Deliverable.js.map +1 -1
  86. package/server/generated/typeStrings/Deliverable.mjs +144 -0
  87. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  88. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  89. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  90. package/server/generated/typeStrings/EconomicEvent.mjs +0 -3
  91. package/server/generated/typeStrings/MarketSentiment.d.ts +1 -1
  92. package/server/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  93. package/server/generated/typeStrings/MarketSentiment.js.map +1 -1
  94. package/server/generated/typeStrings/MarketSentiment.mjs +0 -7
  95. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  96. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  97. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  98. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +44 -0
  99. package/server/generated/typeStrings/Order.d.ts +1 -1
  100. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  101. package/server/generated/typeStrings/Order.js.map +1 -1
  102. package/server/generated/typeStrings/Order.mjs +132 -0
  103. package/server/generated/typeStrings/Position.d.ts +1 -1
  104. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  105. package/server/generated/typeStrings/Position.js.map +1 -1
  106. package/server/generated/typeStrings/Position.mjs +44 -0
  107. package/server/generated/typeStrings/Trade.d.ts +1 -1
  108. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  109. package/server/generated/typeStrings/Trade.js.map +1 -1
  110. package/server/generated/typeStrings/Trade.mjs +132 -70
  111. package/server/generated/typeStrings/User.d.ts +1 -1
  112. package/server/generated/typeStrings/User.d.ts.map +1 -1
  113. package/server/generated/typeStrings/User.js.map +1 -1
  114. package/server/generated/typeStrings/User.mjs +0 -8
  115. package/server/generated/typeStrings/index.d.ts +14 -14
@@ -11,5 +11,49 @@ export type Asset = {
11
11
  type: AssetType;
12
12
  };
13
13
 
14
+ enum AssetType {
15
+ STOCK
16
+
17
+ ETF
18
+
19
+ MUTUAL_FUND
20
+
21
+ CRYPTOCURRENCY
22
+
23
+ INDEX
24
+
25
+ COMMODITY
26
+
27
+ CURRENCY
28
+
29
+ OPTION
30
+
31
+ FUTURE
32
+
33
+ BOND
34
+
35
+ WARRANT
36
+
37
+ ADR
38
+
39
+ GDR
40
+
41
+ UNIT
42
+
43
+ RIGHT
44
+
45
+ REIT
46
+
47
+ STRUCTURED_PRODUCT
48
+
49
+ SWAP
50
+
51
+ SPOT
52
+
53
+ FORWARD
54
+
55
+ OTHER
56
+ }
57
+
14
58
  `;
15
59
  //# sourceMappingURL=Asset.js.map
@@ -1,2 +1,2 @@
1
- export declare const ContractTypeString = "\n// Your response should adhere to the following type definition for the \"Contract\" 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 Contract = {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // Deliverables associated with the contract\n deliverables: {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n }[];\n // PPIND flag\n ppind?: boolean;\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 // Optional relation to an order that created this contract\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 // 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\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 OptionStyle {\n /// An option contract that can be exercised at any time before expiration.\n AMERICAN\n\n /// An option contract that can only be exercised at expiration.\n EUROPEAN\n}\n\nenum DeliverableType {\n /// The option contract is settled in cash.\n CASH\n\n /// The option contract is settled with the underlying asset.\n EQUITY\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";
1
+ export declare const ContractTypeString = "\n// Your response should adhere to the following type definition for the \"Contract\" 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 Contract = {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // Deliverables associated with the contract\n deliverables: {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n }[];\n // PPIND flag\n ppind?: boolean;\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 // Optional relation to an order that created this contract\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 // 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\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum OptionStyle {\n AMERICAN\n\n EUROPEAN\n}\n\nenum DeliverableType {\n CASH\n\n EQUITY\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
2
2
  //# sourceMappingURL=Contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,2rVA0Q9B,CAAC"}
1
+ {"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,yiOA2Q9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Contract.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Contract.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0QjC,CAAC"}
1
+ {"version":3,"file":"Contract.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Contract.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2QjC,CAAC"}
@@ -122,145 +122,146 @@ export type Contract = {
122
122
  };
123
123
 
124
124
  enum OptionType {
125
- /// A contract that gives the holder the right to buy the underlying asset.
126
125
  CALL
127
126
 
128
- /// A contract that gives the holder the right to sell the underlying asset.
129
127
  PUT
130
128
  }
131
129
 
132
130
  enum OptionStyle {
133
- /// An option contract that can be exercised at any time before expiration.
134
131
  AMERICAN
135
132
 
136
- /// An option contract that can only be exercised at expiration.
137
133
  EUROPEAN
138
134
  }
139
135
 
140
136
  enum DeliverableType {
141
- /// The option contract is settled in cash.
142
137
  CASH
143
138
 
144
- /// The option contract is settled with the underlying asset.
145
139
  EQUITY
146
140
  }
147
141
 
142
+ enum AssetType {
143
+ STOCK
144
+
145
+ ETF
146
+
147
+ MUTUAL_FUND
148
+
149
+ CRYPTOCURRENCY
150
+
151
+ INDEX
152
+
153
+ COMMODITY
154
+
155
+ CURRENCY
156
+
157
+ OPTION
158
+
159
+ FUTURE
160
+
161
+ BOND
162
+
163
+ WARRANT
164
+
165
+ ADR
166
+
167
+ GDR
168
+
169
+ UNIT
170
+
171
+ RIGHT
172
+
173
+ REIT
174
+
175
+ STRUCTURED_PRODUCT
176
+
177
+ SWAP
178
+
179
+ SPOT
180
+
181
+ FORWARD
182
+
183
+ OTHER
184
+ }
185
+
148
186
  enum OrderSide {
149
- /// Represents the buying side of a trade action.
150
187
  BUY
151
188
 
152
- /// Represents the selling side of a trade action.
153
189
  SELL
154
190
  }
155
191
 
156
192
  enum OrderType {
157
- /// Executes immediately at the best available current market price.
158
193
  MARKET
159
194
 
160
- /// Executes only at the specified limit price or better.
161
195
  LIMIT
162
196
 
163
- /// Becomes a market order once the stop price is triggered.
164
197
  STOP
165
198
 
166
- /// Becomes a limit order once the stop price is triggered.
167
199
  STOP_LIMIT
168
200
 
169
- /// Adjusts the stop price based on a specified trail amount or percentage.
170
201
  TRAILING_STOP
171
202
  }
172
203
 
173
204
  enum OrderClass {
174
- /// A single standalone order without additional conditions.
175
205
  SIMPLE
176
206
 
177
- /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.
178
207
  BRACKET
179
208
 
180
- /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.
181
209
  OCO
182
210
 
183
- /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.
184
211
  OSO
185
212
 
186
- /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.
187
213
  OTO
188
214
  }
189
215
 
190
- // Time in force enum (day, gtc, opg, cls, etc.).
191
216
  enum TimeInForce {
192
- /// The order is valid for the day and expires at market close.
193
217
  DAY
194
218
 
195
- /// The order is valid until canceled by the user.
196
219
  GTC
197
220
 
198
- /// The order is valid for the opening of the market.
199
221
  OPG
200
222
 
201
- /// The order is valid until the close of the market.
202
223
  CLS
203
224
 
204
- /// The order must be executed immediately or canceled.
205
225
  IOC
206
226
 
207
- /// The order must be executed immediately or canceled.
208
227
  FOK
209
228
  }
210
229
 
211
230
  enum OrderStatus {
212
- /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.
213
231
  STAGED
214
232
 
215
- /// 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.
216
233
  NEW
217
234
 
218
- /// The order has been partially filled.
219
235
  PARTIALLY_FILLED
220
236
 
221
- /// The order has been filled, and no further updates will occur for the order.
222
237
  FILLED
223
238
 
224
- /// The order is done executing for the day, and will not receive further updates until the next trading day.
225
239
  DONE_FOR_DAY
226
240
 
227
- /// 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.
228
241
  CANCELED
229
242
 
230
- /// The order has expired, and no further updates will occur for the order.
231
243
  EXPIRED
232
244
 
233
- /// The order is waiting to be triggered, usually for stop or stop-limit orders.
234
245
  HELD
235
246
 
236
- /// The order was replaced by another order, or was updated due to a market event such as corporate action.
237
247
  REPLACED
238
248
 
239
- /// The order is waiting to be canceled.
240
249
  PENDING_CANCEL
241
250
 
242
- /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.
243
251
  PENDING_REPLACE
244
252
 
245
- /// 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.
246
253
  ACCEPTED
247
254
 
248
- /// 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.
249
255
  PENDING_NEW
250
256
 
251
- /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.
252
257
  ACCEPTED_FOR_BIDDING
253
258
 
254
- /// 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.
255
259
  STOPPED
256
260
 
257
- /// 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.
258
261
  REJECTED
259
262
 
260
- /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.
261
263
  SUSPENDED
262
264
 
263
- /// 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.
264
265
  CALCULATED
265
266
  }
266
267
 
@@ -1,2 +1,2 @@
1
- export declare const CustomerTypeString = "\n// Your response should adhere to the following type definition for the \"Customer\" 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 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 // List of users associated with the customer.\n users: {\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";
1
+ export declare const CustomerTypeString = "\n// Your response should adhere to the following type definition for the \"Customer\" 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 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 // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n }[];\n};\n\nenum SubscriptionPlan {\n FREE\n\n PRO\n\n BUSINESS\n}\n\n";
2
2
  //# sourceMappingURL=Customer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,iqBAoB9B,CAAC"}
1
+ {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,8tBA4B9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBjC,CAAC"}
1
+ {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjC,CAAC"}
@@ -18,5 +18,13 @@ export type Customer = {
18
18
  }[];
19
19
  };
20
20
 
21
+ enum SubscriptionPlan {
22
+ FREE
23
+
24
+ PRO
25
+
26
+ BUSINESS
27
+ }
28
+
21
29
  `;
22
30
  //# sourceMappingURL=Customer.js.map
@@ -1,2 +1,2 @@
1
- export declare const DeliverableTypeString = "\n// Your response should adhere to the following type definition for the \"Deliverable\" 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 Deliverable = {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n // Relation to the Contract model\n contract: {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // PPIND flag\n ppind?: boolean;\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 // Optional relation to an order that created this contract\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 // 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};\n\n";
1
+ export declare const DeliverableTypeString = "\n// Your response should adhere to the following type definition for the \"Deliverable\" 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 Deliverable = {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n // Relation to the Contract model\n contract: {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // PPIND flag\n ppind?: boolean;\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 // Optional relation to an order that created this contract\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 // 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};\n\nenum DeliverableType {\n CASH\n\n EQUITY\n}\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum OptionStyle {\n AMERICAN\n\n EUROPEAN\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
2
2
  //# sourceMappingURL=Deliverable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Deliverable.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Deliverable.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,0tMA2HjC,CAAC"}
1
+ {"version":3,"file":"Deliverable.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Deliverable.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,wsOA2QjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Deliverable.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Deliverable.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HpC,CAAC"}
1
+ {"version":3,"file":"Deliverable.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Deliverable.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2QpC,CAAC"}
@@ -121,5 +121,149 @@ export type Deliverable = {
121
121
  };
122
122
  };
123
123
 
124
+ enum DeliverableType {
125
+ CASH
126
+
127
+ EQUITY
128
+ }
129
+
130
+ enum OptionType {
131
+ CALL
132
+
133
+ PUT
134
+ }
135
+
136
+ enum OptionStyle {
137
+ AMERICAN
138
+
139
+ EUROPEAN
140
+ }
141
+
142
+ enum AssetType {
143
+ STOCK
144
+
145
+ ETF
146
+
147
+ MUTUAL_FUND
148
+
149
+ CRYPTOCURRENCY
150
+
151
+ INDEX
152
+
153
+ COMMODITY
154
+
155
+ CURRENCY
156
+
157
+ OPTION
158
+
159
+ FUTURE
160
+
161
+ BOND
162
+
163
+ WARRANT
164
+
165
+ ADR
166
+
167
+ GDR
168
+
169
+ UNIT
170
+
171
+ RIGHT
172
+
173
+ REIT
174
+
175
+ STRUCTURED_PRODUCT
176
+
177
+ SWAP
178
+
179
+ SPOT
180
+
181
+ FORWARD
182
+
183
+ OTHER
184
+ }
185
+
186
+ enum OrderSide {
187
+ BUY
188
+
189
+ SELL
190
+ }
191
+
192
+ enum OrderType {
193
+ MARKET
194
+
195
+ LIMIT
196
+
197
+ STOP
198
+
199
+ STOP_LIMIT
200
+
201
+ TRAILING_STOP
202
+ }
203
+
204
+ enum OrderClass {
205
+ SIMPLE
206
+
207
+ BRACKET
208
+
209
+ OCO
210
+
211
+ OSO
212
+
213
+ OTO
214
+ }
215
+
216
+ enum TimeInForce {
217
+ DAY
218
+
219
+ GTC
220
+
221
+ OPG
222
+
223
+ CLS
224
+
225
+ IOC
226
+
227
+ FOK
228
+ }
229
+
230
+ enum OrderStatus {
231
+ STAGED
232
+
233
+ NEW
234
+
235
+ PARTIALLY_FILLED
236
+
237
+ FILLED
238
+
239
+ DONE_FOR_DAY
240
+
241
+ CANCELED
242
+
243
+ EXPIRED
244
+
245
+ HELD
246
+
247
+ REPLACED
248
+
249
+ PENDING_CANCEL
250
+
251
+ PENDING_REPLACE
252
+
253
+ ACCEPTED
254
+
255
+ PENDING_NEW
256
+
257
+ ACCEPTED_FOR_BIDDING
258
+
259
+ STOPPED
260
+
261
+ REJECTED
262
+
263
+ SUSPENDED
264
+
265
+ CALCULATED
266
+ }
267
+
124
268
  `;
125
269
  //# sourceMappingURL=Deliverable.js.map
@@ -1,2 +1,2 @@
1
- export declare const EconomicEventTypeString = "\n// Your response should adhere to the following type definition for the \"EconomicEvent\" 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 EconomicEvent = {\n // Title or name of the economic event.\n title: string;\n // Detailed description of the economic event.\n description?: string;\n // Date and time when the economic event is scheduled to occur.\n date: Date;\n // Importance level of the event, defined by EventImportance enum.\n importance: EventImportance;\n};\n\nenum EventImportance {\n /// Low importance events with minimal impact.\n LOW\n\n /// Medium importance events with noticeable impact.\n MEDIUM\n\n /// High importance events with significant impact.\n HIGH\n}\n\n";
1
+ export declare const EconomicEventTypeString = "\n// Your response should adhere to the following type definition for the \"EconomicEvent\" 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 EconomicEvent = {\n // Title or name of the economic event.\n title: string;\n // Detailed description of the economic event.\n description?: string;\n // Date and time when the economic event is scheduled to occur.\n date: Date;\n // Importance level of the event, defined by EventImportance enum.\n importance: EventImportance;\n};\n\nenum EventImportance {\n LOW\n\n MEDIUM\n\n HIGH\n}\n\n";
2
2
  //# sourceMappingURL=EconomicEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EconomicEvent.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8yBA0BnC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,6oBAuBnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAuBtC,CAAC"}
@@ -14,13 +14,10 @@ export type EconomicEvent = {
14
14
  };
15
15
 
16
16
  enum EventImportance {
17
- /// Low importance events with minimal impact.
18
17
  LOW
19
18
 
20
- /// Medium importance events with noticeable impact.
21
19
  MEDIUM
22
20
 
23
- /// High importance events with significant impact.
24
21
  HIGH
25
22
  }
26
23
 
@@ -1,2 +1,2 @@
1
- export declare const MarketSentimentTypeString = "\n// Your response should adhere to the following type definition for the \"MarketSentiment\" 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 MarketSentiment = {\n // The current level of market sentiment.\n sentiment: MarketSentimentLevel;\n // A one-sentence description of the market sentiment, including specific references to stock market index values, recent changes, trends, and technical indicators, as well as quotes from major news sources.\n description: string;\n // A detailed, multi-paragraph description of the market sentiment, including extensive analyses, references, quotes from major news sources, and links to articles.\n longDescription: string;\n};\n\nenum MarketSentimentLevel {\n /// Extremely negative outlook on the market.\n VERY_BEARISH\n\n /// Moderately negative outlook on the market.\n SOMEWHAT_BEARISH\n\n /// Negative outlook on the market.\n BEARISH\n\n /// Neutral outlook on the market.\n NEUTRAL\n\n /// Positive outlook on the market.\n SOMEWHAT_BULLISH\n\n /// Moderately positive outlook on the market.\n BULLISH\n\n /// Extremely positive outlook on the market.\n VERY_BULLISH\n}\n\n";
1
+ export declare const MarketSentimentTypeString = "\n// Your response should adhere to the following type definition for the \"MarketSentiment\" 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 MarketSentiment = {\n // The current level of market sentiment.\n sentiment: MarketSentimentLevel;\n // A one-sentence description of the market sentiment, including specific references to stock market index values, recent changes, trends, and technical indicators, as well as quotes from major news sources.\n description: string;\n // A detailed, multi-paragraph description of the market sentiment, including extensive analyses, references, quotes from major news sources, and links to articles.\n longDescription: string;\n};\n\nenum MarketSentimentLevel {\n VERY_BEARISH\n\n SOMEWHAT_BEARISH\n\n BEARISH\n\n NEUTRAL\n\n SOMEWHAT_BULLISH\n\n BULLISH\n\n VERY_BULLISH\n}\n\n";
2
2
  //# sourceMappingURL=MarketSentiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarketSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,wuCAoCrC,CAAC"}
1
+ {"version":3,"file":"MarketSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,86BA6BrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCxC,CAAC"}
1
+ {"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BxC,CAAC"}
@@ -12,25 +12,18 @@ export type MarketSentiment = {
12
12
  };
13
13
 
14
14
  enum MarketSentimentLevel {
15
- /// Extremely negative outlook on the market.
16
15
  VERY_BEARISH
17
16
 
18
- /// Moderately negative outlook on the market.
19
17
  SOMEWHAT_BEARISH
20
18
 
21
- /// Negative outlook on the market.
22
19
  BEARISH
23
20
 
24
- /// Neutral outlook on the market.
25
21
  NEUTRAL
26
22
 
27
- /// Positive outlook on the market.
28
23
  SOMEWHAT_BULLISH
29
24
 
30
- /// Moderately positive outlook on the market.
31
25
  BULLISH
32
26
 
33
- /// Extremely positive outlook on the market.
34
27
  VERY_BULLISH
35
28
  }
36
29
 
@@ -1,2 +1,2 @@
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";
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\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n 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,y3BAwB/C,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,mpCAoE/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBlD,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoElD,CAAC"}