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.
- package/generated/typeStrings/Action.cjs +114 -0
- package/generated/typeStrings/Action.d.ts +1 -1
- package/generated/typeStrings/Action.d.ts.map +1 -1
- package/generated/typeStrings/Action.js.map +1 -1
- package/generated/typeStrings/Alert.cjs +0 -4
- package/generated/typeStrings/Alert.d.ts +1 -1
- package/generated/typeStrings/Alert.d.ts.map +1 -1
- package/generated/typeStrings/Alert.js.map +1 -1
- package/generated/typeStrings/AlpacaAccount.cjs +6 -21
- package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/generated/typeStrings/AlpacaAccount.js.map +1 -1
- package/generated/typeStrings/Asset.cjs +44 -0
- package/generated/typeStrings/Asset.d.ts +1 -1
- package/generated/typeStrings/Asset.d.ts.map +1 -1
- package/generated/typeStrings/Asset.js.map +1 -1
- package/generated/typeStrings/Contract.cjs +44 -43
- package/generated/typeStrings/Contract.d.ts +1 -1
- package/generated/typeStrings/Contract.d.ts.map +1 -1
- package/generated/typeStrings/Contract.js.map +1 -1
- package/generated/typeStrings/Customer.cjs +8 -0
- package/generated/typeStrings/Customer.d.ts +1 -1
- package/generated/typeStrings/Customer.d.ts.map +1 -1
- package/generated/typeStrings/Customer.js.map +1 -1
- package/generated/typeStrings/Deliverable.cjs +144 -0
- package/generated/typeStrings/Deliverable.d.ts +1 -1
- package/generated/typeStrings/Deliverable.d.ts.map +1 -1
- package/generated/typeStrings/Deliverable.js.map +1 -1
- package/generated/typeStrings/EconomicEvent.cjs +0 -3
- package/generated/typeStrings/EconomicEvent.d.ts +1 -1
- package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
- package/generated/typeStrings/EconomicEvent.js.map +1 -1
- package/generated/typeStrings/MarketSentiment.cjs +0 -7
- package/generated/typeStrings/MarketSentiment.d.ts +1 -1
- package/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
- package/generated/typeStrings/MarketSentiment.js.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.cjs +44 -0
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
- package/generated/typeStrings/Order.cjs +132 -0
- package/generated/typeStrings/Order.d.ts +1 -1
- package/generated/typeStrings/Order.d.ts.map +1 -1
- package/generated/typeStrings/Order.js.map +1 -1
- package/generated/typeStrings/Position.cjs +44 -0
- package/generated/typeStrings/Position.d.ts +1 -1
- package/generated/typeStrings/Position.d.ts.map +1 -1
- package/generated/typeStrings/Position.js.map +1 -1
- package/generated/typeStrings/Trade.cjs +132 -70
- package/generated/typeStrings/Trade.d.ts +1 -1
- package/generated/typeStrings/Trade.d.ts.map +1 -1
- package/generated/typeStrings/Trade.js.map +1 -1
- package/generated/typeStrings/User.cjs +0 -8
- package/generated/typeStrings/User.d.ts +1 -1
- package/generated/typeStrings/User.d.ts.map +1 -1
- package/generated/typeStrings/User.js.map +1 -1
- package/generated/typeStrings/index.d.ts +14 -14
- package/package.json +1 -1
- package/server/generated/typeStrings/Action.d.ts +1 -1
- package/server/generated/typeStrings/Action.d.ts.map +1 -1
- package/server/generated/typeStrings/Action.js.map +1 -1
- package/server/generated/typeStrings/Action.mjs +114 -0
- package/server/generated/typeStrings/Alert.d.ts +1 -1
- package/server/generated/typeStrings/Alert.d.ts.map +1 -1
- package/server/generated/typeStrings/Alert.js.map +1 -1
- package/server/generated/typeStrings/Alert.mjs +0 -4
- package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.mjs +6 -21
- package/server/generated/typeStrings/Asset.d.ts +1 -1
- package/server/generated/typeStrings/Asset.d.ts.map +1 -1
- package/server/generated/typeStrings/Asset.js.map +1 -1
- package/server/generated/typeStrings/Asset.mjs +44 -0
- package/server/generated/typeStrings/Contract.d.ts +1 -1
- package/server/generated/typeStrings/Contract.d.ts.map +1 -1
- package/server/generated/typeStrings/Contract.js.map +1 -1
- package/server/generated/typeStrings/Contract.mjs +44 -43
- package/server/generated/typeStrings/Customer.d.ts +1 -1
- package/server/generated/typeStrings/Customer.d.ts.map +1 -1
- package/server/generated/typeStrings/Customer.js.map +1 -1
- package/server/generated/typeStrings/Customer.mjs +8 -0
- package/server/generated/typeStrings/Deliverable.d.ts +1 -1
- package/server/generated/typeStrings/Deliverable.d.ts.map +1 -1
- package/server/generated/typeStrings/Deliverable.js.map +1 -1
- package/server/generated/typeStrings/Deliverable.mjs +144 -0
- package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
- package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
- package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
- package/server/generated/typeStrings/EconomicEvent.mjs +0 -3
- package/server/generated/typeStrings/MarketSentiment.d.ts +1 -1
- package/server/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
- package/server/generated/typeStrings/MarketSentiment.js.map +1 -1
- package/server/generated/typeStrings/MarketSentiment.mjs +0 -7
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +44 -0
- package/server/generated/typeStrings/Order.d.ts +1 -1
- package/server/generated/typeStrings/Order.d.ts.map +1 -1
- package/server/generated/typeStrings/Order.js.map +1 -1
- package/server/generated/typeStrings/Order.mjs +132 -0
- package/server/generated/typeStrings/Position.d.ts +1 -1
- package/server/generated/typeStrings/Position.d.ts.map +1 -1
- package/server/generated/typeStrings/Position.js.map +1 -1
- package/server/generated/typeStrings/Position.mjs +44 -0
- package/server/generated/typeStrings/Trade.d.ts +1 -1
- package/server/generated/typeStrings/Trade.d.ts.map +1 -1
- package/server/generated/typeStrings/Trade.js.map +1 -1
- package/server/generated/typeStrings/Trade.mjs +132 -70
- package/server/generated/typeStrings/User.d.ts +1 -1
- package/server/generated/typeStrings/User.d.ts.map +1 -1
- package/server/generated/typeStrings/User.js.map +1 -1
- package/server/generated/typeStrings/User.mjs +0 -8
- package/server/generated/typeStrings/index.d.ts +14 -14
@@ -124,5 +124,149 @@ export type Deliverable = {
|
|
124
124
|
};
|
125
125
|
};
|
126
126
|
|
127
|
+
enum DeliverableType {
|
128
|
+
CASH
|
129
|
+
|
130
|
+
EQUITY
|
131
|
+
}
|
132
|
+
|
133
|
+
enum OptionType {
|
134
|
+
CALL
|
135
|
+
|
136
|
+
PUT
|
137
|
+
}
|
138
|
+
|
139
|
+
enum OptionStyle {
|
140
|
+
AMERICAN
|
141
|
+
|
142
|
+
EUROPEAN
|
143
|
+
}
|
144
|
+
|
145
|
+
enum AssetType {
|
146
|
+
STOCK
|
147
|
+
|
148
|
+
ETF
|
149
|
+
|
150
|
+
MUTUAL_FUND
|
151
|
+
|
152
|
+
CRYPTOCURRENCY
|
153
|
+
|
154
|
+
INDEX
|
155
|
+
|
156
|
+
COMMODITY
|
157
|
+
|
158
|
+
CURRENCY
|
159
|
+
|
160
|
+
OPTION
|
161
|
+
|
162
|
+
FUTURE
|
163
|
+
|
164
|
+
BOND
|
165
|
+
|
166
|
+
WARRANT
|
167
|
+
|
168
|
+
ADR
|
169
|
+
|
170
|
+
GDR
|
171
|
+
|
172
|
+
UNIT
|
173
|
+
|
174
|
+
RIGHT
|
175
|
+
|
176
|
+
REIT
|
177
|
+
|
178
|
+
STRUCTURED_PRODUCT
|
179
|
+
|
180
|
+
SWAP
|
181
|
+
|
182
|
+
SPOT
|
183
|
+
|
184
|
+
FORWARD
|
185
|
+
|
186
|
+
OTHER
|
187
|
+
}
|
188
|
+
|
189
|
+
enum OrderSide {
|
190
|
+
BUY
|
191
|
+
|
192
|
+
SELL
|
193
|
+
}
|
194
|
+
|
195
|
+
enum OrderType {
|
196
|
+
MARKET
|
197
|
+
|
198
|
+
LIMIT
|
199
|
+
|
200
|
+
STOP
|
201
|
+
|
202
|
+
STOP_LIMIT
|
203
|
+
|
204
|
+
TRAILING_STOP
|
205
|
+
}
|
206
|
+
|
207
|
+
enum OrderClass {
|
208
|
+
SIMPLE
|
209
|
+
|
210
|
+
BRACKET
|
211
|
+
|
212
|
+
OCO
|
213
|
+
|
214
|
+
OSO
|
215
|
+
|
216
|
+
OTO
|
217
|
+
}
|
218
|
+
|
219
|
+
enum TimeInForce {
|
220
|
+
DAY
|
221
|
+
|
222
|
+
GTC
|
223
|
+
|
224
|
+
OPG
|
225
|
+
|
226
|
+
CLS
|
227
|
+
|
228
|
+
IOC
|
229
|
+
|
230
|
+
FOK
|
231
|
+
}
|
232
|
+
|
233
|
+
enum OrderStatus {
|
234
|
+
STAGED
|
235
|
+
|
236
|
+
NEW
|
237
|
+
|
238
|
+
PARTIALLY_FILLED
|
239
|
+
|
240
|
+
FILLED
|
241
|
+
|
242
|
+
DONE_FOR_DAY
|
243
|
+
|
244
|
+
CANCELED
|
245
|
+
|
246
|
+
EXPIRED
|
247
|
+
|
248
|
+
HELD
|
249
|
+
|
250
|
+
REPLACED
|
251
|
+
|
252
|
+
PENDING_CANCEL
|
253
|
+
|
254
|
+
PENDING_REPLACE
|
255
|
+
|
256
|
+
ACCEPTED
|
257
|
+
|
258
|
+
PENDING_NEW
|
259
|
+
|
260
|
+
ACCEPTED_FOR_BIDDING
|
261
|
+
|
262
|
+
STOPPED
|
263
|
+
|
264
|
+
REJECTED
|
265
|
+
|
266
|
+
SUSPENDED
|
267
|
+
|
268
|
+
CALCULATED
|
269
|
+
}
|
270
|
+
|
127
271
|
`;
|
128
272
|
//# sourceMappingURL=Deliverable.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,
|
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,QAAA,qBAAqB,GAAG
|
1
|
+
{"version":3,"file":"Deliverable.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Deliverable.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2QpC,CAAC"}
|
@@ -17,13 +17,10 @@ export type EconomicEvent = {
|
|
17
17
|
};
|
18
18
|
|
19
19
|
enum EventImportance {
|
20
|
-
/// Low importance events with minimal impact.
|
21
20
|
LOW
|
22
21
|
|
23
|
-
/// Medium importance events with noticeable impact.
|
24
22
|
MEDIUM
|
25
23
|
|
26
|
-
/// High importance events with significant impact.
|
27
24
|
HIGH
|
28
25
|
}
|
29
26
|
|
@@ -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
|
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,
|
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,QAAA,uBAAuB,GAAG
|
1
|
+
{"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAuBtC,CAAC"}
|
@@ -15,25 +15,18 @@ export type MarketSentiment = {
|
|
15
15
|
};
|
16
16
|
|
17
17
|
enum MarketSentimentLevel {
|
18
|
-
/// Extremely negative outlook on the market.
|
19
18
|
VERY_BEARISH
|
20
19
|
|
21
|
-
/// Moderately negative outlook on the market.
|
22
20
|
SOMEWHAT_BEARISH
|
23
21
|
|
24
|
-
/// Negative outlook on the market.
|
25
22
|
BEARISH
|
26
23
|
|
27
|
-
/// Neutral outlook on the market.
|
28
24
|
NEUTRAL
|
29
25
|
|
30
|
-
/// Positive outlook on the market.
|
31
26
|
SOMEWHAT_BULLISH
|
32
27
|
|
33
|
-
/// Moderately positive outlook on the market.
|
34
28
|
BULLISH
|
35
29
|
|
36
|
-
/// Extremely positive outlook on the market.
|
37
30
|
VERY_BULLISH
|
38
31
|
}
|
39
32
|
|
@@ -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
|
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,
|
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,QAAA,yBAAyB,GAAG
|
1
|
+
{"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BxC,CAAC"}
|
@@ -25,5 +25,49 @@ export type NewsArticleAssetSentiment = {
|
|
25
25
|
sentimentLabel?: string;
|
26
26
|
};
|
27
27
|
|
28
|
+
enum AssetType {
|
29
|
+
STOCK
|
30
|
+
|
31
|
+
ETF
|
32
|
+
|
33
|
+
MUTUAL_FUND
|
34
|
+
|
35
|
+
CRYPTOCURRENCY
|
36
|
+
|
37
|
+
INDEX
|
38
|
+
|
39
|
+
COMMODITY
|
40
|
+
|
41
|
+
CURRENCY
|
42
|
+
|
43
|
+
OPTION
|
44
|
+
|
45
|
+
FUTURE
|
46
|
+
|
47
|
+
BOND
|
48
|
+
|
49
|
+
WARRANT
|
50
|
+
|
51
|
+
ADR
|
52
|
+
|
53
|
+
GDR
|
54
|
+
|
55
|
+
UNIT
|
56
|
+
|
57
|
+
RIGHT
|
58
|
+
|
59
|
+
REIT
|
60
|
+
|
61
|
+
STRUCTURED_PRODUCT
|
62
|
+
|
63
|
+
SWAP
|
64
|
+
|
65
|
+
SPOT
|
66
|
+
|
67
|
+
FORWARD
|
68
|
+
|
69
|
+
OTHER
|
70
|
+
}
|
71
|
+
|
28
72
|
`;
|
29
73
|
//# sourceMappingURL=NewsArticleAssetSentiment.js.map
|
@@ -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,
|
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,QAAA,mCAAmC,GAAG
|
1
|
+
{"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoElD,CAAC"}
|
@@ -61,5 +61,137 @@ export type Order = {
|
|
61
61
|
optionType?: OptionType;
|
62
62
|
};
|
63
63
|
|
64
|
+
enum OrderSide {
|
65
|
+
BUY
|
66
|
+
|
67
|
+
SELL
|
68
|
+
}
|
69
|
+
|
70
|
+
enum OrderType {
|
71
|
+
MARKET
|
72
|
+
|
73
|
+
LIMIT
|
74
|
+
|
75
|
+
STOP
|
76
|
+
|
77
|
+
STOP_LIMIT
|
78
|
+
|
79
|
+
TRAILING_STOP
|
80
|
+
}
|
81
|
+
|
82
|
+
enum OrderClass {
|
83
|
+
SIMPLE
|
84
|
+
|
85
|
+
BRACKET
|
86
|
+
|
87
|
+
OCO
|
88
|
+
|
89
|
+
OSO
|
90
|
+
|
91
|
+
OTO
|
92
|
+
}
|
93
|
+
|
94
|
+
enum TimeInForce {
|
95
|
+
DAY
|
96
|
+
|
97
|
+
GTC
|
98
|
+
|
99
|
+
OPG
|
100
|
+
|
101
|
+
CLS
|
102
|
+
|
103
|
+
IOC
|
104
|
+
|
105
|
+
FOK
|
106
|
+
}
|
107
|
+
|
108
|
+
enum OrderStatus {
|
109
|
+
STAGED
|
110
|
+
|
111
|
+
NEW
|
112
|
+
|
113
|
+
PARTIALLY_FILLED
|
114
|
+
|
115
|
+
FILLED
|
116
|
+
|
117
|
+
DONE_FOR_DAY
|
118
|
+
|
119
|
+
CANCELED
|
120
|
+
|
121
|
+
EXPIRED
|
122
|
+
|
123
|
+
HELD
|
124
|
+
|
125
|
+
REPLACED
|
126
|
+
|
127
|
+
PENDING_CANCEL
|
128
|
+
|
129
|
+
PENDING_REPLACE
|
130
|
+
|
131
|
+
ACCEPTED
|
132
|
+
|
133
|
+
PENDING_NEW
|
134
|
+
|
135
|
+
ACCEPTED_FOR_BIDDING
|
136
|
+
|
137
|
+
STOPPED
|
138
|
+
|
139
|
+
REJECTED
|
140
|
+
|
141
|
+
SUSPENDED
|
142
|
+
|
143
|
+
CALCULATED
|
144
|
+
}
|
145
|
+
|
146
|
+
enum AssetType {
|
147
|
+
STOCK
|
148
|
+
|
149
|
+
ETF
|
150
|
+
|
151
|
+
MUTUAL_FUND
|
152
|
+
|
153
|
+
CRYPTOCURRENCY
|
154
|
+
|
155
|
+
INDEX
|
156
|
+
|
157
|
+
COMMODITY
|
158
|
+
|
159
|
+
CURRENCY
|
160
|
+
|
161
|
+
OPTION
|
162
|
+
|
163
|
+
FUTURE
|
164
|
+
|
165
|
+
BOND
|
166
|
+
|
167
|
+
WARRANT
|
168
|
+
|
169
|
+
ADR
|
170
|
+
|
171
|
+
GDR
|
172
|
+
|
173
|
+
UNIT
|
174
|
+
|
175
|
+
RIGHT
|
176
|
+
|
177
|
+
REIT
|
178
|
+
|
179
|
+
STRUCTURED_PRODUCT
|
180
|
+
|
181
|
+
SWAP
|
182
|
+
|
183
|
+
SPOT
|
184
|
+
|
185
|
+
FORWARD
|
186
|
+
|
187
|
+
OTHER
|
188
|
+
}
|
189
|
+
|
190
|
+
enum OptionType {
|
191
|
+
CALL
|
192
|
+
|
193
|
+
PUT
|
194
|
+
}
|
195
|
+
|
64
196
|
`;
|
65
197
|
//# sourceMappingURL=Order.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const OrderTypeString = "\n// Your response should adhere to the following type definition for the \"Order\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Order = {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\n notional?: number;\n // Side of the order ('BUY' or 'SELL').\n side: OrderSide;\n // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').\n type: OrderType;\n // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n};\n\n";
|
1
|
+
export declare const OrderTypeString = "\n// Your response should adhere to the following type definition for the \"Order\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Order = {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\n notional?: number;\n // Side of the order ('BUY' or 'SELL').\n side: OrderSide;\n // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').\n type: OrderType;\n // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n};\n\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\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 OptionType {\n CALL\n\n PUT\n}\n\n";
|
2
2
|
//# sourceMappingURL=Order.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
1
|
+
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,qgKAgM3B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG
|
1
|
+
{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgM9B,CAAC"}
|
@@ -43,5 +43,49 @@ export type Position = {
|
|
43
43
|
assetMarginable: boolean;
|
44
44
|
};
|
45
45
|
|
46
|
+
enum AssetType {
|
47
|
+
STOCK
|
48
|
+
|
49
|
+
ETF
|
50
|
+
|
51
|
+
MUTUAL_FUND
|
52
|
+
|
53
|
+
CRYPTOCURRENCY
|
54
|
+
|
55
|
+
INDEX
|
56
|
+
|
57
|
+
COMMODITY
|
58
|
+
|
59
|
+
CURRENCY
|
60
|
+
|
61
|
+
OPTION
|
62
|
+
|
63
|
+
FUTURE
|
64
|
+
|
65
|
+
BOND
|
66
|
+
|
67
|
+
WARRANT
|
68
|
+
|
69
|
+
ADR
|
70
|
+
|
71
|
+
GDR
|
72
|
+
|
73
|
+
UNIT
|
74
|
+
|
75
|
+
RIGHT
|
76
|
+
|
77
|
+
REIT
|
78
|
+
|
79
|
+
STRUCTURED_PRODUCT
|
80
|
+
|
81
|
+
SWAP
|
82
|
+
|
83
|
+
SPOT
|
84
|
+
|
85
|
+
FORWARD
|
86
|
+
|
87
|
+
OTHER
|
88
|
+
}
|
89
|
+
|
46
90
|
`;
|
47
91
|
//# sourceMappingURL=Position.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const PositionTypeString = "\n// Your response should adhere to the following type definition for the \"Position\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Position = {\n // Relation to the Asset model.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n};\n\n";
|
1
|
+
export declare const PositionTypeString = "\n// Your response should adhere to the following type definition for the \"Position\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Position = {\n // Relation to the Asset model.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n};\n\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=Position.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,
|
1
|
+
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,orDAsF9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Position.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG
|
1
|
+
{"version":3,"file":"Position.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFjC,CAAC"}
|