adaptic-backend 1.0.241 → 1.0.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/generated/typeStrings/Action.cjs +114 -0
  2. package/generated/typeStrings/Action.d.ts +1 -1
  3. package/generated/typeStrings/Action.d.ts.map +1 -1
  4. package/generated/typeStrings/Action.js.map +1 -1
  5. package/generated/typeStrings/Alert.cjs +0 -4
  6. package/generated/typeStrings/Alert.d.ts +1 -1
  7. package/generated/typeStrings/Alert.d.ts.map +1 -1
  8. package/generated/typeStrings/Alert.js.map +1 -1
  9. package/generated/typeStrings/AlpacaAccount.cjs +6 -21
  10. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  11. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  12. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  13. package/generated/typeStrings/Asset.cjs +44 -0
  14. package/generated/typeStrings/Asset.d.ts +1 -1
  15. package/generated/typeStrings/Asset.d.ts.map +1 -1
  16. package/generated/typeStrings/Asset.js.map +1 -1
  17. package/generated/typeStrings/Contract.cjs +44 -43
  18. package/generated/typeStrings/Contract.d.ts +1 -1
  19. package/generated/typeStrings/Contract.d.ts.map +1 -1
  20. package/generated/typeStrings/Contract.js.map +1 -1
  21. package/generated/typeStrings/Customer.cjs +8 -0
  22. package/generated/typeStrings/Customer.d.ts +1 -1
  23. package/generated/typeStrings/Customer.d.ts.map +1 -1
  24. package/generated/typeStrings/Customer.js.map +1 -1
  25. package/generated/typeStrings/Deliverable.cjs +144 -0
  26. package/generated/typeStrings/Deliverable.d.ts +1 -1
  27. package/generated/typeStrings/Deliverable.d.ts.map +1 -1
  28. package/generated/typeStrings/Deliverable.js.map +1 -1
  29. package/generated/typeStrings/EconomicEvent.cjs +0 -3
  30. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  31. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  32. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  33. package/generated/typeStrings/MarketSentiment.cjs +0 -7
  34. package/generated/typeStrings/MarketSentiment.d.ts +1 -1
  35. package/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  36. package/generated/typeStrings/MarketSentiment.js.map +1 -1
  37. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +44 -0
  38. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  39. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  40. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  41. package/generated/typeStrings/Order.cjs +132 -0
  42. package/generated/typeStrings/Order.d.ts +1 -1
  43. package/generated/typeStrings/Order.d.ts.map +1 -1
  44. package/generated/typeStrings/Order.js.map +1 -1
  45. package/generated/typeStrings/Position.cjs +44 -0
  46. package/generated/typeStrings/Position.d.ts +1 -1
  47. package/generated/typeStrings/Position.d.ts.map +1 -1
  48. package/generated/typeStrings/Position.js.map +1 -1
  49. package/generated/typeStrings/Trade.cjs +132 -70
  50. package/generated/typeStrings/Trade.d.ts +1 -1
  51. package/generated/typeStrings/Trade.d.ts.map +1 -1
  52. package/generated/typeStrings/Trade.js.map +1 -1
  53. package/generated/typeStrings/User.cjs +0 -8
  54. package/generated/typeStrings/User.d.ts +1 -1
  55. package/generated/typeStrings/User.d.ts.map +1 -1
  56. package/generated/typeStrings/User.js.map +1 -1
  57. package/generated/typeStrings/index.d.ts +14 -14
  58. package/package.json +1 -1
  59. package/server/generated/typeStrings/Action.d.ts +1 -1
  60. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  61. package/server/generated/typeStrings/Action.js.map +1 -1
  62. package/server/generated/typeStrings/Action.mjs +114 -0
  63. package/server/generated/typeStrings/Alert.d.ts +1 -1
  64. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  65. package/server/generated/typeStrings/Alert.js.map +1 -1
  66. package/server/generated/typeStrings/Alert.mjs +0 -4
  67. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  68. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  69. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  70. package/server/generated/typeStrings/AlpacaAccount.mjs +6 -21
  71. package/server/generated/typeStrings/Asset.d.ts +1 -1
  72. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  73. package/server/generated/typeStrings/Asset.js.map +1 -1
  74. package/server/generated/typeStrings/Asset.mjs +44 -0
  75. package/server/generated/typeStrings/Contract.d.ts +1 -1
  76. package/server/generated/typeStrings/Contract.d.ts.map +1 -1
  77. package/server/generated/typeStrings/Contract.js.map +1 -1
  78. package/server/generated/typeStrings/Contract.mjs +44 -43
  79. package/server/generated/typeStrings/Customer.d.ts +1 -1
  80. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  81. package/server/generated/typeStrings/Customer.js.map +1 -1
  82. package/server/generated/typeStrings/Customer.mjs +8 -0
  83. package/server/generated/typeStrings/Deliverable.d.ts +1 -1
  84. package/server/generated/typeStrings/Deliverable.d.ts.map +1 -1
  85. package/server/generated/typeStrings/Deliverable.js.map +1 -1
  86. package/server/generated/typeStrings/Deliverable.mjs +144 -0
  87. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  88. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  89. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  90. package/server/generated/typeStrings/EconomicEvent.mjs +0 -3
  91. package/server/generated/typeStrings/MarketSentiment.d.ts +1 -1
  92. package/server/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  93. package/server/generated/typeStrings/MarketSentiment.js.map +1 -1
  94. package/server/generated/typeStrings/MarketSentiment.mjs +0 -7
  95. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  96. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  97. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  98. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +44 -0
  99. package/server/generated/typeStrings/Order.d.ts +1 -1
  100. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  101. package/server/generated/typeStrings/Order.js.map +1 -1
  102. package/server/generated/typeStrings/Order.mjs +132 -0
  103. package/server/generated/typeStrings/Position.d.ts +1 -1
  104. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  105. package/server/generated/typeStrings/Position.js.map +1 -1
  106. package/server/generated/typeStrings/Position.mjs +44 -0
  107. package/server/generated/typeStrings/Trade.d.ts +1 -1
  108. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  109. package/server/generated/typeStrings/Trade.js.map +1 -1
  110. package/server/generated/typeStrings/Trade.mjs +132 -70
  111. package/server/generated/typeStrings/User.d.ts +1 -1
  112. package/server/generated/typeStrings/User.d.ts.map +1 -1
  113. package/server/generated/typeStrings/User.js.map +1 -1
  114. package/server/generated/typeStrings/User.mjs +0 -8
  115. package/server/generated/typeStrings/index.d.ts +14 -14
