adaptic-backend 1.0.164 → 1.0.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Account.cjs +14 -0
- package/Action.cjs +52 -0
- package/Alert.cjs +11 -0
- package/AlpacaAccount.cjs +39 -75
- package/Asset.cjs +36 -0
- package/Authenticator.cjs +14 -0
- package/Customer.cjs +14 -0
- package/NewsArticle.cjs +13 -0
- package/NewsArticleAssetSentiment.cjs +11 -0
- package/Order.cjs +22 -0
- package/Position.cjs +12 -109
- package/Session.cjs +13 -0
- package/StopLoss.cjs +26 -0
- package/TakeProfit.cjs +26 -0
- package/Trade.cjs +22 -0
- package/User.cjs +15 -12
- package/client.cjs +2 -1
- package/generated/typeStrings/Action.cjs +2 -2
- package/generated/typeStrings/Action.d.ts +1 -1
- package/generated/typeStrings/Action.d.ts.map +1 -1
- package/generated/typeStrings/AlpacaAccount.cjs +2 -2
- package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/generated/typeStrings/Asset.cjs +2 -2
- package/generated/typeStrings/Asset.d.ts +1 -1
- package/generated/typeStrings/Asset.d.ts.map +1 -1
- package/generated/typeStrings/Customer.cjs +2 -2
- package/generated/typeStrings/Customer.d.ts +1 -1
- package/generated/typeStrings/Customer.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.cjs +2 -2
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/generated/typeStrings/Order.cjs +2 -2
- package/generated/typeStrings/Order.d.ts +1 -1
- package/generated/typeStrings/Order.d.ts.map +1 -1
- package/generated/typeStrings/Position.cjs +2 -2
- package/generated/typeStrings/Position.d.ts +1 -1
- package/generated/typeStrings/Position.d.ts.map +1 -1
- package/generated/typeStrings/Session.cjs +2 -2
- package/generated/typeStrings/Session.d.ts +1 -1
- package/generated/typeStrings/Session.d.ts.map +1 -1
- package/generated/typeStrings/StopLoss.cjs +2 -2
- package/generated/typeStrings/StopLoss.d.ts +1 -1
- package/generated/typeStrings/StopLoss.d.ts.map +1 -1
- package/generated/typeStrings/TakeProfit.cjs +2 -2
- package/generated/typeStrings/TakeProfit.d.ts +1 -1
- package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
- package/generated/typeStrings/Trade.cjs +4 -4
- package/generated/typeStrings/Trade.d.ts +1 -1
- package/generated/typeStrings/Trade.d.ts.map +1 -1
- package/generated/typeStrings/User.cjs +2 -2
- package/generated/typeStrings/User.d.ts +1 -1
- package/generated/typeStrings/User.d.ts.map +1 -1
- package/generated/typeStrings/index.d.ts +12 -12
- package/generated/typegraphql-prisma/enhance.cjs +25 -25
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.cjs +1 -0
- package/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.d.ts +2 -1
- package/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.js.map +1 -1
- package/generated/typegraphql-prisma/models/Asset.cjs +2 -2
- package/generated/typegraphql-prisma/models/Asset.d.ts +2 -2
- package/generated/typegraphql-prisma/models/Asset.js.map +1 -1
- package/generated/typegraphql-prisma/models/Position.cjs +7 -0
- package/generated/typegraphql-prisma/models/Position.d.ts +5 -1
- package/generated/typegraphql-prisma/models/Position.d.ts.map +1 -1
- package/generated/typegraphql-prisma/models/Position.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.js.map +1 -1
- package/package.json +1 -1
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +14 -0
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +52 -0
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +11 -0
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +39 -75
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +36 -0
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +14 -0
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +14 -0
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +13 -0
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +11 -0
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +22 -0
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +12 -109
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +13 -0
- package/server/StopLoss.d.ts.map +1 -1
- package/server/StopLoss.js.map +1 -1
- package/server/StopLoss.mjs +26 -0
- package/server/TakeProfit.d.ts.map +1 -1
- package/server/TakeProfit.js.map +1 -1
- package/server/TakeProfit.mjs +26 -0
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +22 -0
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +15 -12
- package/server/client.d.ts.map +1 -1
- package/server/client.js.map +1 -1
- package/server/client.mjs +2 -1
- package/server/generated/selectionSets/Account.d.ts +1 -1
- package/server/generated/selectionSets/Account.d.ts.map +1 -1
- package/server/generated/selectionSets/Account.js.map +1 -1
- package/server/generated/selectionSets/Account.mjs +1 -0
- package/server/generated/selectionSets/AlpacaAccount.d.ts +1 -1
- package/server/generated/selectionSets/AlpacaAccount.d.ts.map +1 -1
- package/server/generated/selectionSets/AlpacaAccount.js.map +1 -1
- package/server/generated/selectionSets/AlpacaAccount.mjs +4 -75
- package/server/generated/selectionSets/Asset.d.ts +1 -1
- package/server/generated/selectionSets/Asset.d.ts.map +1 -1
- package/server/generated/selectionSets/Asset.js.map +1 -1
- package/server/generated/selectionSets/Asset.mjs +1 -0
- package/server/generated/selectionSets/Authenticator.d.ts +1 -1
- package/server/generated/selectionSets/Authenticator.d.ts.map +1 -1
- package/server/generated/selectionSets/Authenticator.js.map +1 -1
- package/server/generated/selectionSets/Authenticator.mjs +1 -0
- package/server/generated/selectionSets/Customer.d.ts +1 -1
- package/server/generated/selectionSets/Customer.d.ts.map +1 -1
- package/server/generated/selectionSets/Customer.js.map +1 -1
- package/server/generated/selectionSets/Customer.mjs +1 -0
- package/server/generated/selectionSets/Position.d.ts +1 -1
- package/server/generated/selectionSets/Position.d.ts.map +1 -1
- package/server/generated/selectionSets/Position.js.map +1 -1
- package/server/generated/selectionSets/Position.mjs +4 -109
- package/server/generated/selectionSets/User.d.ts +1 -1
- package/server/generated/selectionSets/User.d.ts.map +1 -1
- package/server/generated/selectionSets/User.js.map +1 -1
- package/server/generated/selectionSets/User.mjs +4 -12
- package/server/generated/typeStrings/Action.d.ts +1 -1
- package/server/generated/typeStrings/Action.d.ts.map +1 -1
- package/server/generated/typeStrings/Action.mjs +2 -2
- package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.mjs +2 -2
- package/server/generated/typeStrings/Asset.d.ts +1 -1
- package/server/generated/typeStrings/Asset.d.ts.map +1 -1
- package/server/generated/typeStrings/Asset.mjs +2 -2
- package/server/generated/typeStrings/Customer.d.ts +1 -1
- package/server/generated/typeStrings/Customer.d.ts.map +1 -1
- package/server/generated/typeStrings/Customer.mjs +2 -2
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +2 -2
- package/server/generated/typeStrings/Order.d.ts +1 -1
- package/server/generated/typeStrings/Order.d.ts.map +1 -1
- package/server/generated/typeStrings/Order.mjs +2 -2
- package/server/generated/typeStrings/Position.d.ts +1 -1
- package/server/generated/typeStrings/Position.d.ts.map +1 -1
- package/server/generated/typeStrings/Position.mjs +2 -2
- package/server/generated/typeStrings/Session.d.ts +1 -1
- package/server/generated/typeStrings/Session.d.ts.map +1 -1
- package/server/generated/typeStrings/Session.mjs +2 -2
- package/server/generated/typeStrings/StopLoss.d.ts +1 -1
- package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
- package/server/generated/typeStrings/StopLoss.mjs +2 -2
- package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
- package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
- package/server/generated/typeStrings/TakeProfit.mjs +2 -2
- package/server/generated/typeStrings/Trade.d.ts +1 -1
- package/server/generated/typeStrings/Trade.d.ts.map +1 -1
- package/server/generated/typeStrings/Trade.mjs +4 -4
- package/server/generated/typeStrings/User.d.ts +1 -1
- package/server/generated/typeStrings/User.d.ts.map +1 -1
- package/server/generated/typeStrings/User.mjs +2 -2
- package/server/generated/typeStrings/index.d.ts +12 -12
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +25 -25
- package/server/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.d.ts +2 -1
- package/server/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.js.map +1 -1
- package/server/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.mjs +1 -0
- package/server/generated/typegraphql-prisma/models/Asset.d.ts +2 -2
- package/server/generated/typegraphql-prisma/models/Asset.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/Asset.mjs +4 -4
- package/server/generated/typegraphql-prisma/models/Position.d.ts +5 -1
- package/server/generated/typegraphql-prisma/models/Position.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/models/Position.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/Position.mjs +12 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.d.ts +1 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.mjs +7 -0
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.mjs +1 -1
@@ -1,21 +1,21 @@
|
|
1
1
|
export declare const typeStrings: {
|
2
|
-
readonly session: "\nYour response should adhere to the following type definition for the \"Session\" 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 Session = {\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n 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 };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\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 // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
3
|
-
readonly user: "\nYour response should adhere to the following type definition for the \"User\" 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 User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n 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 };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\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 // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
4
|
-
readonly alpacaAccount: "\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 // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
5
|
-
readonly position: "\nYour response should adhere to the following type definition for the \"Position\" 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 Position = {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
2
|
+
readonly session: "\nYour response should adhere to the following type definition for the \"Session\" 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 Session = {\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n 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 };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\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 // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n };\n};\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\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\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
|
3
|
+
readonly user: "\nYour response should adhere to the following type definition for the \"User\" 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 User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n 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 };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\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 // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n};\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\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\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
|
4
|
+
readonly alpacaAccount: "\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 // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n};\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\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";
|
5
|
+
readonly position: "\nYour response should adhere to the following type definition for the \"Position\" 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 Position = {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n};\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";
|
6
6
|
readonly authenticator: "\nYour response should adhere to the following type definition for the \"Authenticator\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Authenticator = {\n\n};\n";
|
7
7
|
readonly account: "\nYour response should adhere to the following type definition for the \"Account\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // State of the session associated with the account.\n session_state?: string;\n};\n";
|
8
8
|
readonly verificationToken: "\nYour response should adhere to the following type definition for the \"VerificationToken\" 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 VerificationToken = {\n\n};\n";
|
9
|
-
readonly customer: "\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 // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\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 // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
10
|
-
readonly asset: "\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
|
11
|
-
readonly trade: "\nYour response should adhere to the following type definition for the \"Trade\" 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 Trade = {\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Option Type (CALL or PUT) if the asset is an option.\n optionType?: OptionType;\n // Signal that triggered the trade.\n signal: TradeSignal;\n // Strategy used to execute the trade.\n strategy: TradeStrategy;\n // summary of the trade decision (this should be a short description of the trade).\n summary: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // List of actions associated with this trade.\n actions: {\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.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\n };\n }[];\n};\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum TradeSignal {\n GOLDEN_CROSS = \"GOLDEN_CROSS\",\n MOVING_AVERAGE_CROSSOVER = \"MOVING_AVERAGE_CROSSOVER\",\n RSI_OVERBOUGHT = \"RSI_OVERBOUGHT\",\n RSI_OVERSOLD = \"RSI_OVERSOLD\",\n MACD_CROSSOVER = \"MACD_CROSSOVER\",\n BOLLINGER_BANDS_BREAKOUT = \"BOLLINGER_BANDS_BREAKOUT\",\n TREND_REVERSAL = \"TREND_REVERSAL\",\n VOLATILITY_SPIKE = \"VOLATILITY_SPIKE\",\n PRICE_ACTION = \"PRICE_ACTION\",\n IMPLIED_VOLATILITY_SURGE = \"IMPLIED_VOLATILITY_SURGE\",\n BREAKOUT_ABOVE_RESISTANCE = \"BREAKOUT_ABOVE_RESISTANCE\",\n BREAKDOWN_BELOW_SUPPORT = \"BREAKDOWN_BELOW_SUPPORT\",\n SUPPORT_LEVEL_HOLD = \"SUPPORT_LEVEL_HOLD\",\n RESISTANCE_LEVEL_HOLD = \"RESISTANCE_LEVEL_HOLD\",\n FIBONACCI_RETRACEMENT = \"FIBONACCI_RETRACEMENT\",\n ELLIOTT_WAVE = \"ELLIOTT_WAVE\",\n PARABOLIC_SAR = \"PARABOLIC_SAR\",\n ADX_TREND_STRENGTH = \"ADX_TREND_STRENGTH\",\n CCI_OVERBOUGHT = \"CCI_OVERBOUGHT\",\n CCI_OVERSOLD = \"CCI_OVERSOLD\",\n STOCHASTIC_OVERSOLD = \"STOCHASTIC_OVERSOLD\",\n STOCHASTIC_OVERBOUGHT = \"STOCHASTIC_OVERBOUGHT\",\n DIVERGENCE_SIGNAL = \"DIVERGENCE_SIGNAL\",\n GANN_FAN = \"GANN_FAN\",\n DONCHIAN_CHANNEL_BREAKOUT = \"DONCHIAN_CHANNEL_BREAKOUT\",\n PIVOT_POINT = \"PIVOT_POINT\",\n KELTNER_CHANNEL_BREAK = \"KELTNER_CHANNEL_BREAK\",\n HEIKIN_ASHI_CROSSOVER = \"HEIKIN_ASHI_CROSSOVER\",\n VOLUME_SURGE = \"VOLUME_SURGE\",\n ORDER_BOOK_IMBALANCE = \"ORDER_BOOK_IMBALANCE\",\n TIME_SERIES_ANOMALY = \"TIME_SERIES_ANOMALY\",\n MEAN_REVERSION_LEVEL = \"MEAN_REVERSION_LEVEL\",\n PAIR_TRADING_SIGNAL = \"PAIR_TRADING_SIGNAL\",\n SENTIMENT_SCORE_THRESHOLD = \"SENTIMENT_SCORE_THRESHOLD\",\n NEWS_SENTIMENT_CHANGE = \"NEWS_SENTIMENT_CHANGE\",\n ORDER_FLOW_IMPACT = \"ORDER_FLOW_IMPACT\",\n LIQUIDITY_DRIVEN_MOVE = \"LIQUIDITY_DRIVEN_MOVE\",\n MACHINE_LEARNING_PREDICTION = \"MACHINE_LEARNING_PREDICTION\",\n SENTIMENT_ANALYSIS_TRIGGER = \"SENTIMENT_ANALYSIS_TRIGGER\",\n NO_SIGNAL = \"NO_SIGNAL\"\n}\n\nexport enum TradeStrategy {\n TECHNICAL_ANALYSIS = \"TECHNICAL_ANALYSIS\",\n TREND_FOLLOWING = \"TREND_FOLLOWING\",\n MEAN_REVERSION = \"MEAN_REVERSION\",\n OPTIONS_STRATEGY = \"OPTIONS_STRATEGY\",\n MOMENTUM_STRATEGY = \"MOMENTUM_STRATEGY\",\n ARBITRAGE = \"ARBITRAGE\",\n STATISTICAL_ARBITRAGE = \"STATISTICAL_ARBITRAGE\",\n MARKET_MAKING = \"MARKET_MAKING\",\n NEWS_BASED_STRATEGY = \"NEWS_BASED_STRATEGY\",\n SENTIMENT_ANALYSIS = \"SENTIMENT_ANALYSIS\",\n LIQUIDITY_PROVISION = \"LIQUIDITY_PROVISION\",\n SCALPING = \"SCALPING\",\n VOLATILITY_TRADING = \"VOLATILITY_TRADING\",\n EVENT_DRIVEN = \"EVENT_DRIVEN\",\n BREAKOUT_STRATEGY = \"BREAKOUT_STRATEGY\",\n ORDER_FLOW_TRADING = \"ORDER_FLOW_TRADING\",\n PAIR_TRADING = \"PAIR_TRADING\",\n SECTOR_ROTATION = \"SECTOR_ROTATION\",\n HIGH_FREQUENCY_TRADING = \"HIGH_FREQUENCY_TRADING\",\n MACHINE_VISION_ANALYSIS = \"MACHINE_VISION_ANALYSIS\",\n NO_STRATEGY = \"NO_STRATEGY\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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\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}\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 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\n";
|
12
|
-
readonly action: "\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 // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset
|
13
|
-
readonly order: "\nYour response should adhere to the following type definition for the \"Order\" 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 Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset
|
14
|
-
readonly stopLoss: "\nYour response should adhere to the following type definition for the \"StopLoss\" 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 StopLoss = {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n // An order that is associated with this stop loss.\n Order: {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset
|
15
|
-
readonly takeProfit: "\nYour response should adhere to the following type definition for the \"TakeProfit\" 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 TakeProfit = {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n // An order that is associated with this take profit.\n Order: {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset
|
9
|
+
readonly customer: "\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 // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\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 // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n }[];\n};\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\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\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
|
10
|
+
readonly asset: "\nYour response should adhere to the following type definition for the \"Asset\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n";
|
11
|
+
readonly trade: "\nYour response should adhere to the following type definition for the \"Trade\" 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 Trade = {\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Option Type (CALL or PUT) if the asset is an option.\n optionType?: OptionType;\n // Signal that triggered the trade.\n signal: TradeSignal;\n // Strategy used to execute the trade.\n strategy: TradeStrategy;\n // summary of the trade decision (this should be a short description of the trade).\n summary: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Current status of the trade.\n status: TradeStatus;\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 // List of actions associated with this trade.\n actions: {\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.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\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 // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\n };\n }[];\n};\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum TradeSignal {\n GOLDEN_CROSS = \"GOLDEN_CROSS\",\n MOVING_AVERAGE_CROSSOVER = \"MOVING_AVERAGE_CROSSOVER\",\n RSI_OVERBOUGHT = \"RSI_OVERBOUGHT\",\n RSI_OVERSOLD = \"RSI_OVERSOLD\",\n MACD_CROSSOVER = \"MACD_CROSSOVER\",\n BOLLINGER_BANDS_BREAKOUT = \"BOLLINGER_BANDS_BREAKOUT\",\n TREND_REVERSAL = \"TREND_REVERSAL\",\n VOLATILITY_SPIKE = \"VOLATILITY_SPIKE\",\n PRICE_ACTION = \"PRICE_ACTION\",\n IMPLIED_VOLATILITY_SURGE = \"IMPLIED_VOLATILITY_SURGE\",\n BREAKOUT_ABOVE_RESISTANCE = \"BREAKOUT_ABOVE_RESISTANCE\",\n BREAKDOWN_BELOW_SUPPORT = \"BREAKDOWN_BELOW_SUPPORT\",\n SUPPORT_LEVEL_HOLD = \"SUPPORT_LEVEL_HOLD\",\n RESISTANCE_LEVEL_HOLD = \"RESISTANCE_LEVEL_HOLD\",\n FIBONACCI_RETRACEMENT = \"FIBONACCI_RETRACEMENT\",\n ELLIOTT_WAVE = \"ELLIOTT_WAVE\",\n PARABOLIC_SAR = \"PARABOLIC_SAR\",\n ADX_TREND_STRENGTH = \"ADX_TREND_STRENGTH\",\n CCI_OVERBOUGHT = \"CCI_OVERBOUGHT\",\n CCI_OVERSOLD = \"CCI_OVERSOLD\",\n STOCHASTIC_OVERSOLD = \"STOCHASTIC_OVERSOLD\",\n STOCHASTIC_OVERBOUGHT = \"STOCHASTIC_OVERBOUGHT\",\n DIVERGENCE_SIGNAL = \"DIVERGENCE_SIGNAL\",\n GANN_FAN = \"GANN_FAN\",\n DONCHIAN_CHANNEL_BREAKOUT = \"DONCHIAN_CHANNEL_BREAKOUT\",\n PIVOT_POINT = \"PIVOT_POINT\",\n KELTNER_CHANNEL_BREAK = \"KELTNER_CHANNEL_BREAK\",\n HEIKIN_ASHI_CROSSOVER = \"HEIKIN_ASHI_CROSSOVER\",\n VOLUME_SURGE = \"VOLUME_SURGE\",\n ORDER_BOOK_IMBALANCE = \"ORDER_BOOK_IMBALANCE\",\n TIME_SERIES_ANOMALY = \"TIME_SERIES_ANOMALY\",\n MEAN_REVERSION_LEVEL = \"MEAN_REVERSION_LEVEL\",\n PAIR_TRADING_SIGNAL = \"PAIR_TRADING_SIGNAL\",\n SENTIMENT_SCORE_THRESHOLD = \"SENTIMENT_SCORE_THRESHOLD\",\n NEWS_SENTIMENT_CHANGE = \"NEWS_SENTIMENT_CHANGE\",\n ORDER_FLOW_IMPACT = \"ORDER_FLOW_IMPACT\",\n LIQUIDITY_DRIVEN_MOVE = \"LIQUIDITY_DRIVEN_MOVE\",\n MACHINE_LEARNING_PREDICTION = \"MACHINE_LEARNING_PREDICTION\",\n SENTIMENT_ANALYSIS_TRIGGER = \"SENTIMENT_ANALYSIS_TRIGGER\",\n NO_SIGNAL = \"NO_SIGNAL\"\n}\n\nexport enum TradeStrategy {\n TECHNICAL_ANALYSIS = \"TECHNICAL_ANALYSIS\",\n TREND_FOLLOWING = \"TREND_FOLLOWING\",\n MEAN_REVERSION = \"MEAN_REVERSION\",\n OPTIONS_STRATEGY = \"OPTIONS_STRATEGY\",\n MOMENTUM_STRATEGY = \"MOMENTUM_STRATEGY\",\n ARBITRAGE = \"ARBITRAGE\",\n STATISTICAL_ARBITRAGE = \"STATISTICAL_ARBITRAGE\",\n MARKET_MAKING = \"MARKET_MAKING\",\n NEWS_BASED_STRATEGY = \"NEWS_BASED_STRATEGY\",\n SENTIMENT_ANALYSIS = \"SENTIMENT_ANALYSIS\",\n LIQUIDITY_PROVISION = \"LIQUIDITY_PROVISION\",\n SCALPING = \"SCALPING\",\n VOLATILITY_TRADING = \"VOLATILITY_TRADING\",\n EVENT_DRIVEN = \"EVENT_DRIVEN\",\n BREAKOUT_STRATEGY = \"BREAKOUT_STRATEGY\",\n ORDER_FLOW_TRADING = \"ORDER_FLOW_TRADING\",\n PAIR_TRADING = \"PAIR_TRADING\",\n SECTOR_ROTATION = \"SECTOR_ROTATION\",\n HIGH_FREQUENCY_TRADING = \"HIGH_FREQUENCY_TRADING\",\n MACHINE_VISION_ANALYSIS = \"MACHINE_VISION_ANALYSIS\",\n NO_STRATEGY = \"NO_STRATEGY\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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\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}\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 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\n";
|
12
|
+
readonly action: "\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 // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\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 // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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}\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 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 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\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
|
13
|
+
readonly order: "\nYour response should adhere to the following type definition for the \"Order\" 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 Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\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 // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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 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 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\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
|
14
|
+
readonly stopLoss: "\nYour response should adhere to the following type definition for the \"StopLoss\" 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 StopLoss = {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n // An order that is associated with this stop loss.\n Order: {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\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 // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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 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 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\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
|
15
|
+
readonly takeProfit: "\nYour response should adhere to the following type definition for the \"TakeProfit\" 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 TakeProfit = {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n // An order that is associated with this take profit.\n Order: {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\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 (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\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 // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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 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 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\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
|
16
16
|
readonly alert: "\nYour response should adhere to the following type definition for the \"Alert\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\n";
|
17
17
|
readonly newsArticle: "\nYour response should adhere to the following type definition for the \"NewsArticle\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n};\n";
|
18
|
-
readonly newsArticleAssetSentiment: "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
18
|
+
readonly newsArticleAssetSentiment: "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n};\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";
|
19
19
|
readonly economicEvent: "\nYour response should adhere to the following type definition for the \"EconomicEvent\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type EconomicEvent = {\n // Title or name of the economic event.\n title: string;\n // Detailed description of the economic event.\n description?: string;\n // Date and time when the economic event is scheduled to occur.\n date: Date;\n // Importance level of the event, defined by EventImportance enum.\n importance: EventImportance;\n};\nexport enum EventImportance {\n LOW = \"LOW\",\n MEDIUM = \"MEDIUM\",\n HIGH = \"HIGH\"\n}\n\n";
|
20
20
|
};
|
21
21
|
export default typeStrings;
|
@@ -743,7 +743,7 @@ const modelsInfo = {
|
|
743
743
|
Session: ["id", "sessionToken", "userId", "expires", "createdAt", "updatedAt"],
|
744
744
|
User: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "customerId", "plan", "openaiAPIKey", "openaiModel"],
|
745
745
|
AlpacaAccount: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
|
746
|
-
Position: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
746
|
+
Position: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
747
747
|
Authenticator: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt"],
|
748
748
|
Account: ["id", "userId", "type", "provider", "providerAccountId", "refresh_token", "access_token", "expires_at", "token_type", "scope", "id_token", "session_state", "createdAt", "updatedAt"],
|
749
749
|
VerificationToken: ["id", "identifier", "token", "expires"],
|
@@ -776,7 +776,7 @@ const outputsInfo = {
|
|
776
776
|
AggregateAlpacaAccount: ["_count", "_avg", "_sum", "_min", "_max"],
|
777
777
|
AlpacaAccountGroupBy: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
|
778
778
|
AggregatePosition: ["_count", "_avg", "_sum", "_min", "_max"],
|
779
|
-
PositionGroupBy: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "_count", "_avg", "_sum", "_min", "_max"],
|
779
|
+
PositionGroupBy: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "_count", "_avg", "_sum", "_min", "_max"],
|
780
780
|
AggregateAuthenticator: ["_count", "_avg", "_sum", "_min", "_max"],
|
781
781
|
AuthenticatorGroupBy: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
|
782
782
|
AggregateAccount: ["_count", "_avg", "_sum", "_min", "_max"],
|
@@ -821,11 +821,11 @@ const outputsInfo = {
|
|
821
821
|
AlpacaAccountSumAggregate: ["minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold"],
|
822
822
|
AlpacaAccountMinAggregate: ["id", "type", "APIKey", "APISecret", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
|
823
823
|
AlpacaAccountMaxAggregate: ["id", "type", "APIKey", "APISecret", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
|
824
|
-
PositionCountAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "_all"],
|
824
|
+
PositionCountAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "_all"],
|
825
825
|
PositionAvgAggregate: ["averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday"],
|
826
826
|
PositionSumAggregate: ["averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday"],
|
827
|
-
PositionMinAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
828
|
-
PositionMaxAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
827
|
+
PositionMinAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
828
|
+
PositionMaxAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
829
829
|
AuthenticatorCountAggregate: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "_all"],
|
830
830
|
AuthenticatorAvgAggregate: ["counter"],
|
831
831
|
AuthenticatorSumAggregate: ["counter"],
|
@@ -893,7 +893,7 @@ const outputsInfo = {
|
|
893
893
|
CreateManySessionAndReturnOutputType: ["id", "sessionToken", "userId", "expires", "createdAt", "updatedAt", "user"],
|
894
894
|
CreateManyUserAndReturnOutputType: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "customerId", "plan", "openaiAPIKey", "openaiModel", "customer"],
|
895
895
|
CreateManyAlpacaAccountAndReturnOutputType: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt", "user"],
|
896
|
-
CreateManyPositionAndReturnOutputType: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "asset", "alpacaAccount"],
|
896
|
+
CreateManyPositionAndReturnOutputType: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "asset", "alpacaAccount"],
|
897
897
|
CreateManyAuthenticatorAndReturnOutputType: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
|
898
898
|
CreateManyAccountAndReturnOutputType: ["id", "userId", "type", "provider", "providerAccountId", "refresh_token", "access_token", "expires_at", "token_type", "scope", "id_token", "session_state", "createdAt", "updatedAt", "user"],
|
899
899
|
CreateManyVerificationTokenAndReturnOutputType: ["id", "identifier", "token", "expires"],
|
@@ -934,11 +934,11 @@ const inputsInfo = {
|
|
934
934
|
AlpacaAccountWhereUniqueInput: ["id", "AND", "OR", "NOT", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt", "user", "trades", "orders", "positions", "alerts"],
|
935
935
|
AlpacaAccountOrderByWithAggregationInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt", "_count", "_avg", "_max", "_min", "_sum"],
|
936
936
|
AlpacaAccountScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
|
937
|
-
PositionWhereInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "asset", "alpacaAccount"],
|
938
|
-
PositionOrderByWithRelationInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "asset", "alpacaAccount"],
|
939
|
-
PositionWhereUniqueInput: ["id", "AND", "OR", "NOT", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "asset", "alpacaAccount"],
|
940
|
-
PositionOrderByWithAggregationInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "_count", "_avg", "_max", "_min", "_sum"],
|
941
|
-
PositionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
937
|
+
PositionWhereInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "asset", "alpacaAccount"],
|
938
|
+
PositionOrderByWithRelationInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "asset", "alpacaAccount"],
|
939
|
+
PositionWhereUniqueInput: ["id", "AND", "OR", "NOT", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "asset", "alpacaAccount"],
|
940
|
+
PositionOrderByWithAggregationInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "_count", "_avg", "_max", "_min", "_sum"],
|
941
|
+
PositionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
942
942
|
AuthenticatorWhereInput: ["AND", "OR", "NOT", "id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
|
943
943
|
AuthenticatorOrderByWithRelationInput: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
|
944
944
|
AuthenticatorWhereUniqueInput: ["id", "credentialID", "AND", "OR", "NOT", "userId", "publicKey", "counter", "createdAt", "updatedAt", "user"],
|
@@ -1021,10 +1021,10 @@ const inputsInfo = {
|
|
1021
1021
|
AlpacaAccountUpdateInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt", "user", "trades", "orders", "positions", "alerts"],
|
1022
1022
|
AlpacaAccountCreateManyInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
|
1023
1023
|
AlpacaAccountUpdateManyMutationInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt"],
|
1024
|
-
PositionCreateInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset", "alpacaAccount"],
|
1025
|
-
PositionUpdateInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset", "alpacaAccount"],
|
1026
|
-
PositionCreateManyInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
1027
|
-
PositionUpdateManyMutationInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable"],
|
1024
|
+
PositionCreateInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "asset", "alpacaAccount"],
|
1025
|
+
PositionUpdateInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "asset", "alpacaAccount"],
|
1026
|
+
PositionCreateManyInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
1027
|
+
PositionUpdateManyMutationInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed"],
|
1028
1028
|
AuthenticatorCreateInput: ["id", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
|
1029
1029
|
AuthenticatorUpdateInput: ["id", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
|
1030
1030
|
AuthenticatorCreateManyInput: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt"],
|
@@ -1141,10 +1141,10 @@ const inputsInfo = {
|
|
1141
1141
|
FloatWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
|
1142
1142
|
AssetRelationFilter: ["is", "isNot"],
|
1143
1143
|
AlpacaAccountNullableRelationFilter: ["is", "isNot"],
|
1144
|
-
PositionCountOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
1144
|
+
PositionCountOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
1145
1145
|
PositionAvgOrderByAggregateInput: ["averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday"],
|
1146
|
-
PositionMaxOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
1147
|
-
PositionMinOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
1146
|
+
PositionMaxOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
1147
|
+
PositionMinOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
1148
1148
|
PositionSumOrderByAggregateInput: ["averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday"],
|
1149
1149
|
IntFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
|
1150
1150
|
AuthenticatorCountOrderByAggregateInput: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt"],
|
@@ -1470,7 +1470,7 @@ const inputsInfo = {
|
|
1470
1470
|
OrderCreateWithoutAlpacaAccountInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "action", "asset"],
|
1471
1471
|
OrderCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
|
1472
1472
|
OrderCreateManyAlpacaAccountInputEnvelope: ["data", "skipDuplicates"],
|
1473
|
-
PositionCreateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset"],
|
1473
|
+
PositionCreateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "asset"],
|
1474
1474
|
PositionCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
|
1475
1475
|
PositionCreateManyAlpacaAccountInputEnvelope: ["data", "skipDuplicates"],
|
1476
1476
|
AlertCreateWithoutAlpacaAccountInput: ["id", "message", "type", "isRead", "createdAt", "updatedAt"],
|
@@ -1490,7 +1490,7 @@ const inputsInfo = {
|
|
1490
1490
|
PositionUpsertWithWhereUniqueWithoutAlpacaAccountInput: ["where", "update", "create"],
|
1491
1491
|
PositionUpdateWithWhereUniqueWithoutAlpacaAccountInput: ["where", "data"],
|
1492
1492
|
PositionUpdateManyWithWhereWithoutAlpacaAccountInput: ["where", "data"],
|
1493
|
-
PositionScalarWhereInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
1493
|
+
PositionScalarWhereInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
1494
1494
|
AlertUpsertWithWhereUniqueWithoutAlpacaAccountInput: ["where", "update", "create"],
|
1495
1495
|
AlertUpdateWithWhereUniqueWithoutAlpacaAccountInput: ["where", "data"],
|
1496
1496
|
AlertUpdateManyWithWhereWithoutAlpacaAccountInput: ["where", "data"],
|
@@ -1528,7 +1528,7 @@ const inputsInfo = {
|
|
1528
1528
|
OrderCreateWithoutAssetInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action"],
|
1529
1529
|
OrderCreateOrConnectWithoutAssetInput: ["where", "create"],
|
1530
1530
|
OrderCreateManyAssetInputEnvelope: ["data", "skipDuplicates"],
|
1531
|
-
PositionCreateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccount"],
|
1531
|
+
PositionCreateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "alpacaAccount"],
|
1532
1532
|
PositionCreateOrConnectWithoutAssetInput: ["where", "create"],
|
1533
1533
|
PositionCreateManyAssetInputEnvelope: ["data", "skipDuplicates"],
|
1534
1534
|
NewsArticleAssetSentimentCreateWithoutAssetInput: ["id", "url", "relevancyScore", "sentimentScore", "sentimentLabel", "news"],
|
@@ -1640,21 +1640,21 @@ const inputsInfo = {
|
|
1640
1640
|
AlpacaAccountUpdateWithoutUserInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt", "trades", "orders", "positions", "alerts"],
|
1641
1641
|
TradeCreateManyAlpacaAccountInput: ["id", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
|
1642
1642
|
OrderCreateManyAlpacaAccountInput: ["id", "clientOrderId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId"],
|
1643
|
-
PositionCreateManyAlpacaAccountInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable"],
|
1643
|
+
PositionCreateManyAlpacaAccountInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed"],
|
1644
1644
|
AlertCreateManyAlpacaAccountInput: ["id", "message", "type", "isRead", "createdAt", "updatedAt"],
|
1645
1645
|
TradeUpdateWithoutAlpacaAccountInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "asset", "actions"],
|
1646
1646
|
OrderUpdateWithoutAlpacaAccountInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "action", "asset"],
|
1647
|
-
PositionUpdateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset"],
|
1647
|
+
PositionUpdateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "asset"],
|
1648
1648
|
AlertUpdateWithoutAlpacaAccountInput: ["id", "message", "type", "isRead", "createdAt", "updatedAt"],
|
1649
1649
|
UserCreateManyCustomerInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel"],
|
1650
1650
|
UserUpdateWithoutCustomerInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "accounts", "sessions", "authenticators", "alpacaAccounts"],
|
1651
1651
|
TradeCreateManyAssetInput: ["id", "alpacaAccountId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
|
1652
1652
|
OrderCreateManyAssetInput: ["id", "clientOrderId", "alpacaAccountId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId"],
|
1653
|
-
PositionCreateManyAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
|
1653
|
+
PositionCreateManyAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
|
1654
1654
|
NewsArticleAssetSentimentCreateManyAssetInput: ["id", "newsArticleId", "url", "relevancyScore", "sentimentScore", "sentimentLabel"],
|
1655
1655
|
TradeUpdateWithoutAssetInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "actions"],
|
1656
1656
|
OrderUpdateWithoutAssetInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action"],
|
1657
|
-
PositionUpdateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccount"],
|
1657
|
+
PositionUpdateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "alpacaAccount"],
|
1658
1658
|
NewsArticleAssetSentimentUpdateWithoutAssetInput: ["id", "url", "relevancyScore", "sentimentScore", "sentimentLabel", "news"],
|
1659
1659
|
ActionCreateManyTradeInput: ["id", "sequence", "type", "note", "status", "fee"],
|
1660
1660
|
ActionUpdateWithoutTradeInput: ["id", "sequence", "type", "note", "status", "fee", "order"],
|