adaptic-backend 1.0.195 → 1.0.197

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