@@ -47,5 +47,119 @@ export type Action = {
47
47
  dependedOnBy: string[];
48
48
  };
49
49
 
50
+ enum ActionType {
51
+ BUY
52
+
53
+ BUY_OPTION
54
+
55
+ EXERCISE_OPTION
56
+
57
+ SELL
58
+
59
+ CANCEL
60
+
61
+ ADJUST
62
+
63
+ HEDGE
64
+ }
65
+
66
+ enum ActionStatus {
67
+ STAGED
68
+
69
+ EXECUTED
70
+
71
+ COMPLETED
72
+
73
+ CANCELED
74
+ }
75
+
76
+ enum OrderSide {
77
+ BUY
78
+
79
+ SELL
80
+ }
81
+
82
+ enum OrderType {
83
+ MARKET
84
+
85
+ LIMIT
86
+
87
+ STOP
88
+
89
+ STOP_LIMIT
90
+
91
+ TRAILING_STOP
92
+ }
93
+
94
+ enum OrderClass {
95
+ SIMPLE
96
+
97
+ BRACKET
98
+
99
+ OCO
100
+
101
+ OSO
102
+
103
+ OTO
104
+ }
105
+
106
+ enum TimeInForce {
107
+ DAY
108
+
109
+ GTC
110
+
111
+ OPG
112
+
113
+ CLS
114
+
115
+ IOC
116
+
117
+ FOK
118
+ }
119
+
120
+ enum OrderStatus {
121
+ STAGED
122
+
123
+ NEW
124
+
125
+ PARTIALLY_FILLED
126
+
127
+ FILLED
128
+
129
+ DONE_FOR_DAY
130
+
131
+ CANCELED
132
+
133
+ EXPIRED
134
+
135
+ HELD
136
+
137
+ REPLACED
138
+
139
+ PENDING_CANCEL
140
+
141
+ PENDING_REPLACE
142
+
143
+ ACCEPTED
144
+
145
+ PENDING_NEW
146
+
147
+ ACCEPTED_FOR_BIDDING
148
+
149
+ STOPPED
150
+
151
+ REJECTED
152
+
153
+ SUSPENDED
154
+
155
+ CALCULATED
156
+ }
157
+
158
+ enum OptionType {
159
+ CALL
160
+
161
+ PUT
162
+ }
163
+
50
164
  `;
51
165
  //# sourceMappingURL=Action.js.map
@@ -1,2 +1,2 @@
1
- export declare const ActionTypeString = "\n// Your response should adhere to the following type definition for the \"Action\" 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 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 // 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 // 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 // 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 // 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 // A list of action sequence numbers, for any sibling actions that are part of the same trade, that this action depends on.\n dependsOn: string[];\n // A list of action sequence numbers, for any sibling actions that depend on this action.\n dependedOnBy: string[];\n};\n\n";
1
+ export declare const ActionTypeString = "\n// Your response should adhere to the following type definition for the \"Action\" 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 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 // 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 // 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 // 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 // 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 // A list of action sequence numbers, for any sibling actions that are part of the same trade, that this action depends on.\n dependsOn: string[];\n // A list of action sequence numbers, for any sibling actions that depend on this action.\n dependedOnBy: string[];\n};\n\nenum ActionType {\n BUY\n\n BUY_OPTION\n\n EXERCISE_OPTION\n\n SELL\n\n CANCEL\n\n ADJUST\n\n HEDGE\n}\n\nenum ActionStatus {\n STAGED\n\n EXECUTED\n\n COMPLETED\n\n CANCELED\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 OptionType {\n CALL\n\n 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,25EA8C5B,CAAC"}
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,2sGAgK5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C/B,CAAC"}
1
+ {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgK/B,CAAC"}
@@ -15,16 +15,12 @@ export type Alert = {
15
15
  };
16
16
 
17
17
  enum AlertType {
18
- /// Indicates a successful operation or event.
19
18
  SUCCESS
20
19
 
21
- /// Represents a warning that requires attention.
22
20
  WARNING
23
21
 
24
- /// Signifies an error that needs to be addressed.
25
22
  ERROR
26
23
 
27
- /// Provides informational messages to the user.
28
24
  INFO
29
25
  }
30
26
 
@@ -1,2 +1,2 @@
1
- export declare const AlertTypeString = "\n// Your response should adhere to the following type definition for the \"Alert\" 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 Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\n\nenum AlertType {\n /// Indicates a successful operation or event.\n SUCCESS\n\n /// Represents a warning that requires attention.\n WARNING\n\n /// Signifies an error that needs to be addressed.\n ERROR\n\n /// Provides informational messages to the user.\n INFO\n}\n\n";
1
+ export declare const AlertTypeString = "\n// Your response should adhere to the following type definition for the \"Alert\" 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 Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\n\nenum AlertType {\n SUCCESS\n\n WARNING\n\n ERROR\n\n INFO\n}\n\n";
2
2
  //# sourceMappingURL=Alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yuBA2B3B,CAAC"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,whBAuB3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B9B,CAAC"}
1
+ {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAuB9B,CAAC"}
@@ -26,68 +26,53 @@ export type AlpacaAccount = {
26
26
  }[];
27
27
  };
28
28
 
29
+ enum AlpacaAccountType {
30
+ PAPER
31
+
32
+ LIVE
33
+ }
34
+
29
35
  enum AssetType {
30
- /// Represents a share of ownership in a corporation.
31
36
  STOCK
32
37
 
33
- /// Exchange-Traded Fund, a type of investment fund traded on stock exchanges.
34
38
  ETF
35
39
 
36
- /// A mutual fund that pools money from many investors to purchase securities.
37
40
  MUTUAL_FUND
38
41
 
39
- /// Digital or virtual currencies using cryptography for security.
40
42
  CRYPTOCURRENCY
41
43
 
42
- /// A market index representing a collection of stocks.
43
44
  INDEX
44
45
 
45
- /// Physical goods such as gold, oil, or agricultural products.
46
46
  COMMODITY
47
47
 
48
- /// Traditional currencies used in international trade.
49
48
  CURRENCY
50
49
 
51
- /// Contracts that give the holder the right to buy or sell an asset at a set price.
52
50
  OPTION
53
51
 
54
- /// Financial contracts obligating the buyer to purchase an asset at a future date.
55
52
  FUTURE
56
53
 
57
- /// Debt securities issued by entities to raise capital.
58
54
  BOND
59
55
 
60
- /// Securities that give the holder the right to purchase stock at a specific price.
61
56
  WARRANT
62
57
 
63
- /// American Depositary Receipts representing shares in foreign companies.
64
58
  ADR
65
59
 
66
- /// Global Depositary Receipts representing shares in foreign companies.
67
60
  GDR
68
61
 
69
- /// Units of ownership in investment funds or trusts.
70
62
  UNIT
71
63
 
72
- /// Rights granted to shareholders, such as voting or dividend rights.
73
64
  RIGHT
74
65
 
75
- /// Real Estate Investment Trusts, companies that own or finance income-producing real estate.
76
66
  REIT
77
67
 
78
- /// Investment products structured to meet specific needs.
79
68
  STRUCTURED_PRODUCT
80
69
 
81
- /// Financial contracts to exchange cash flows between parties.
82
70
  SWAP
83
71
 
84
- /// Immediate exchange of financial instruments.
85
72
  SPOT
86
73
 
87
- /// Agreements to buy or sell an asset at a future date.
88
74
  FORWARD
89
75
 
90
- /// Any other type of asset not classified above.
91
76
  OTHER
92
77
  }
93
78
 
@@ -1,2 +1,2 @@
1
- export declare const AlpacaAccountTypeString = "\n// Your response should adhere to the following type definition for the \"AlpacaAccount\" 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 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 // List of positions held in this Alpaca account.\n positions: {\n // Total quantity of the asset held.\n qty: number;\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 }[];\n};\n\nenum AssetType {\n /// Represents a share of ownership in a corporation.\n STOCK\n\n /// Exchange-Traded Fund, a type of investment fund traded on stock exchanges.\n ETF\n\n /// A mutual fund that pools money from many investors to purchase securities.\n MUTUAL_FUND\n\n /// Digital or virtual currencies using cryptography for security.\n CRYPTOCURRENCY\n\n /// A market index representing a collection of stocks.\n INDEX\n\n /// Physical goods such as gold, oil, or agricultural products.\n COMMODITY\n\n /// Traditional currencies used in international trade.\n CURRENCY\n\n /// Contracts that give the holder the right to buy or sell an asset at a set price.\n OPTION\n\n /// Financial contracts obligating the buyer to purchase an asset at a future date.\n FUTURE\n\n /// Debt securities issued by entities to raise capital.\n BOND\n\n /// Securities that give the holder the right to purchase stock at a specific price.\n WARRANT\n\n /// American Depositary Receipts representing shares in foreign companies.\n ADR\n\n /// Global Depositary Receipts representing shares in foreign companies.\n GDR\n\n /// Units of ownership in investment funds or trusts.\n UNIT\n\n /// Rights granted to shareholders, such as voting or dividend rights.\n RIGHT\n\n /// Real Estate Investment Trusts, companies that own or finance income-producing real estate.\n REIT\n\n /// Investment products structured to meet specific needs.\n STRUCTURED_PRODUCT\n\n /// Financial contracts to exchange cash flows between parties.\n SWAP\n\n /// Immediate exchange of financial instruments.\n SPOT\n\n /// Agreements to buy or sell an asset at a future date.\n FORWARD\n\n /// Any other type of asset not classified above.\n OTHER\n}\n\n";
1
+ export declare const AlpacaAccountTypeString = "\n// Your response should adhere to the following type definition for the \"AlpacaAccount\" 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 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 // List of positions held in this Alpaca account.\n positions: {\n // Total quantity of the asset held.\n qty: number;\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 }[];\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\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=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,siFA0FnC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,opCA2EnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FtC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2EtC,CAAC"}
@@ -14,5 +14,49 @@ export type Asset = {
14
14
  type: AssetType;
15
15
  };
16
16
 
17
+ enum AssetType {
18
+ STOCK
19
+
20
+ ETF
21
+
22
+ MUTUAL_FUND
23
+
24
+ CRYPTOCURRENCY
25
+
26
+ INDEX
27
+
28
+ COMMODITY
29
+
30
+ CURRENCY
31
+
32
+ OPTION
33
+
34
+ FUTURE
35
+
36
+ BOND
37
+
38
+ WARRANT
39
+
40
+ ADR
41
+
42
+ GDR
43
+
44
+ UNIT
45
+
46
+ RIGHT
47
+
48
+ REIT
49
+
50
+ STRUCTURED_PRODUCT
51
+
52
+ SWAP
53
+
54
+ SPOT
55
+
56
+ FORWARD
57
+
58
+ OTHER
59
+ }
60
+
17
61
  `;
