adaptic-backend 1.0.195 → 1.0.197

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 (136) hide show
  1. package/Order.cjs +0 -24
  2. package/Trade.cjs +0 -24
  3. package/generated/typeStrings/Action.cjs +105 -61
  4. package/generated/typeStrings/Action.d.ts +1 -1
  5. package/generated/typeStrings/Action.d.ts.map +1 -1
  6. package/generated/typeStrings/Action.js.map +1 -1
  7. package/generated/typeStrings/Alert.cjs +12 -5
  8. package/generated/typeStrings/Alert.d.ts +1 -1
  9. package/generated/typeStrings/Alert.d.ts.map +1 -1
  10. package/generated/typeStrings/Alert.js.map +1 -1
  11. package/generated/typeStrings/AlpacaAccount.cjs +0 -5
  12. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  13. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  14. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  15. package/generated/typeStrings/Asset.cjs +0 -24
  16. package/generated/typeStrings/Asset.d.ts +1 -1
  17. package/generated/typeStrings/Asset.d.ts.map +1 -1
  18. package/generated/typeStrings/Asset.js.map +1 -1
  19. package/generated/typeStrings/Customer.cjs +0 -6
  20. package/generated/typeStrings/Customer.d.ts +1 -1
  21. package/generated/typeStrings/Customer.d.ts.map +1 -1
  22. package/generated/typeStrings/Customer.js.map +1 -1
  23. package/generated/typeStrings/EconomicEvent.cjs +9 -4
  24. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  25. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  26. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  27. package/generated/typeStrings/MarketSentiment.cjs +21 -8
  28. package/generated/typeStrings/MarketSentiment.d.ts +1 -1
  29. package/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  30. package/generated/typeStrings/MarketSentiment.js.map +1 -1
  31. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +0 -24
  32. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  33. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  34. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  35. package/generated/typeStrings/Order.cjs +0 -81
  36. package/generated/typeStrings/Order.d.ts +1 -1
  37. package/generated/typeStrings/Order.d.ts.map +1 -1
  38. package/generated/typeStrings/Order.js.map +1 -1
  39. package/generated/typeStrings/Position.cjs +63 -22
  40. package/generated/typeStrings/Position.d.ts +1 -1
  41. package/generated/typeStrings/Position.d.ts.map +1 -1
  42. package/generated/typeStrings/Position.js.map +1 -1
  43. package/generated/typeStrings/Trade.cjs +236 -108
  44. package/generated/typeStrings/Trade.d.ts +1 -1
  45. package/generated/typeStrings/Trade.d.ts.map +1 -1
  46. package/generated/typeStrings/Trade.js.map +1 -1
  47. package/generated/typeStrings/User.cjs +32 -16
  48. package/generated/typeStrings/User.d.ts +1 -1
  49. package/generated/typeStrings/User.d.ts.map +1 -1
  50. package/generated/typeStrings/User.js.map +1 -1
  51. package/generated/typeStrings/index.d.ts +12 -12
  52. package/generated/typegraphql-prisma/models/Action.d.ts +1 -1
  53. package/generated/typegraphql-prisma/models/Order.d.ts +1 -1
  54. package/generated/typegraphql-prisma/models/Trade.d.ts +2 -2
  55. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.cjs +1 -1
  56. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  57. package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.cjs +1 -1
  58. package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
  59. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +2 -2
  60. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  61. package/package.json +1 -1
  62. package/server/Order.d.ts.map +1 -1
  63. package/server/Order.js.map +1 -1
  64. package/server/Order.mjs +0 -24
  65. package/server/Trade.d.ts.map +1 -1
  66. package/server/Trade.js.map +1 -1
  67. package/server/Trade.mjs +0 -24
  68. package/server/generated/selectionSets/Order.d.ts +1 -1
  69. package/server/generated/selectionSets/Order.d.ts.map +1 -1
  70. package/server/generated/selectionSets/Order.js.map +1 -1
  71. package/server/generated/selectionSets/Order.mjs +0 -24
  72. package/server/generated/selectionSets/Trade.d.ts +1 -1
  73. package/server/generated/selectionSets/Trade.d.ts.map +1 -1
  74. package/server/generated/selectionSets/Trade.js.map +1 -1
  75. package/server/generated/selectionSets/Trade.mjs +0 -24
  76. package/server/generated/typeStrings/Action.d.ts +1 -1
  77. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  78. package/server/generated/typeStrings/Action.js.map +1 -1
  79. package/server/generated/typeStrings/Action.mjs +105 -61
  80. package/server/generated/typeStrings/Alert.d.ts +1 -1
  81. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  82. package/server/generated/typeStrings/Alert.js.map +1 -1
  83. package/server/generated/typeStrings/Alert.mjs +12 -5
  84. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  85. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  86. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  87. package/server/generated/typeStrings/AlpacaAccount.mjs +0 -5
  88. package/server/generated/typeStrings/Asset.d.ts +1 -1
  89. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  90. package/server/generated/typeStrings/Asset.js.map +1 -1
  91. package/server/generated/typeStrings/Asset.mjs +0 -24
  92. package/server/generated/typeStrings/Customer.d.ts +1 -1
  93. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  94. package/server/generated/typeStrings/Customer.js.map +1 -1
  95. package/server/generated/typeStrings/Customer.mjs +0 -6
  96. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  97. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  98. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  99. package/server/generated/typeStrings/EconomicEvent.mjs +9 -4
  100. package/server/generated/typeStrings/MarketSentiment.d.ts +1 -1
  101. package/server/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  102. package/server/generated/typeStrings/MarketSentiment.js.map +1 -1
  103. package/server/generated/typeStrings/MarketSentiment.mjs +21 -8
  104. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  105. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  106. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  107. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +0 -24
  108. package/server/generated/typeStrings/Order.d.ts +1 -1
  109. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  110. package/server/generated/typeStrings/Order.js.map +1 -1
  111. package/server/generated/typeStrings/Order.mjs +0 -81
  112. package/server/generated/typeStrings/Position.d.ts +1 -1
  113. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  114. package/server/generated/typeStrings/Position.js.map +1 -1
  115. package/server/generated/typeStrings/Position.mjs +63 -22
  116. package/server/generated/typeStrings/Trade.d.ts +1 -1
  117. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  118. package/server/generated/typeStrings/Trade.js.map +1 -1
  119. package/server/generated/typeStrings/Trade.mjs +236 -108
  120. package/server/generated/typeStrings/User.d.ts +1 -1
  121. package/server/generated/typeStrings/User.d.ts.map +1 -1
  122. package/server/generated/typeStrings/User.js.map +1 -1
  123. package/server/generated/typeStrings/User.mjs +32 -16
  124. package/server/generated/typeStrings/index.d.ts +12 -12
  125. package/server/generated/typegraphql-prisma/models/Action.d.ts +1 -1
  126. package/server/generated/typegraphql-prisma/models/Action.mjs +1 -1
  127. package/server/generated/typegraphql-prisma/models/Order.d.ts +1 -1
  128. package/server/generated/typegraphql-prisma/models/Order.mjs +1 -1
  129. package/server/generated/typegraphql-prisma/models/Trade.d.ts +2 -2
  130. package/server/generated/typegraphql-prisma/models/Trade.mjs +2 -2
  131. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  132. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.mjs +1 -1
  133. package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
  134. package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.mjs +1 -1
  135. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  136. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +2 -2
