adaptic-backend 1.0.191 → 1.0.193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/typeStrings/Account.cjs +1 -0
- package/generated/typeStrings/Account.d.ts +1 -1
- package/generated/typeStrings/Account.d.ts.map +1 -1
- package/generated/typeStrings/Account.js.map +1 -1
- package/generated/typeStrings/Action.cjs +1 -63
- 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 +1 -0
- 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 +3 -58
- 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 +1 -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/Authenticator.cjs +1 -0
- package/generated/typeStrings/Authenticator.d.ts +1 -1
- package/generated/typeStrings/Authenticator.d.ts.map +1 -1
- package/generated/typeStrings/Authenticator.js.map +1 -1
- package/generated/typeStrings/Customer.cjs +2 -107
- 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/EconomicEvent.cjs +1 -0
- 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 +1 -0
- 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/NewsArticle.cjs +1 -0
- package/generated/typeStrings/NewsArticle.d.ts +1 -1
- package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticle.js.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.cjs +1 -3
- 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 +19 -21
- 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 +1 -3
- 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/ScheduledOptionOrder.cjs +1 -0
- package/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
- package/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
- package/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
- package/generated/typeStrings/Session.cjs +1 -121
- package/generated/typeStrings/Session.d.ts +1 -1
- package/generated/typeStrings/Session.d.ts.map +1 -1
- package/generated/typeStrings/Session.js.map +1 -1
- package/generated/typeStrings/StopLoss.cjs +0 -143
- package/generated/typeStrings/StopLoss.d.ts +1 -1
- package/generated/typeStrings/StopLoss.d.ts.map +1 -1
- package/generated/typeStrings/StopLoss.js.map +1 -1
- package/generated/typeStrings/TakeProfit.cjs +0 -143
- package/generated/typeStrings/TakeProfit.d.ts +1 -1
- package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
- package/generated/typeStrings/TakeProfit.js.map +1 -1
- package/generated/typeStrings/Trade.cjs +2 -131
- 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 +3 -71
- 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/VerificationToken.cjs +1 -0
- package/generated/typeStrings/VerificationToken.d.ts +1 -1
- package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
- package/generated/typeStrings/VerificationToken.js.map +1 -1
- package/generated/typeStrings/index.d.ts +20 -20
- package/generated/typegraphql-prisma/models/Order.cjs +17 -17
- package/generated/typegraphql-prisma/models/Order.d.ts +20 -20
- package/generated/typegraphql-prisma/models/Order.js.map +1 -1
- package/generated/typegraphql-prisma/models/StopLoss.cjs +1 -1
- package/generated/typegraphql-prisma/models/StopLoss.d.ts +2 -2
- package/generated/typegraphql-prisma/models/StopLoss.js.map +1 -1
- package/generated/typegraphql-prisma/models/TakeProfit.cjs +1 -1
- package/generated/typegraphql-prisma/models/TakeProfit.d.ts +2 -2
- package/generated/typegraphql-prisma/models/TakeProfit.js.map +1 -1
- package/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.cjs +3 -3
- package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
- package/package.json +1 -1
- package/server/generated/typeStrings/Account.d.ts +1 -1
- package/server/generated/typeStrings/Account.d.ts.map +1 -1
- package/server/generated/typeStrings/Account.js.map +1 -1
- package/server/generated/typeStrings/Account.mjs +1 -0
- 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 +1 -63
- 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 +1 -0
- 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 +3 -58
- 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 +1 -0
- package/server/generated/typeStrings/Authenticator.d.ts +1 -1
- package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
- package/server/generated/typeStrings/Authenticator.js.map +1 -1
- package/server/generated/typeStrings/Authenticator.mjs +1 -0
- 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 +2 -107
- 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 +1 -0
- 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 +1 -0
- package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticle.js.map +1 -1
- package/server/generated/typeStrings/NewsArticle.mjs +1 -0
- 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 +1 -3
- 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 +19 -21
- 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 +1 -3
- package/server/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
- package/server/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
- package/server/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
- package/server/generated/typeStrings/ScheduledOptionOrder.mjs +1 -0
- package/server/generated/typeStrings/Session.d.ts +1 -1
- package/server/generated/typeStrings/Session.d.ts.map +1 -1
- package/server/generated/typeStrings/Session.js.map +1 -1
- package/server/generated/typeStrings/Session.mjs +1 -121
- package/server/generated/typeStrings/StopLoss.d.ts +1 -1
- package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
- package/server/generated/typeStrings/StopLoss.js.map +1 -1
- package/server/generated/typeStrings/StopLoss.mjs +0 -143
- package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
- package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
- package/server/generated/typeStrings/TakeProfit.js.map +1 -1
- package/server/generated/typeStrings/TakeProfit.mjs +0 -143
- 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 +2 -131
- 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 +3 -71
- package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
- package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
- package/server/generated/typeStrings/VerificationToken.js.map +1 -1
- package/server/generated/typeStrings/VerificationToken.mjs +1 -0
- package/server/generated/typeStrings/index.d.ts +20 -20
- package/server/generated/typegraphql-prisma/models/Order.d.ts +20 -20
- package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/Order.mjs +37 -37
- package/server/generated/typegraphql-prisma/models/StopLoss.d.ts +2 -2
- package/server/generated/typegraphql-prisma/models/StopLoss.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/StopLoss.mjs +3 -3
- package/server/generated/typegraphql-prisma/models/TakeProfit.d.ts +2 -2
- package/server/generated/typegraphql-prisma/models/TakeProfit.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/TakeProfit.mjs +3 -3
- package/server/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
- package/server/generated/typegraphql-prisma/models/Trade.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.mjs +3 -3
- package/server/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/StopLoss/StopLossRelationsResolver.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/TakeProfit/TakeProfitRelationsResolver.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +1 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const AccountTypeString = "\nYour response should adhere to the following type definition for the \"Account\" 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 Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // State of the session associated with the account.\n session_state?: string;\n};\n";
|
1
|
+
export declare const AccountTypeString = "\nYour response should adhere to the following type definition for the \"Account\" 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 Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // State of the session associated with the account.\n session_state?: string;\n};\n\n";
|
2
2
|
//# sourceMappingURL=Account.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,
|
1
|
+
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,sqBAoB7B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG
|
1
|
+
{"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBhC,CAAC"}
|
@@ -19,75 +19,37 @@ export type Action = {
|
|
19
19
|
fee?: number;
|
20
20
|
// The order associated with this action.
|
21
21
|
order?: {
|
22
|
-
// Quantity of the asset to be ordered.
|
23
22
|
qty?: number;
|
24
|
-
// Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.
|
25
23
|
notional?: number;
|
26
|
-
// Side of the order (BUY or SELL).
|
27
24
|
side: OrderSide;
|
28
|
-
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
29
25
|
type: OrderType;
|
30
|
-
// Order class for advanced order types (simple, bracket, oco, oso).
|
31
26
|
orderClass: OrderClass;
|
32
|
-
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
33
27
|
timeInForce: TimeInForce;
|
34
|
-
// Must be a positive number and required for LIMIT or STOP_LIMIT orders. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.
|
35
28
|
limitPrice?: number;
|
36
|
-
// Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
|
37
29
|
stopPrice?: number;
|
38
|
-
// Stop loss object required for bracket orders.
|
39
30
|
stopLoss?: {
|
40
31
|
// Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
|
41
32
|
stopPrice?: number;
|
42
33
|
// Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.
|
43
34
|
limitPrice?: number;
|
44
35
|
};
|
45
|
-
// Take profit object required for bracket orders. For take_profit, must be ≥ base_price + 0.01.
|
46
36
|
takeProfit?: {
|
47
37
|
// Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.
|
48
38
|
limitPrice?: number;
|
49
39
|
// Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
|
50
40
|
stopPrice?: number;
|
51
41
|
};
|
52
|
-
// Must be a positive number and required for TRAILING_STOP orders.
|
53
42
|
trailPrice?: number;
|
54
|
-
// Must be a positive number representing the percentage and required for TRAILING_STOP orders.
|
55
43
|
trailPercent?: number;
|
56
|
-
// Whether the order is eligible for extended hours.
|
57
44
|
extendedHours?: boolean;
|
58
|
-
// Current status of the order.
|
59
45
|
status: OrderStatus;
|
60
|
-
// Timestamp when the order was submitted.
|
61
46
|
submittedAt?: Date;
|
62
|
-
// Timestamp when the order was filled.
|
63
|
-
filledAt?: Date;
|
64
|
-
// Total quantity of the order that was filled.
|
65
|
-
filledQty?: number;
|
66
|
-
// Average price at which the order was filled.
|
67
|
-
filledAvgPrice?: number;
|
68
|
-
// Cancel requested at timestamp when the request to cancel an order was made.
|
69
|
-
cancelRequestedAt?: Date;
|
70
|
-
// CanceledAt timestamp when the order was canceled.
|
71
|
-
canceledAt?: Date;
|
72
|
-
// The asset this order is for.
|
73
|
-
asset: {
|
74
|
-
// Ticker symbol of the asset
|
75
|
-
symbol: string;
|
76
|
-
// Full name of the asset
|
77
|
-
name: string;
|
78
|
-
// Type of the asset, defined by AssetType enum.
|
79
|
-
type: AssetType;
|
80
|
-
};
|
81
|
-
// Fee associated with the order.
|
82
|
-
fee?: number;
|
83
|
-
// Strike price for option orders.
|
84
47
|
strikePrice?: number;
|
85
|
-
// Expiration date for option orders.
|
86
48
|
expirationDate?: Date;
|
87
|
-
// If the asset.type is OPTION, then provide type of contract (CALL or PUT).
|
88
49
|
optionType?: OptionType;
|
89
50
|
};
|
90
51
|
};
|
52
|
+
|
91
53
|
export enum ActionType {
|
92
54
|
BUY = "BUY",
|
93
55
|
BUY_OPTION = "BUY_OPTION",
|
@@ -157,30 +119,6 @@ export enum OrderStatus {
|
|
157
119
|
CALCULATED = "CALCULATED"
|
158
120
|
}
|
159
121
|
|
160
|
-
export enum AssetType {
|
161
|
-
STOCK = "STOCK",
|
162
|
-
ETF = "ETF",
|
163
|
-
MUTUAL_FUND = "MUTUAL_FUND",
|
164
|
-
CRYPTOCURRENCY = "CRYPTOCURRENCY",
|
165
|
-
INDEX = "INDEX",
|
166
|
-
COMMODITY = "COMMODITY",
|
167
|
-
CURRENCY = "CURRENCY",
|
168
|
-
OPTION = "OPTION",
|
169
|
-
FUTURE = "FUTURE",
|
170
|
-
BOND = "BOND",
|
171
|
-
WARRANT = "WARRANT",
|
172
|
-
ADR = "ADR",
|
173
|
-
GDR = "GDR",
|
174
|
-
UNIT = "UNIT",
|
175
|
-
RIGHT = "RIGHT",
|
176
|
-
REIT = "REIT",
|
177
|
-
STRUCTURED_PRODUCT = "STRUCTURED_PRODUCT",
|
178
|
-
SWAP = "SWAP",
|
179
|
-
SPOT = "SPOT",
|
180
|
-
FORWARD = "FORWARD",
|
181
|
-
OTHER = "OTHER"
|
182
|
-
}
|
183
|
-
|
184
122
|
export enum OptionType {
|
185
123
|
CALL = "CALL",
|
186
124
|
PUT = "PUT"
|
@@ -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
|
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";
|
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,
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,siHA2H5B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG
|
1
|
+
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2H/B,CAAC"}
|
@@ -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};\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\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"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,
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,2kBAqB3B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;CAqB9B,CAAC"}
|
@@ -15,71 +15,16 @@ export type AlpacaAccount = {
|
|
15
15
|
marketOpen: boolean;
|
16
16
|
// List of positions held in this Alpaca account.
|
17
17
|
positions: {
|
18
|
-
|
19
|
-
asset: {
|
20
|
-
// Ticker symbol of the asset
|
21
|
-
symbol: string;
|
22
|
-
// Full name of the asset
|
23
|
-
name: string;
|
24
|
-
// Type of the asset, defined by AssetType enum.
|
25
|
-
type: AssetType;
|
26
|
-
};
|
27
|
-
// The average price at which the asset was acquired.
|
28
|
-
averageEntryPrice: number;
|
29
|
-
// Total quantity of the asset held.
|
18
|
+
id: string;
|
30
19
|
qty: number;
|
31
|
-
|
32
|
-
qtyAvailable: number;
|
33
|
-
// Current market value of the position.
|
34
|
-
marketValue: number;
|
35
|
-
// Total cost basis of the position.
|
36
|
-
costBasis: number;
|
37
|
-
// Unrealized profit or loss of the position.
|
38
|
-
unrealizedPL: number;
|
39
|
-
// Unrealized profit or loss as a percentage.
|
40
|
-
unrealizedPLPC: number;
|
41
|
-
// Unrealized intraday profit or loss.
|
42
|
-
unrealisedIntradayPL: number;
|
43
|
-
// Unrealized intraday profit or loss as a percentage.
|
44
|
-
unrealisedIntradayPLPC: number;
|
45
|
-
// Current price of the asset.
|
46
|
-
currentPrice: number;
|
47
|
-
// Last traded price of the asset.
|
48
|
-
lastTradePrice: number;
|
49
|
-
// Price change of the asset for the day.
|
50
|
-
changeToday: number;
|
51
|
-
// Indicates if the asset is marginable.
|
52
|
-
assetMarginable: boolean;
|
20
|
+
asset: Asset;
|
53
21
|
}[];
|
54
22
|
};
|
23
|
+
|
55
24
|
export enum AlpacaAccountType {
|
56
25
|
PAPER = "PAPER",
|
57
26
|
LIVE = "LIVE"
|
58
27
|
}
|
59
28
|
|
60
|
-
export enum AssetType {
|
61
|
-
STOCK = "STOCK",
|
62
|
-
ETF = "ETF",
|
63
|
-
MUTUAL_FUND = "MUTUAL_FUND",
|
64
|
-
CRYPTOCURRENCY = "CRYPTOCURRENCY",
|
65
|
-
INDEX = "INDEX",
|
66
|
-
COMMODITY = "COMMODITY",
|
67
|
-
CURRENCY = "CURRENCY",
|
68
|
-
OPTION = "OPTION",
|
69
|
-
FUTURE = "FUTURE",
|
70
|
-
BOND = "BOND",
|
71
|
-
WARRANT = "WARRANT",
|
72
|
-
ADR = "ADR",
|
73
|
-
GDR = "GDR",
|
74
|
-
UNIT = "UNIT",
|
75
|
-
RIGHT = "RIGHT",
|
76
|
-
REIT = "REIT",
|
77
|
-
STRUCTURED_PRODUCT = "STRUCTURED_PRODUCT",
|
78
|
-
SWAP = "SWAP",
|
79
|
-
SPOT = "SPOT",
|
80
|
-
FORWARD = "FORWARD",
|
81
|
-
OTHER = "OTHER"
|
82
|
-
}
|
83
|
-
|
84
29
|
`;
|
85
30
|
//# 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
|
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";
|
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,
|
1
|
+
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,2tBAyBnC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG
|
1
|
+
{"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBtC,CAAC"}
|
@@ -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};\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\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n";
|
2
2
|
//# sourceMappingURL=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,
|
1
|
+
{"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,g9BAsC3B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG
|
1
|
+
{"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC9B,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const AuthenticatorTypeString = "\nYour response should adhere to the following type definition for the \"Authenticator\" 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 Authenticator = {\n\n};\n";
|
1
|
+
export declare const AuthenticatorTypeString = "\nYour response should adhere to the following type definition for the \"Authenticator\" 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 Authenticator = {\n\n};\n\n";
|
2
2
|
//# sourceMappingURL=Authenticator.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB
|
1
|
+
{"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,iRASnC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG
|
1
|
+
{"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;CAStC,CAAC"}
|
@@ -15,122 +15,17 @@ export type Customer = {
|
|
15
15
|
stripeCurrentPeriodEnd?: Date;
|
16
16
|
// List of users associated with the customer.
|
17
17
|
users: {
|
18
|
-
|
18
|
+
id: string;
|
19
19
|
name?: string;
|
20
|
-
// The user's email address, must be unique.
|
21
20
|
email?: string;
|
22
|
-
// URL to the user's profile image.
|
23
|
-
image?: string;
|
24
|
-
// The role assigned to the user, determining permissions.
|
25
|
-
role: UserRole;
|
26
|
-
// A short biography or description of the user.
|
27
|
-
bio?: string;
|
28
|
-
// The user's job title or position.
|
29
|
-
jobTitle?: string;
|
30
|
-
// The type of Alpaca account the user currently holds.
|
31
|
-
currentAccount: AlpacaAccountType;
|
32
|
-
// The subscription plan the user is enrolled in.
|
33
|
-
plan?: SubscriptionPlan;
|
34
|
-
// List of Alpaca accounts linked to the user.
|
35
|
-
alpacaAccounts: {
|
36
|
-
// The type of Alpaca account (PAPER or LIVE).
|
37
|
-
type: AlpacaAccountType;
|
38
|
-
// JSON configuration settings for the Alpaca account.
|
39
|
-
configuration?: any;
|
40
|
-
// Indicates whether the market is currently open for trading.
|
41
|
-
marketOpen: boolean;
|
42
|
-
// List of positions held in this Alpaca account.
|
43
|
-
positions: {
|
44
|
-
// Relation to the Asset model.
|
45
|
-
asset: {
|
46
|
-
// Ticker symbol of the asset
|
47
|
-
symbol: string;
|
48
|
-
// Full name of the asset
|
49
|
-
name: string;
|
50
|
-
// Type of the asset, defined by AssetType enum.
|
51
|
-
type: AssetType;
|
52
|
-
};
|
53
|
-
// The average price at which the asset was acquired.
|
54
|
-
averageEntryPrice: number;
|
55
|
-
// Total quantity of the asset held.
|
56
|
-
qty: number;
|
57
|
-
// Quantity of the asset available for trading.
|
58
|
-
qtyAvailable: number;
|
59
|
-
// Current market value of the position.
|
60
|
-
marketValue: number;
|
61
|
-
// Total cost basis of the position.
|
62
|
-
costBasis: number;
|
63
|
-
// Unrealized profit or loss of the position.
|
64
|
-
unrealizedPL: number;
|
65
|
-
// Unrealized profit or loss as a percentage.
|
66
|
-
unrealizedPLPC: number;
|
67
|
-
// Unrealized intraday profit or loss.
|
68
|
-
unrealisedIntradayPL: number;
|
69
|
-
// Unrealized intraday profit or loss as a percentage.
|
70
|
-
unrealisedIntradayPLPC: number;
|
71
|
-
// Current price of the asset.
|
72
|
-
currentPrice: number;
|
73
|
-
// Last traded price of the asset.
|
74
|
-
lastTradePrice: number;
|
75
|
-
// Price change of the asset for the day.
|
76
|
-
changeToday: number;
|
77
|
-
// Indicates if the asset is marginable.
|
78
|
-
assetMarginable: boolean;
|
79
|
-
}[];
|
80
|
-
}[];
|
81
|
-
// OpenAI API key for the user.
|
82
|
-
openaiAPIKey?: string;
|
83
|
-
// OpenAI API Language model selected by the user
|
84
|
-
openaiModel?: OpenaiModel;
|
85
21
|
}[];
|
86
22
|
};
|
23
|
+
|
87
24
|
export enum SubscriptionPlan {
|
88
25
|
FREE = "FREE",
|
89
26
|
PRO = "PRO",
|
90
27
|
BUSINESS = "BUSINESS"
|
91
28
|
}
|
92
29
|
|
93
|
-
export enum UserRole {
|
94
|
-
OWNER = "OWNER",
|
95
|
-
ADMIN = "ADMIN",
|
96
|
-
USER = "USER"
|
97
|
-
}
|
98
|
-
|
99
|
-
export enum AlpacaAccountType {
|
100
|
-
PAPER = "PAPER",
|
101
|
-
LIVE = "LIVE"
|
102
|
-
}
|
103
|
-
|
104
|
-
export enum AssetType {
|
105
|
-
STOCK = "STOCK",
|
106
|
-
ETF = "ETF",
|
107
|
-
MUTUAL_FUND = "MUTUAL_FUND",
|
108
|
-
CRYPTOCURRENCY = "CRYPTOCURRENCY",
|
109
|
-
INDEX = "INDEX",
|
110
|
-
COMMODITY = "COMMODITY",
|
111
|
-
CURRENCY = "CURRENCY",
|
112
|
-
OPTION = "OPTION",
|
113
|
-
FUTURE = "FUTURE",
|
114
|
-
BOND = "BOND",
|
115
|
-
WARRANT = "WARRANT",
|
116
|
-
ADR = "ADR",
|
117
|
-
GDR = "GDR",
|
118
|
-
UNIT = "UNIT",
|
119
|
-
RIGHT = "RIGHT",
|
120
|
-
REIT = "REIT",
|
121
|
-
STRUCTURED_PRODUCT = "STRUCTURED_PRODUCT",
|
122
|
-
SWAP = "SWAP",
|
123
|
-
SPOT = "SPOT",
|
124
|
-
FORWARD = "FORWARD",
|
125
|
-
OTHER = "OTHER"
|
126
|
-
}
|
127
|
-
|
128
|
-
export enum OpenaiModel {
|
129
|
-
GPT_4O = "GPT_4O",
|
130
|
-
GPT_4O_MINI = "GPT_4O_MINI",
|
131
|
-
O1_PREVIEW = "O1_PREVIEW",
|
132
|
-
O1_MINI = "O1_MINI"
|
133
|
-
}
|
134
|
-
|
135
30
|
`;
|
136
31
|
//# 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
|
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";
|
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,
|
1
|
+
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,osBA0B9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG
|
1
|
+
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BjC,CAAC"}
|
@@ -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};\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\nexport enum EventImportance {\n LOW = \"LOW\",\n MEDIUM = \"MEDIUM\",\n HIGH = \"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,grBAsBnC,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;;;;;;;;;;;;;;;;;;;;;;CAsBtC,CAAC"}
|
@@ -14,6 +14,7 @@ export type MarketSentiment = {
|
|
14
14
|
// A detailed, multi-paragraph description of the market sentiment, including extensive analyses, references, quotes from major news sources, and links to articles.
|
15
15
|
longDescription: string;
|
16
16
|
};
|
17
|
+
|
17
18
|
export enum MarketSentimentLevel {
|
18
19
|
VERY_BEARISH = "VERY_BEARISH",
|
19
20
|
SOMEWHAT_BEARISH = "SOMEWHAT_BEARISH",
|
@@ -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};\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\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";
|
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,yiCAwBrC,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;;;;;;;;;;;;;;;;;;;;;;;;CAwBxC,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" 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 NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n};\n";
|
1
|
+
export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" 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 NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n};\n\n";
|
2
2
|
//# sourceMappingURL=NewsArticle.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,
|
1
|
+
{"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,0mCAkCjC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG
|
1
|
+
{"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCpC,CAAC"}
|
@@ -11,11 +11,8 @@ export type NewsArticleAssetSentiment = {
|
|
11
11
|
url: string;
|
12
12
|
// Relation to the Asset model.
|
13
13
|
asset: {
|
14
|
-
// Ticker symbol of the asset
|
15
14
|
symbol: string;
|
16
|
-
// Full name of the asset
|
17
15
|
name: string;
|
18
|
-
// Type of the asset, defined by AssetType enum.
|
19
16
|
type: AssetType;
|
20
17
|
};
|
21
18
|
// Relevancy score indicating how relevant the news is to the asset.
|
@@ -25,6 +22,7 @@ export type NewsArticleAssetSentiment = {
|
|
25
22
|
// Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).
|
26
23
|
sentimentLabel?: string;
|
27
24
|
};
|
25
|
+
|
28
26
|
export enum AssetType {
|
29
27
|
STOCK = "STOCK",
|
30
28
|
ETF = "ETF",
|