18
62
  //# sourceMappingURL=Asset.js.map
@@ -1,2 +1,2 @@
1
- export declare const AssetTypeString = "\n// Your response should adhere to the following type definition for the \"Asset\" 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 Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\n\n";
1
+ export declare const AssetTypeString = "\n// Your response should adhere to the following type definition for the \"Asset\" 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 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\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=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,6aAa3B,CAAC"}
1
+ {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,usBAyD3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;CAa9B,CAAC"}
1
+ {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyD9B,CAAC"}
@@ -125,145 +125,146 @@ export type Contract = {
125
125
  };
126
126
 
127
127
  enum OptionType {
128
- /// A contract that gives the holder the right to buy the underlying asset.
129
128
  CALL
130
129
 
131
- /// A contract that gives the holder the right to sell the underlying asset.
132
130
  PUT
133
131
  }
134
132
 
135
133
  enum OptionStyle {
136
- /// An option contract that can be exercised at any time before expiration.
137
134
  AMERICAN
138
135
 
139
- /// An option contract that can only be exercised at expiration.
140
136
  EUROPEAN
141
137
  }
142
138
 
143
139
  enum DeliverableType {
144
- /// The option contract is settled in cash.
145
140
  CASH
146
141
 
147
- /// The option contract is settled with the underlying asset.
148
142
  EQUITY
149
143
  }
150
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
+
151
189
  enum OrderSide {
152
- /// Represents the buying side of a trade action.
153
190
  BUY
154
191
 
155
- /// Represents the selling side of a trade action.
156
192
  SELL
157
193
  }
158
194
 
159
195
  enum OrderType {
160
- /// Executes immediately at the best available current market price.
161
196
  MARKET
162
197
 
163
- /// Executes only at the specified limit price or better.
164
198
  LIMIT
165
199
 
166
- /// Becomes a market order once the stop price is triggered.
167
200
  STOP
168
201
 
169
- /// Becomes a limit order once the stop price is triggered.
170
202
  STOP_LIMIT
171
203
 
172
- /// Adjusts the stop price based on a specified trail amount or percentage.
173
204
  TRAILING_STOP
174
205
  }
175
206
 
176
207
  enum OrderClass {
177
- /// A single standalone order without additional conditions.
178
208
  SIMPLE
179
209
 
180
- /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.
181
210
  BRACKET
182
211
 
183
- /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.
184
212
  OCO
185
213
 
186
- /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.
187
214
  OSO
188
215
 
189
- /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.
190
216
  OTO
191
217
  }
192
218
 
193
- // Time in force enum (day, gtc, opg, cls, etc.).
194
219
  enum TimeInForce {
195
- /// The order is valid for the day and expires at market close.
196
220
  DAY
197
221
 
198
- /// The order is valid until canceled by the user.
199
222
  GTC
200
223
 
201
- /// The order is valid for the opening of the market.
202
224
  OPG
203
225
 
204
- /// The order is valid until the close of the market.
205
226
  CLS
206
227
 
207
- /// The order must be executed immediately or canceled.
208
228
  IOC
209
229
 
210
- /// The order must be executed immediately or canceled.
211
230
  FOK
212
231
  }
213
232
 
214
233
  enum OrderStatus {
215
- /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.
216
234
  STAGED
217
235
 
218
- /// The order has been received by Alpaca, and routed to exchanges for execution. This is the usual initial state of an order after being received.
219
236
  NEW
220
237
 
221
- /// The order has been partially filled.
222
238
  PARTIALLY_FILLED
223
239
 
224
- /// The order has been filled, and no further updates will occur for the order.
225
240
  FILLED
226
241
 
227
- /// The order is done executing for the day, and will not receive further updates until the next trading day.
228
242
  DONE_FOR_DAY
229
243
 
230
- /// The order has been canceled, and no further updates will occur for the order. This can be either due to a cancel request by the user, or the order has been canceled by the exchanges due to its time-in-force.
231
244
  CANCELED
232
245
 
233
- /// The order has expired, and no further updates will occur for the order.
234
246
  EXPIRED
235
247
 
236
- /// The order is waiting to be triggered, usually for stop or stop-limit orders.
237
248
  HELD
238
249
 
239
- /// The order was replaced by another order, or was updated due to a market event such as corporate action.
240
250
  REPLACED
241
251
 
242
- /// The order is waiting to be canceled.
243
252
  PENDING_CANCEL
244
253
 
245
- /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.
246
254
  PENDING_REPLACE
247
255
 
248
- /// The order has been received by Alpaca, but hasn’t yet been routed to the execution venue. This could be seen often outside of trading session hours.
249
256
  ACCEPTED
250
257
 
251
- /// The order has been received by Alpaca, and routed to the exchanges, but has not yet been accepted for execution. This state only occurs on rare occasions.
252
258
  PENDING_NEW
253
259
 
254
- /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.
255
260
  ACCEPTED_FOR_BIDDING
256
261
 
257
- /// The order has been stopped, and a trade is guaranteed for the order, usually at a stated price or better, but has not yet occurred. This state only occurs on rare occasions.
258
262
  STOPPED
259
263
 
260
- /// The order has been rejected, and no further updates will occur for the order. This state occurs on rare occasions and may occur based on various conditions decided by the exchanges.
261
264
  REJECTED
262
265
 
263
- /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.
264
266
  SUSPENDED
265
267
 
266
- /// The order has been completed for the day (either filled or done for day), but remaining settlement calculations are still pending. This state only occurs on rare occasions.
267
268
  CALCULATED
268
269
  }
269
270
 
@@ -1,2 +1,2 @@
1
- export declare const ContractTypeString = "\n// Your response should adhere to the following type definition for the \"Contract\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Contract = {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // Deliverables associated with the contract\n deliverables: {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n }[];\n // PPIND flag\n ppind?: boolean;\n // Relation to the Asset model\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Optional relation to an order that created this contract\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\n notional?: number;\n // Side of the order ('BUY' or 'SELL').\n side: OrderSide;\n // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').\n type: OrderType;\n // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n};\n\nenum OptionType {\n /// A contract that gives the holder the right to buy the underlying asset.\n CALL\n\n /// A contract that gives the holder the right to sell the underlying asset.\n PUT\n}\n\nenum OptionStyle {\n /// An option contract that can be exercised at any time before expiration.\n AMERICAN\n\n /// An option contract that can only be exercised at expiration.\n EUROPEAN\n}\n\nenum DeliverableType {\n /// The option contract is settled in cash.\n CASH\n\n /// The option contract is settled with the underlying asset.\n EQUITY\n}\n\nenum OrderSide {\n /// Represents the buying side of a trade action.\n BUY\n\n /// Represents the selling side of a trade action.\n SELL\n}\n\nenum OrderType {\n /// Executes immediately at the best available current market price.\n MARKET\n\n /// Executes only at the specified limit price or better.\n LIMIT\n\n /// Becomes a market order once the stop price is triggered.\n STOP\n\n /// Becomes a limit order once the stop price is triggered.\n STOP_LIMIT\n\n /// Adjusts the stop price based on a specified trail amount or percentage.\n TRAILING_STOP\n}\n\nenum OrderClass {\n /// A single standalone order without additional conditions.\n SIMPLE\n\n /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.\n BRACKET\n\n /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.\n OCO\n\n /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.\n OSO\n\n /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.\n OTO\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nenum TimeInForce {\n /// The order is valid for the day and expires at market close.\n DAY\n\n /// The order is valid until canceled by the user.\n GTC\n\n /// The order is valid for the opening of the market.\n OPG\n\n /// The order is valid until the close of the market.\n CLS\n\n /// The order must be executed immediately or canceled.\n IOC\n\n /// The order must be executed immediately or canceled.\n FOK\n}\n\nenum OrderStatus {\n /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.\n STAGED\n\n /// The order has been received by Alpaca, and routed to exchanges for execution. This is the usual initial state of an order after being received.\n NEW\n\n /// The order has been partially filled.\n PARTIALLY_FILLED\n\n /// The order has been filled, and no further updates will occur for the order.\n FILLED\n\n /// The order is done executing for the day, and will not receive further updates until the next trading day.\n DONE_FOR_DAY\n\n /// The order has been canceled, and no further updates will occur for the order. This can be either due to a cancel request by the user, or the order has been canceled by the exchanges due to its time-in-force.\n CANCELED\n\n /// The order has expired, and no further updates will occur for the order.\n EXPIRED\n\n /// The order is waiting to be triggered, usually for stop or stop-limit orders.\n HELD\n\n /// The order was replaced by another order, or was updated due to a market event such as corporate action.\n REPLACED\n\n /// The order is waiting to be canceled.\n PENDING_CANCEL\n\n /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.\n PENDING_REPLACE\n\n /// The order has been received by Alpaca, but hasn\u2019t yet been routed to the execution venue. This could be seen often outside of trading session hours.\n ACCEPTED\n\n /// The order has been received by Alpaca, and routed to the exchanges, but has not yet been accepted for execution. This state only occurs on rare occasions.\n PENDING_NEW\n\n /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.\n ACCEPTED_FOR_BIDDING\n\n /// The order has been stopped, and a trade is guaranteed for the order, usually at a stated price or better, but has not yet occurred. This state only occurs on rare occasions.\n STOPPED\n\n /// The order has been rejected, and no further updates will occur for the order. This state occurs on rare occasions and may occur based on various conditions decided by the exchanges.\n REJECTED\n\n /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.\n SUSPENDED\n\n /// The order has been completed for the day (either filled or done for day), but remaining settlement calculations are still pending. This state only occurs on rare occasions.\n CALCULATED\n}\n\n";
1
+ export declare const ContractTypeString = "\n// Your response should adhere to the following type definition for the \"Contract\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Contract = {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // Deliverables associated with the contract\n deliverables: {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n }[];\n // PPIND flag\n ppind?: boolean;\n // Relation to the Asset model\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Optional relation to an order that created this contract\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\n notional?: number;\n // Side of the order ('BUY' or 'SELL').\n side: OrderSide;\n // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').\n type: OrderType;\n // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n};\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum OptionStyle {\n AMERICAN\n\n EUROPEAN\n}\n\nenum DeliverableType {\n CASH\n\n EQUITY\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
2
2
  //# sourceMappingURL=Contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,2rVA0Q9B,CAAC"}
1
+ {"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,yiOA2Q9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Contract.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Contract.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0QjC,CAAC"}
1
+ {"version":3,"file":"Contract.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Contract.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2QjC,CAAC"}
@@ -21,5 +21,13 @@ export type Customer = {
21
21
  }[];
22
22
  };
23
23
 
24
+ enum SubscriptionPlan {
25
+ FREE
26
+
27
+ PRO
28
+
29
+ BUSINESS
30
+ }
31
+
24
32
  `;
25
33
  //# sourceMappingURL=Customer.js.map
@@ -1,2 +1,2 @@
1
- export declare const CustomerTypeString = "\n// Your response should adhere to the following type definition for the \"Customer\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n }[];\n};\n\n";
1
+ export declare const CustomerTypeString = "\n// Your response should adhere to the following type definition for the \"Customer\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n }[];\n};\n\nenum SubscriptionPlan {\n FREE\n\n PRO\n\n BUSINESS\n}\n\n";
2
2
  //# sourceMappingURL=Customer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,iqBAoB9B,CAAC"}
1
+ {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,8tBA4B9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBjC,CAAC"}
1
+ {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjC,CAAC"}