package/Order.cjs CHANGED
@@ -50,30 +50,6 @@ const selectionSet = `
50
50
  cancelRequestedAt
51
51
  canceledAt
52
52
  actionId
53
- alpacaAccount {
54
- id
55
- type
56
- APIKey
57
- APISecret
58
- configuration
59
- marketOpen
60
- minOrderSize
61
- maxOrderSize
62
- minPercentageChange
63
- volumeThreshold
64
- userId
65
- createdAt
66
- updatedAt
67
- alerts {
68
- id
69
- alpacaAccountId
70
- message
71
- type
72
- isRead
73
- createdAt
74
- updatedAt
75
- }
76
- }
77
53
  action {
78
54
  id
79
55
  sequence
package/Trade.cjs CHANGED
@@ -25,30 +25,6 @@ const selectionSet = `
25
25
  createdAt
26
26
  updatedAt
27
27
  status
28
- alpacaAccount {
29
- id
30
- type
31
- APIKey
32
- APISecret
33
- configuration
34
- marketOpen
35
- minOrderSize
36
- maxOrderSize
37
- minPercentageChange
38
- volumeThreshold
39
- userId
40
- createdAt
41
- updatedAt
42
- alerts {
43
- id
44
- alpacaAccountId
45
- message
46
- type
47
- isRead
48
- createdAt
49
- updatedAt
50
- }
51
- }
52
28
  asset {
53
29
  id
54
30
  symbol
@@ -43,85 +43,129 @@ export type Action = {
43
43
  trailPercent?: number;
44
44
  extendedHours?: boolean;
45
45
  status: OrderStatus;
46
- submittedAt?: Date;
47
46
  strikePrice?: number;
48
47
  expirationDate?: Date;
49
48
  optionType?: OptionType;
50
49
  };
51
50
  };
52
51
 
53
- export enum ActionType {
54
- BUY = "BUY",
55
- BUY_OPTION = "BUY_OPTION",
56
- EXERCISE_OPTION = "EXERCISE_OPTION",
57
- SELL = "SELL",
58
- CANCEL = "CANCEL",
59
- ADJUST = "ADJUST",
60
- HEDGE = "HEDGE"
61
- }
52
+ enum OrderSide {
53
+ /// Represents the buying side of a trade action.
54
+ BUY
62
55
 
63
- export enum ActionStatus {
64
- STAGED = "STAGED",
65
- EXECUTED = "EXECUTED",
66
- COMPLETED = "COMPLETED",
67
- CANCELED = "CANCELED"
56
+ /// Represents the selling side of a trade action.
57
+ SELL
68
58
  }
69
59
 
70
- export enum OrderSide {
71
- BUY = "BUY",
72
- SELL = "SELL"
73
- }
60
+ enum OrderType {
61
+ /// Executes immediately at the best available current market price.
62
+ MARKET
63
+
64
+ /// Executes only at the specified limit price or better.
65
+ LIMIT
66
+
67
+ /// Becomes a market order once the stop price is triggered.
68
+ STOP
74
69
 
75
- export enum OrderType {
76
- MARKET = "MARKET",
77
- LIMIT = "LIMIT",
78
- STOP = "STOP",
79
- STOP_LIMIT = "STOP_LIMIT",
80
- TRAILING_STOP = "TRAILING_STOP"
70
+ /// Becomes a limit order once the stop price is triggered.
71
+ STOP_LIMIT
72
+
73
+ /// Adjusts the stop price based on a specified trail amount or percentage.
74
+ TRAILING_STOP
81
75
  }
82
76
 
83
- export enum OrderClass {
84
- SIMPLE = "SIMPLE",
85
- BRACKET = "BRACKET",
86
- OCO = "OCO",
87
- OSO = "OSO",
88
- OTO = "OTO"
77
+ enum OrderClass {
78
+ /// A single standalone order without additional conditions.
79
+ SIMPLE
80
+
81
+ /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.
82
+ BRACKET
83
+
84
+ /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.
85
+ OCO
86
+
87
+ /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.
88
+ OSO
89
+
90
+ /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.
91
+ OTO
89
92
  }
90
93
 
91
94
  // Time in force enum (day, gtc, opg, cls, etc.).
92
- export enum TimeInForce {
93
- DAY = "DAY",
94
- GTC = "GTC",
95
- OPG = "OPG",
96
- CLS = "CLS",
97
- IOC = "IOC",
98
- FOK = "FOK"
99
- }
95
+ enum TimeInForce {
96
+ /// The order is valid for the day and expires at market close.
97
+ DAY
98
+
99
+ /// The order is valid until canceled by the user.
100
+ GTC
101
+
102
+ /// The order is valid for the opening of the market.
103
+ OPG
100
104
 
101
- export enum OrderStatus {
102
- STAGED = "STAGED",
103
- NEW = "NEW",
104
- PARTIALLY_FILLED = "PARTIALLY_FILLED",
105
- FILLED = "FILLED",
106
- DONE_FOR_DAY = "DONE_FOR_DAY",
107
- CANCELED = "CANCELED",
108
- EXPIRED = "EXPIRED",
109
- HELD = "HELD",
110
- REPLACED = "REPLACED",
111
- PENDING_CANCEL = "PENDING_CANCEL",
112
- PENDING_REPLACE = "PENDING_REPLACE",
113
- ACCEPTED = "ACCEPTED",
114
- PENDING_NEW = "PENDING_NEW",
115
- ACCEPTED_FOR_BIDDING = "ACCEPTED_FOR_BIDDING",
116
- STOPPED = "STOPPED",
117
- REJECTED = "REJECTED",
118
- SUSPENDED = "SUSPENDED",
119
- CALCULATED = "CALCULATED"
105
+ /// The order is valid until the close of the market.
106
+ CLS
107
+
108
+ /// The order must be executed immediately or canceled.
109
+ IOC
110
+
111
+ /// The order must be executed immediately or canceled.
112
+ FOK
120
113
  }
121
114
 
122
- export enum OptionType {
123
- CALL = "CALL",
124
- PUT = "PUT"
115
+ enum OrderStatus {
116
+ /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.
117
+ STAGED
118
+
119
+ /// 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.
120
+ NEW
121
+
122
+ /// The order has been partially filled.
123
+ PARTIALLY_FILLED
124
+
125
+ /// The order has been filled, and no further updates will occur for the order.
126
+ FILLED
127
+
128
+ /// The order is done executing for the day, and will not receive further updates until the next trading day.
129
+ DONE_FOR_DAY
130
+
131
+ /// 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.
132
+ CANCELED
133
+
134
+ /// The order has expired, and no further updates will occur for the order.
135
+ EXPIRED
136
+
137
+ /// The order is waiting to be triggered, usually for stop or stop-limit orders.
138
+ HELD
139
+
140
+ /// The order was replaced by another order, or was updated due to a market event such as corporate action.
141
+ REPLACED
142
+
143
+ /// The order is waiting to be canceled.
144
+ PENDING_CANCEL
145
+
146
+ /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.
147
+ PENDING_REPLACE
148
+
149
+ /// 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.
150
+ ACCEPTED
151
+
152
+ /// 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.
153
+ PENDING_NEW
154
+
155
+ /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.
156
+ ACCEPTED_FOR_BIDDING
157
+
158
+ /// 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.
159
+ STOPPED
160
+
161
+ /// 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.
162
+ REJECTED
163
+
164
+ /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.
165
+ SUSPENDED
166
+
167
+ /// 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.
168
+ CALCULATED
125
169
  }
126
170
 
127
171
  `;
@@ -1,2 +1,2 @@
1
- export declare const ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The order associated with this action.\n order?: {\n qty?: number;\n notional?: number;\n side: OrderSide;\n type: OrderType;\n orderClass: OrderClass;\n timeInForce: TimeInForce;\n limitPrice?: number;\n stopPrice?: number;\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n trailPrice?: number;\n trailPercent?: number;\n extendedHours?: boolean;\n status: OrderStatus;\n submittedAt?: Date;\n strikePrice?: number;\n expirationDate?: Date;\n optionType?: OptionType;\n };\n};\n\nexport enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\",\n CANCELED = \"CANCELED\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n HELD = \"HELD\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
1
+ export declare const ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The order associated with this action.\n order?: {\n qty?: number;\n notional?: number;\n side: OrderSide;\n type: OrderType;\n orderClass: OrderClass;\n timeInForce: TimeInForce;\n limitPrice?: number;\n stopPrice?: number;\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n trailPrice?: number;\n trailPercent?: number;\n extendedHours?: boolean;\n status: OrderStatus;\n strikePrice?: number;\n expirationDate?: Date;\n optionType?: OptionType;\n };\n};\n\nenum OrderSide {\n /// Represents the buying side of a trade action.\n BUY\n\n /// Represents the selling side of a trade action.\n SELL\n}\n\nenum OrderType {\n /// Executes immediately at the best available current market price.\n MARKET\n\n /// Executes only at the specified limit price or better.\n LIMIT\n\n /// Becomes a market order once the stop price is triggered.\n STOP\n\n /// Becomes a limit order once the stop price is triggered.\n STOP_LIMIT\n\n /// Adjusts the stop price based on a specified trail amount or percentage.\n TRAILING_STOP\n}\n\nenum OrderClass {\n /// A single standalone order without additional conditions.\n SIMPLE\n\n /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.\n BRACKET\n\n /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.\n OCO\n\n /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.\n OSO\n\n /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.\n OTO\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nenum TimeInForce {\n /// The order is valid for the day and expires at market close.\n DAY\n\n /// The order is valid until canceled by the user.\n GTC\n\n /// The order is valid for the opening of the market.\n OPG\n\n /// The order is valid until the close of the market.\n CLS\n\n /// The order must be executed immediately or canceled.\n IOC\n\n /// The order must be executed immediately or canceled.\n FOK\n}\n\nenum OrderStatus {\n /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.\n STAGED\n\n /// The order has been received by Alpaca, and routed to exchanges for execution. This is the usual initial state of an order after being received.\n NEW\n\n /// The order has been partially filled.\n PARTIALLY_FILLED\n\n /// The order has been filled, and no further updates will occur for the order.\n FILLED\n\n /// The order is done executing for the day, and will not receive further updates until the next trading day.\n DONE_FOR_DAY\n\n /// The order has been canceled, and no further updates will occur for the order. This can be either due to a cancel request by the user, or the order has been canceled by the exchanges due to its time-in-force.\n CANCELED\n\n /// The order has expired, and no further updates will occur for the order.\n EXPIRED\n\n /// The order is waiting to be triggered, usually for stop or stop-limit orders.\n HELD\n\n /// The order was replaced by another order, or was updated due to a market event such as corporate action.\n REPLACED\n\n /// The order is waiting to be canceled.\n PENDING_CANCEL\n\n /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.\n PENDING_REPLACE\n\n /// The order has been received by Alpaca, but hasn\u2019t yet been routed to the execution venue. This could be seen often outside of trading session hours.\n ACCEPTED\n\n /// The order has been received by Alpaca, and routed to the exchanges, but has not yet been accepted for execution. This state only occurs on rare occasions.\n PENDING_NEW\n\n /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.\n ACCEPTED_FOR_BIDDING\n\n /// The order has been stopped, and a trade is guaranteed for the order, usually at a stated price or better, but has not yet occurred. This state only occurs on rare occasions.\n STOPPED\n\n /// The order has been rejected, and no further updates will occur for the order. This state occurs on rare occasions and may occur based on various conditions decided by the exchanges.\n REJECTED\n\n /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.\n SUSPENDED\n\n /// The order has been completed for the day (either filled or done for day), but remaining settlement calculations are still pending. This state only occurs on rare occasions.\n CALCULATED\n}\n\n";
2
2
  //# sourceMappingURL=Action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,siHA2H5B,CAAC"}
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6jMAuK5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2H/B,CAAC"}
1
+ {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuK/B,CAAC"}
@@ -15,11 +15,18 @@ export type Alert = {
15
15
  isRead: boolean;
16
16
  };
17
17
 
18
- export enum AlertType {
19
- SUCCESS = "SUCCESS",
20
- WARNING = "WARNING",
21
- ERROR = "ERROR",
22
- INFO = "INFO"
18
+ enum AlertType {
19
+ /// Indicates a successful operation or event.
20
+ SUCCESS
21
+
22
+ /// Represents a warning that requires attention.
23
+ WARNING
24
+
25
+ /// Signifies an error that needs to be addressed.
26
+ ERROR
27
+
28
+ /// Provides informational messages to the user.
29
+ INFO
23
30
  }
24
31
 
25
32
  `;
@@ -1,2 +1,2 @@
1
- export declare const AlertTypeString = "\nYour response should adhere to the following type definition for the \"Alert\" 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 Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\n";
1
+ export declare const AlertTypeString = "\nYour response should adhere to the following type definition for the \"Alert\" 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 Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\n\nenum AlertType {\n /// Indicates a successful operation or event.\n SUCCESS\n\n /// Represents a warning that requires attention.\n WARNING\n\n /// Signifies an error that needs to be addressed.\n ERROR\n\n /// Provides informational messages to the user.\n INFO\n}\n\n";
2
2
  //# sourceMappingURL=Alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,2kBAqB3B,CAAC"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,quBA4B3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;CAqB9B,CAAC"}
1
+ {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B9B,CAAC"}
@@ -21,10 +21,5 @@ export type AlpacaAccount = {
21
21
  }[];
22
22
  };
23
23
 
24
- export enum AlpacaAccountType {
25
- PAPER = "PAPER",
26
- LIVE = "LIVE"
27
- }
28
-
29
24
  `;
30
25
  //# sourceMappingURL=AlpacaAccount.js.map
@@ -1,2 +1,2 @@
1
- export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" 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 AlpacaAccount = {\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 id: string;\n qty: number;\n asset: Asset;\n }[];\n};\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\n";
1
+ export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" 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 AlpacaAccount = {\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 id: string;\n qty: number;\n asset: Asset;\n }[];\n};\n\n";
2
2
  //# sourceMappingURL=AlpacaAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,2tBAyBnC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,4oBAoBnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBtC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBtC,CAAC"}
@@ -15,29 +15,5 @@ export type Asset = {
15
15
  type: AssetType;
16
16
  };
17
17
 
18
- export enum AssetType {
19
- STOCK = "STOCK",
20
- ETF = "ETF",
21
- MUTUAL_FUND = "MUTUAL_FUND",
22
- CRYPTOCURRENCY = "CRYPTOCURRENCY",
23
- INDEX = "INDEX",
24
- COMMODITY = "COMMODITY",
25
- CURRENCY = "CURRENCY",
26
- OPTION = "OPTION",
27
- FUTURE = "FUTURE",
28
- BOND = "BOND",
29
- WARRANT = "WARRANT",
30
- ADR = "ADR",
31
- GDR = "GDR",
32
- UNIT = "UNIT",
33
- RIGHT = "RIGHT",
34
- REIT = "REIT",
35
- STRUCTURED_PRODUCT = "STRUCTURED_PRODUCT",
36
- SWAP = "SWAP",
37
- SPOT = "SPOT",
38
- FORWARD = "FORWARD",
39
- OTHER = "OTHER"
40
- }
41
-
42
18
  `;
43
19
  //# sourceMappingURL=Asset.js.map
@@ -1,2 +1,2 @@
1
- export declare const AssetTypeString = "\nYour response should adhere to the following type definition for the \"Asset\" 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 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\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 AssetTypeString = "\nYour response should adhere to the following type definition for the \"Asset\" 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 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\n";
2
2
  //# sourceMappingURL=Asset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,g9BAsC3B,CAAC"}
1
+ {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yaAc3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC9B,CAAC"}
1
+ {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;CAc9B,CAAC"}
@@ -21,11 +21,5 @@ export type Customer = {
21
21
  }[];
22
22
  };
23
23
 
24
- export enum SubscriptionPlan {
25
- FREE = "FREE",
26
- PRO = "PRO",
27
- BUSINESS = "BUSINESS"
28
- }
29
-
30
24
  `;
31
25
  //# sourceMappingURL=Customer.js.map
@@ -1,2 +1,2 @@
1
- export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" 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 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 id: string;\n name?: string;\n email?: string;\n }[];\n};\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\n";
1
+ export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" 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 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 id: string;\n name?: string;\n email?: string;\n }[];\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,osBA0B9B,CAAC"}
1
+ {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,8lBAoB9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BjC,CAAC"}
1
+ {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBjC,CAAC"}
@@ -17,10 +17,15 @@ export type EconomicEvent = {
17
17
  importance: EventImportance;
18
18
  };
19
19
 
20
- export enum EventImportance {
21
- LOW = "LOW",
22
- MEDIUM = "MEDIUM",
23
- HIGH = "HIGH"
20
+ enum EventImportance {
21
+ /// Low importance events with minimal impact.
22
+ LOW
23
+
24
+ /// Medium importance events with noticeable impact.
25
+ MEDIUM
26
+
27
+ /// High importance events with significant impact.
28
+ HIGH
24
29
  }
25
30
 
26
31
  `;
@@ -1,2 +1,2 @@
1
- export declare const EconomicEventTypeString = "\nYour response should adhere to the following type definition for the \"EconomicEvent\" 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 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\nexport enum EventImportance {\n LOW = \"LOW\",\n MEDIUM = \"MEDIUM\",\n HIGH = \"HIGH\"\n}\n\n";
1
+ export declare const EconomicEventTypeString = "\nYour response should adhere to the following type definition for the \"EconomicEvent\" 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 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";
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,grBAsBnC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,0yBA2BnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBtC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BtC,CAAC"}
@@ -15,14 +15,27 @@ export type MarketSentiment = {
15
15
  longDescription: string;
16
16
  };
17
17
 
18
- export enum MarketSentimentLevel {
19
- VERY_BEARISH = "VERY_BEARISH",
20
- SOMEWHAT_BEARISH = "SOMEWHAT_BEARISH",
21
- BEARISH = "BEARISH",
22
- NEUTRAL = "NEUTRAL",
23
- SOMEWHAT_BULLISH = "SOMEWHAT_BULLISH",
24
- BULLISH = "BULLISH",
25
- VERY_BULLISH = "VERY_BULLISH"
18
+ enum MarketSentimentLevel {
19
+ /// Extremely negative outlook on the market.
20
+ VERY_BEARISH
21
+
22
+ /// Moderately negative outlook on the market.
23
+ SOMEWHAT_BEARISH
24
+
25
+ /// Negative outlook on the market.
26
+ BEARISH
27
+
28
+ /// Neutral outlook on the market.
29
+ NEUTRAL
30
+
31
+ /// Positive outlook on the market.
32
+ SOMEWHAT_BULLISH
33
+
34
+ /// Moderately positive outlook on the market.
35
+ BULLISH
36
+
37
+ /// Extremely positive outlook on the market.
38
+ VERY_BULLISH
26
39
  }
27
40
 
28
41
  `;
@@ -1,2 +1,2 @@
1
- export declare const MarketSentimentTypeString = "\nYour response should adhere to the following type definition for the \"MarketSentiment\" 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 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\nexport enum MarketSentimentLevel {\n VERY_BEARISH = \"VERY_BEARISH\",\n SOMEWHAT_BEARISH = \"SOMEWHAT_BEARISH\",\n BEARISH = \"BEARISH\",\n NEUTRAL = \"NEUTRAL\",\n SOMEWHAT_BULLISH = \"SOMEWHAT_BULLISH\",\n BULLISH = \"BULLISH\",\n VERY_BULLISH = \"VERY_BULLISH\"\n}\n\n";
1
+ export declare const MarketSentimentTypeString = "\nYour response should adhere to the following type definition for the \"MarketSentiment\" 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 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";
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,yiCAwBrC,CAAC"}
1
+ {"version":3,"file":"MarketSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,ouCAqCrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBxC,CAAC"}
1
+ {"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxC,CAAC"}
@@ -23,29 +23,5 @@ export type NewsArticleAssetSentiment = {
23
23
  sentimentLabel?: string;
24
24
  };
25
25
 
26
- export enum AssetType {
27
- STOCK = "STOCK",
28
- ETF = "ETF",
29
- MUTUAL_FUND = "MUTUAL_FUND",
30
- CRYPTOCURRENCY = "CRYPTOCURRENCY",
31
- INDEX = "INDEX",
32
- COMMODITY = "COMMODITY",
33
- CURRENCY = "CURRENCY",
34
- OPTION = "OPTION",
35
- FUTURE = "FUTURE",
36
- BOND = "BOND",
37
- WARRANT = "WARRANT",
38
- ADR = "ADR",
39
- GDR = "GDR",
40
- UNIT = "UNIT",
41
- RIGHT = "RIGHT",
42
- REIT = "REIT",
43
- STRUCTURED_PRODUCT = "STRUCTURED_PRODUCT",
44
- SWAP = "SWAP",
45
- SPOT = "SPOT",
46
- FORWARD = "FORWARD",
47
- OTHER = "OTHER"
48
- }
49
-
50
26
  `;
51
27
  //# sourceMappingURL=NewsArticleAssetSentiment.js.map
@@ -1,2 +1,2 @@
1
- export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n};\n\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\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,myCA8C/C,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,4vBAsB/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ClD,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBlD,CAAC"}