adaptic-backend 1.0.70 → 1.0.72
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 +0 -6
- package/Action.cjs +0 -24
- package/Alert.cjs +0 -32
- package/AlpacaAccount.cjs +0 -24
- package/Asset.cjs +0 -24
- package/Authenticator.cjs +0 -6
- package/Customer.cjs +0 -6
- package/NewsArticle.cjs +0 -6
- package/NewsArticleAssetSentiment.cjs +0 -32
- package/Order.cjs +0 -26
- package/Position.cjs +0 -58
- package/Session.cjs +0 -6
- package/Trade.cjs +0 -84
- package/User.cjs +0 -32
- package/generated/typeStrings/Account.cjs +0 -213
- package/generated/typeStrings/Account.d.ts +1 -1
- package/generated/typeStrings/Account.d.ts.map +1 -1
- package/generated/typeStrings/Account.js.map +1 -1
- package/generated/typeStrings/Action.cjs +143 -197
- package/generated/typeStrings/Action.d.ts +1 -1
- package/generated/typeStrings/Action.d.ts.map +1 -1
- package/generated/typeStrings/Action.js.map +1 -1
- package/generated/typeStrings/Alert.cjs +100 -268
- package/generated/typeStrings/Alert.d.ts +1 -1
- package/generated/typeStrings/Alert.d.ts.map +1 -1
- package/generated/typeStrings/Alert.js.map +1 -1
- package/generated/typeStrings/AlpacaAccount.cjs +31 -179
- package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/generated/typeStrings/AlpacaAccount.js.map +1 -1
- package/generated/typeStrings/Asset.cjs +31 -201
- package/generated/typeStrings/Asset.d.ts +1 -1
- package/generated/typeStrings/Asset.d.ts.map +1 -1
- package/generated/typeStrings/Asset.js.map +1 -1
- package/generated/typeStrings/Authenticator.cjs +0 -213
- package/generated/typeStrings/Authenticator.d.ts +1 -1
- package/generated/typeStrings/Authenticator.d.ts.map +1 -1
- package/generated/typeStrings/Authenticator.js.map +1 -1
- package/generated/typeStrings/Customer.cjs +0 -213
- package/generated/typeStrings/Customer.d.ts +1 -1
- package/generated/typeStrings/Customer.d.ts.map +1 -1
- package/generated/typeStrings/Customer.js.map +1 -1
- package/generated/typeStrings/NewsArticle.cjs +0 -171
- package/generated/typeStrings/NewsArticle.d.ts +1 -1
- package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticle.js.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.cjs +100 -81
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
- package/generated/typeStrings/Order.cjs +31 -280
- package/generated/typeStrings/Order.d.ts +1 -1
- package/generated/typeStrings/Order.d.ts.map +1 -1
- package/generated/typeStrings/Order.js.map +1 -1
- package/generated/typeStrings/Position.cjs +67 -114
- package/generated/typeStrings/Position.d.ts +1 -1
- package/generated/typeStrings/Position.d.ts.map +1 -1
- package/generated/typeStrings/Position.js.map +1 -1
- package/generated/typeStrings/Session.cjs +0 -213
- package/generated/typeStrings/Session.d.ts +1 -1
- package/generated/typeStrings/Session.d.ts.map +1 -1
- package/generated/typeStrings/Session.js.map +1 -1
- package/generated/typeStrings/Trade.cjs +31 -280
- package/generated/typeStrings/Trade.d.ts +1 -1
- package/generated/typeStrings/Trade.d.ts.map +1 -1
- package/generated/typeStrings/Trade.js.map +1 -1
- package/generated/typeStrings/User.cjs +100 -222
- package/generated/typeStrings/User.d.ts +1 -1
- package/generated/typeStrings/User.d.ts.map +1 -1
- package/generated/typeStrings/User.js.map +1 -1
- package/generated/typeStrings/index.d.ts +14 -14
- package/generated/typegraphql-prisma/enhance.cjs +27 -27
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.cjs +0 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +0 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
- package/generated/typegraphql-prisma/models/Order.cjs +0 -7
- package/generated/typegraphql-prisma/models/Order.d.ts +0 -4
- package/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
- package/generated/typegraphql-prisma/models/Order.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.cjs +0 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +0 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.cjs +0 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +0 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.cjs +0 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +0 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +0 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +0 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.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 +0 -6
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +0 -24
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +0 -32
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +0 -24
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +0 -24
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +0 -6
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +0 -6
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +0 -6
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +0 -32
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +0 -26
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +0 -58
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +0 -6
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +0 -84
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +0 -32
- package/server/generated/typeStrings/Account.d.ts +1 -1
- package/server/generated/typeStrings/Account.d.ts.map +1 -1
- package/server/generated/typeStrings/Account.js.map +1 -1
- package/server/generated/typeStrings/Account.mjs +0 -213
- package/server/generated/typeStrings/Action.d.ts +1 -1
- package/server/generated/typeStrings/Action.d.ts.map +1 -1
- package/server/generated/typeStrings/Action.js.map +1 -1
- package/server/generated/typeStrings/Action.mjs +143 -197
- package/server/generated/typeStrings/Alert.d.ts +1 -1
- package/server/generated/typeStrings/Alert.d.ts.map +1 -1
- package/server/generated/typeStrings/Alert.js.map +1 -1
- package/server/generated/typeStrings/Alert.mjs +100 -268
- package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.mjs +31 -179
- package/server/generated/typeStrings/Asset.d.ts +1 -1
- package/server/generated/typeStrings/Asset.d.ts.map +1 -1
- package/server/generated/typeStrings/Asset.js.map +1 -1
- package/server/generated/typeStrings/Asset.mjs +31 -201
- package/server/generated/typeStrings/Authenticator.d.ts +1 -1
- package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
- package/server/generated/typeStrings/Authenticator.js.map +1 -1
- package/server/generated/typeStrings/Authenticator.mjs +0 -213
- package/server/generated/typeStrings/Customer.d.ts +1 -1
- package/server/generated/typeStrings/Customer.d.ts.map +1 -1
- package/server/generated/typeStrings/Customer.js.map +1 -1
- package/server/generated/typeStrings/Customer.mjs +0 -213
- package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticle.js.map +1 -1
- package/server/generated/typeStrings/NewsArticle.mjs +0 -171
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +100 -81
- package/server/generated/typeStrings/Order.d.ts +1 -1
- package/server/generated/typeStrings/Order.d.ts.map +1 -1
- package/server/generated/typeStrings/Order.js.map +1 -1
- package/server/generated/typeStrings/Order.mjs +31 -280
- package/server/generated/typeStrings/Position.d.ts +1 -1
- package/server/generated/typeStrings/Position.d.ts.map +1 -1
- package/server/generated/typeStrings/Position.js.map +1 -1
- package/server/generated/typeStrings/Position.mjs +67 -114
- package/server/generated/typeStrings/Session.d.ts +1 -1
- package/server/generated/typeStrings/Session.d.ts.map +1 -1
- package/server/generated/typeStrings/Session.js.map +1 -1
- package/server/generated/typeStrings/Session.mjs +0 -213
- package/server/generated/typeStrings/Trade.d.ts +1 -1
- package/server/generated/typeStrings/Trade.d.ts.map +1 -1
- package/server/generated/typeStrings/Trade.js.map +1 -1
- package/server/generated/typeStrings/Trade.mjs +31 -280
- package/server/generated/typeStrings/User.d.ts +1 -1
- package/server/generated/typeStrings/User.d.ts.map +1 -1
- package/server/generated/typeStrings/User.js.map +1 -1
- package/server/generated/typeStrings/User.mjs +100 -222
- package/server/generated/typeStrings/index.d.ts +14 -14
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +27 -27
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +0 -1
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.mjs +0 -1
- package/server/generated/typegraphql-prisma/models/Order.d.ts +0 -4
- package/server/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/Order.mjs +0 -11
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +0 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.mjs +0 -8
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +0 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.mjs +0 -8
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +0 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.mjs +0 -8
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +0 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +0 -8
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
@@ -19,8 +19,6 @@ export type AlpacaAccount = {
|
|
19
19
|
marketOpen: boolean;
|
20
20
|
// Relation to the User model who owns this Alpaca account.
|
21
21
|
user: User;
|
22
|
-
// Foreign key referencing the User.
|
23
|
-
userId: string;
|
24
22
|
// List of trades executed through this Alpaca account.
|
25
23
|
trades: Trade[];
|
26
24
|
// List of orders placed through this Alpaca account.
|
@@ -49,33 +47,19 @@ export enum SubscriptionPlan {
|
|
49
47
|
}
|
50
48
|
|
51
49
|
export type Customer = {
|
52
|
-
// Reference to the authenticated user associated with the customer.
|
53
|
-
authUserId: string;
|
54
50
|
// Name of the customer.
|
55
51
|
name?: string;
|
56
52
|
// Subscription plan the customer is enrolled in.
|
57
53
|
plan?: SubscriptionPlan;
|
58
|
-
// Unique Stripe customer ID for billing.
|
59
|
-
stripeCustomerId?: string;
|
60
|
-
// Unique Stripe subscription ID.
|
61
|
-
stripeSubscriptionId?: string;
|
62
|
-
// Stripe price ID associated with the customer's subscription.
|
63
|
-
stripePriceId?: string;
|
64
54
|
// End date of the current billing period in Stripe.
|
65
55
|
stripeCurrentPeriodEnd?: Date;
|
66
|
-
// List of users associated with the customer.
|
67
|
-
users: User[];
|
68
56
|
}
|
69
57
|
|
70
58
|
export type Account = {
|
71
|
-
// Reference to the user who owns this account.
|
72
|
-
userId: string;
|
73
59
|
// Type of the account (e.g., OAuth provider).
|
74
60
|
type: string;
|
75
61
|
// Provider of the account (e.g., Google, GitHub).
|
76
62
|
provider: string;
|
77
|
-
// Unique identifier provided by the external provider.
|
78
|
-
providerAccountId: string;
|
79
63
|
// Refresh token for the external account, if applicable.
|
80
64
|
refresh_token?: string;
|
81
65
|
// Access token for the external account, if applicable.
|
@@ -90,32 +74,22 @@ export type Account = {
|
|
90
74
|
id_token?: string;
|
91
75
|
// State of the session associated with the account.
|
92
76
|
session_state?: string;
|
93
|
-
// Relation to the User model.
|
94
|
-
user: User;
|
95
77
|
}
|
96
78
|
|
97
79
|
export type Session = {
|
98
80
|
// Token associated with the session for authentication.
|
99
81
|
sessionToken: string;
|
100
|
-
// Reference to the user who owns this session.
|
101
|
-
userId: string;
|
102
82
|
// Expiration date and time of the session.
|
103
83
|
expires: Date;
|
104
|
-
// Relation to the User model.
|
105
|
-
user: User;
|
106
84
|
}
|
107
85
|
|
108
86
|
export type Authenticator = {
|
109
|
-
// Reference to the user who owns this authenticator.
|
110
|
-
userId: string;
|
111
87
|
// Unique credential ID for the authenticator.
|
112
88
|
credentialID: string;
|
113
89
|
// Public key associated with the authenticator.
|
114
90
|
publicKey: string;
|
115
91
|
// Counter for the number of authentication attempts.
|
116
92
|
counter: number;
|
117
|
-
// Relation to the User model.
|
118
|
-
user: User;
|
119
93
|
}
|
120
94
|
|
121
95
|
export type User = {
|
@@ -137,8 +111,6 @@ export type User = {
|
|
137
111
|
currentAccount: AlpacaAccountType;
|
138
112
|
// Relation to the Customer model, if applicable.
|
139
113
|
customer?: Customer;
|
140
|
-
// Foreign key referencing the Customer.
|
141
|
-
customerId?: number;
|
142
114
|
// List of accounts associated with the user.
|
143
115
|
accounts: Account[];
|
144
116
|
// List of sessions associated with the user.
|
@@ -147,8 +119,6 @@ export type User = {
|
|
147
119
|
authenticators: Authenticator[];
|
148
120
|
// The subscription plan the user is enrolled in.
|
149
121
|
plan?: SubscriptionPlan;
|
150
|
-
// List of Alpaca accounts linked to the user.
|
151
|
-
alpacaAccounts: AlpacaAccount[];
|
152
122
|
}
|
153
123
|
|
154
124
|
export enum TradeStatus {
|
@@ -182,143 +152,6 @@ export enum AssetType {
|
|
182
152
|
OTHER = "OTHER"
|
183
153
|
}
|
184
154
|
|
185
|
-
export enum OrderSide {
|
186
|
-
BUY = "BUY",
|
187
|
-
SELL = "SELL"
|
188
|
-
}
|
189
|
-
|
190
|
-
export enum OrderType {
|
191
|
-
MARKET = "MARKET",
|
192
|
-
LIMIT = "LIMIT",
|
193
|
-
STOP = "STOP",
|
194
|
-
STOP_LIMIT = "STOP_LIMIT",
|
195
|
-
TRAILING_STOP = "TRAILING_STOP"
|
196
|
-
}
|
197
|
-
|
198
|
-
// Time in force enum (day, gtc, opg, cls, etc.).
|
199
|
-
export enum TimeInForce {
|
200
|
-
DAY = "DAY",
|
201
|
-
GTC = "GTC",
|
202
|
-
OPG = "OPG",
|
203
|
-
CLS = "CLS",
|
204
|
-
IOC = "IOC",
|
205
|
-
FOK = "FOK"
|
206
|
-
}
|
207
|
-
|
208
|
-
export enum OrderStatus {
|
209
|
-
NEW = "NEW",
|
210
|
-
PARTIALLY_FILLED = "PARTIALLY_FILLED",
|
211
|
-
FILLED = "FILLED",
|
212
|
-
CANCELED = "CANCELED",
|
213
|
-
REJECTED = "REJECTED",
|
214
|
-
EXPIRED = "EXPIRED"
|
215
|
-
}
|
216
|
-
|
217
|
-
export type Order = {
|
218
|
-
// Reference to the Alpaca account used for the order.
|
219
|
-
alpacaAccountId: string;
|
220
|
-
// Reference to the asset being ordered.
|
221
|
-
assetId: string;
|
222
|
-
// Symbol of the asset (ticker symbol).
|
223
|
-
symbol: string;
|
224
|
-
// Quantity of the asset to be ordered.
|
225
|
-
qty?: number;
|
226
|
-
// Notional value of the order. Optional, used if qty is not provided.
|
227
|
-
notional?: number;
|
228
|
-
// Side of the order (BUY or SELL).
|
229
|
-
side: OrderSide;
|
230
|
-
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
231
|
-
type: OrderType;
|
232
|
-
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
233
|
-
timeInForce: TimeInForce;
|
234
|
-
// Limit price for limit or stop-limit orders.
|
235
|
-
limitPrice?: number;
|
236
|
-
// Stop price for stop or stop-limit orders.
|
237
|
-
stopPrice?: number;
|
238
|
-
// Trailing price for trailing stop orders.
|
239
|
-
trailPrice?: number;
|
240
|
-
// Trailing percent for trailing stop orders.
|
241
|
-
trailPercent?: number;
|
242
|
-
// Whether the order is eligible for extended hours.
|
243
|
-
extendedHours?: boolean;
|
244
|
-
// Client-supplied identifier for the order.
|
245
|
-
clientOrderId?: string;
|
246
|
-
// Current status of the order.
|
247
|
-
status: OrderStatus;
|
248
|
-
// Timestamp when the order was submitted.
|
249
|
-
submittedAt?: Date;
|
250
|
-
// Timestamp when the order was filled.
|
251
|
-
filledAt?: Date;
|
252
|
-
// Average price at which the order was filled.
|
253
|
-
filledAvgPrice?: number;
|
254
|
-
// Reference to the action associated with the order.
|
255
|
-
actionId: string;
|
256
|
-
// The Alpaca account this order is associated with.
|
257
|
-
alpacaAccount: AlpacaAccount;
|
258
|
-
// The action this order is associated with.
|
259
|
-
action: Action;
|
260
|
-
// The asset this order is for.
|
261
|
-
asset: Asset;
|
262
|
-
// Fee associated with the order.
|
263
|
-
fee?: number;
|
264
|
-
}
|
265
|
-
|
266
|
-
export type Position = {
|
267
|
-
// Reference to the associated asset.
|
268
|
-
assetId: string;
|
269
|
-
// Relation to the Asset model.
|
270
|
-
asset: Asset;
|
271
|
-
// The average price at which the asset was acquired.
|
272
|
-
averageEntryPrice: number;
|
273
|
-
// Total quantity of the asset held.
|
274
|
-
qty: number;
|
275
|
-
// Quantity of the asset available for trading.
|
276
|
-
qtyAvailable: number;
|
277
|
-
// Current market value of the position.
|
278
|
-
marketValue: number;
|
279
|
-
// Total cost basis of the position.
|
280
|
-
costBasis: number;
|
281
|
-
// Unrealized profit or loss of the position.
|
282
|
-
unrealizedPL: number;
|
283
|
-
// Unrealized profit or loss as a percentage.
|
284
|
-
unrealizedPLPC: number;
|
285
|
-
// Unrealized intraday profit or loss.
|
286
|
-
unrealisedIntradayPL: number;
|
287
|
-
// Unrealized intraday profit or loss as a percentage.
|
288
|
-
unrealisedIntradayPLPC: number;
|
289
|
-
// Current price of the asset.
|
290
|
-
currentPrice: number;
|
291
|
-
// Last traded price of the asset.
|
292
|
-
lastTradePrice: number;
|
293
|
-
// Price change of the asset for the day.
|
294
|
-
changeToday: number;
|
295
|
-
// Indicates if the asset is marginable.
|
296
|
-
assetMarginable: boolean;
|
297
|
-
// Relation to the AlpacaAccount model, if applicable.
|
298
|
-
alpacaAccount?: AlpacaAccount;
|
299
|
-
// Foreign key referencing the AlpacaAccount.
|
300
|
-
alpacaAccountId: string;
|
301
|
-
}
|
302
|
-
|
303
|
-
export type NewsArticleAssetSentiment = {
|
304
|
-
// Reference to the associated asset.
|
305
|
-
assetId: string;
|
306
|
-
// Reference to the associated news article.
|
307
|
-
newsArticleId: string;
|
308
|
-
// URL of the news article, must be unique.
|
309
|
-
url: string;
|
310
|
-
// Relation to the NewsArticle model.
|
311
|
-
news: NewsArticle;
|
312
|
-
// Relation to the Asset model.
|
313
|
-
asset: Asset;
|
314
|
-
// Relevancy score indicating how relevant the news is to the asset.
|
315
|
-
relevancyScore?: string;
|
316
|
-
// Sentiment score derived from the news content.
|
317
|
-
sentimentScore?: string;
|
318
|
-
// Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).
|
319
|
-
sentimentLabel?: string;
|
320
|
-
}
|
321
|
-
|
322
155
|
export type Asset = {
|
323
156
|
// Ticker symbol of the asset, must be unique.
|
324
157
|
symbol: string;
|
@@ -430,8 +263,6 @@ export type Asset = {
|
|
430
263
|
sellPrice?: string;
|
431
264
|
// Last buy price of the asset.
|
432
265
|
buyPrice?: string;
|
433
|
-
// List of trades involving this asset.
|
434
|
-
trades: Trade[];
|
435
266
|
// List of orders involving this asset.
|
436
267
|
orders: Order[];
|
437
268
|
// List of positions involving this asset.
|
@@ -445,11 +276,38 @@ export enum OptionContractType {
|
|
445
276
|
PUT = "PUT"
|
446
277
|
}
|
447
278
|
|
279
|
+
export enum ActionType {
|
280
|
+
BUY = "BUY",
|
281
|
+
GET_OPTION_CONTRACTS = "GET_OPTION_CONTRACTS",
|
282
|
+
EXERCISE_OPTION = "EXERCISE_OPTION",
|
283
|
+
SELL = "SELL",
|
284
|
+
CANCEL = "CANCEL",
|
285
|
+
ADJUST = "ADJUST",
|
286
|
+
HEDGE = "HEDGE"
|
287
|
+
}
|
288
|
+
|
289
|
+
export enum ActionStatus {
|
290
|
+
STAGED = "STAGED",
|
291
|
+
EXECUTED = "EXECUTED",
|
292
|
+
COMPLETED = "COMPLETED"
|
293
|
+
}
|
294
|
+
|
295
|
+
export type Action = {
|
296
|
+
// Sequence number of the action within the trade.
|
297
|
+
sequence: number;
|
298
|
+
// Type of trade action, defined by ActionType enum.
|
299
|
+
type: ActionType;
|
300
|
+
// Additional notes or comments about the action.
|
301
|
+
note: string;
|
302
|
+
// Current status of the trade action.
|
303
|
+
status: ActionStatus;
|
304
|
+
// Fees associated with the action.
|
305
|
+
fee?: number;
|
306
|
+
// The order associated with this action.
|
307
|
+
order?: Order;
|
308
|
+
}
|
309
|
+
|
448
310
|
export type Trade = {
|
449
|
-
// Reference to the Alpaca account used for the trade.
|
450
|
-
alpacaAccountId: string;
|
451
|
-
// Reference to the asset being traded.
|
452
|
-
assetId: string;
|
453
311
|
// Quantity of the asset being traded.
|
454
312
|
qty: number;
|
455
313
|
// Price at which the asset was traded.
|
@@ -468,8 +326,6 @@ export type Trade = {
|
|
468
326
|
timestamp: Date;
|
469
327
|
// Current status of the trade.
|
470
328
|
status: TradeStatus;
|
471
|
-
// Relation to the AlpacaAccount model.
|
472
|
-
alpacaAccount: AlpacaAccount;
|
473
329
|
// Relation to the Asset model.
|
474
330
|
asset: Asset;
|
475
331
|
// If the asset.type is OPTION, then provide type of contract (CALL or PUT).
|
@@ -486,16 +342,12 @@ export enum AlertType {
|
|
486
342
|
}
|
487
343
|
|
488
344
|
export type Alert = {
|
489
|
-
// Reference to the Alpaca account associated with the alert.
|
490
|
-
alpacaAccountId: string;
|
491
345
|
// Message content of the alert.
|
492
346
|
message: string;
|
493
347
|
// Type of the alert, defined by AlertType enum.
|
494
348
|
type: AlertType;
|
495
349
|
// Indicates whether the alert has been read by the user.
|
496
350
|
isRead: boolean;
|
497
|
-
// Relation to the AlpacaAccount model.
|
498
|
-
alpacaAccount: AlpacaAccount;
|
499
351
|
}
|
500
352
|
|
501
353
|
`;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type, and its nested object types (which include 'User', 'Trade', 'Order', 'Position', 'Alert' types), as well as any ENUMS used by it (which include 'AlpacaAccountType' enum).\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 // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\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 // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type Customer = {\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport type Account = {\n // Reference to the user who owns this account.\n userId: string;\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 // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: 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 // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport type Authenticator = {\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\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 // Timestamp when the user's email was verified.\n emailVerified?: Date;\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, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\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 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\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 NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not 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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\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 // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\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 // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport type NewsArticleAssetSentiment = {\n // Reference to the associated asset.\n assetId: string;\n // Reference to the associated news article.\n newsArticleId: string;\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\nexport type 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 // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\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 // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\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 // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\n";
|
1
|
+
export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type, and its nested object types (which include 'User', 'Trade', 'Order', 'Position', 'Alert' types), as well as any ENUMS used by it (which include 'AlpacaAccountType' enum).\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 // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\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 // Relation to the User model who owns this Alpaca account.\n user: User;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\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}\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 // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: 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 // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n}\n\nexport type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n}\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 // Timestamp when the user's email was verified.\n emailVerified?: Date;\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, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\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 type 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 // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum ActionType {\n BUY = \"BUY\",\n GET_OPTION_CONTRACTS = \"GET_OPTION_CONTRACTS\",\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 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?: Order;\n}\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 // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n}\n\n";
|
2
2
|
//# sourceMappingURL=AlpacaAccount.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
1
|
+
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,mgVA6VnC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG
|
1
|
+
{"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6VtC,CAAC"}
|
@@ -163,189 +163,6 @@ export enum AlpacaAccountType {
|
|
163
163
|
LIVE = "LIVE"
|
164
164
|
}
|
165
165
|
|
166
|
-
export enum UserRole {
|
167
|
-
OWNER = "OWNER",
|
168
|
-
ADMIN = "ADMIN",
|
169
|
-
USER = "USER"
|
170
|
-
}
|
171
|
-
|
172
|
-
export enum SubscriptionPlan {
|
173
|
-
FREE = "FREE",
|
174
|
-
PRO = "PRO",
|
175
|
-
BUSINESS = "BUSINESS"
|
176
|
-
}
|
177
|
-
|
178
|
-
export type User = {
|
179
|
-
// The user's full name.
|
180
|
-
name?: string;
|
181
|
-
// The user's email address, must be unique.
|
182
|
-
email?: string;
|
183
|
-
// Timestamp when the user's email was verified.
|
184
|
-
emailVerified?: Date;
|
185
|
-
// URL to the user's profile image.
|
186
|
-
image?: string;
|
187
|
-
// The role assigned to the user, determining permissions.
|
188
|
-
role: UserRole;
|
189
|
-
// A short biography or description of the user.
|
190
|
-
bio?: string;
|
191
|
-
// The user's job title or position.
|
192
|
-
jobTitle?: string;
|
193
|
-
// The type of Alpaca account the user currently holds.
|
194
|
-
currentAccount: AlpacaAccountType;
|
195
|
-
// Relation to the Customer model, if applicable.
|
196
|
-
customer?: Customer;
|
197
|
-
// Foreign key referencing the Customer.
|
198
|
-
customerId?: number;
|
199
|
-
// List of accounts associated with the user.
|
200
|
-
accounts: Account[];
|
201
|
-
// List of sessions associated with the user.
|
202
|
-
sessions: Session[];
|
203
|
-
// List of authenticators for the user.
|
204
|
-
authenticators: Authenticator[];
|
205
|
-
// The subscription plan the user is enrolled in.
|
206
|
-
plan?: SubscriptionPlan;
|
207
|
-
// List of Alpaca accounts linked to the user.
|
208
|
-
alpacaAccounts: AlpacaAccount[];
|
209
|
-
}
|
210
|
-
|
211
|
-
export enum OrderSide {
|
212
|
-
BUY = "BUY",
|
213
|
-
SELL = "SELL"
|
214
|
-
}
|
215
|
-
|
216
|
-
export enum OrderType {
|
217
|
-
MARKET = "MARKET",
|
218
|
-
LIMIT = "LIMIT",
|
219
|
-
STOP = "STOP",
|
220
|
-
STOP_LIMIT = "STOP_LIMIT",
|
221
|
-
TRAILING_STOP = "TRAILING_STOP"
|
222
|
-
}
|
223
|
-
|
224
|
-
// Time in force enum (day, gtc, opg, cls, etc.).
|
225
|
-
export enum TimeInForce {
|
226
|
-
DAY = "DAY",
|
227
|
-
GTC = "GTC",
|
228
|
-
OPG = "OPG",
|
229
|
-
CLS = "CLS",
|
230
|
-
IOC = "IOC",
|
231
|
-
FOK = "FOK"
|
232
|
-
}
|
233
|
-
|
234
|
-
export enum OrderStatus {
|
235
|
-
NEW = "NEW",
|
236
|
-
PARTIALLY_FILLED = "PARTIALLY_FILLED",
|
237
|
-
FILLED = "FILLED",
|
238
|
-
CANCELED = "CANCELED",
|
239
|
-
REJECTED = "REJECTED",
|
240
|
-
EXPIRED = "EXPIRED"
|
241
|
-
}
|
242
|
-
|
243
|
-
export type Order = {
|
244
|
-
// Reference to the Alpaca account used for the order.
|
245
|
-
alpacaAccountId: string;
|
246
|
-
// Reference to the asset being ordered.
|
247
|
-
assetId: string;
|
248
|
-
// Symbol of the asset (ticker symbol).
|
249
|
-
symbol: string;
|
250
|
-
// Quantity of the asset to be ordered.
|
251
|
-
qty?: number;
|
252
|
-
// Notional value of the order. Optional, used if qty is not provided.
|
253
|
-
notional?: number;
|
254
|
-
// Side of the order (BUY or SELL).
|
255
|
-
side: OrderSide;
|
256
|
-
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
257
|
-
type: OrderType;
|
258
|
-
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
259
|
-
timeInForce: TimeInForce;
|
260
|
-
// Limit price for limit or stop-limit orders.
|
261
|
-
limitPrice?: number;
|
262
|
-
// Stop price for stop or stop-limit orders.
|
263
|
-
stopPrice?: number;
|
264
|
-
// Trailing price for trailing stop orders.
|
265
|
-
trailPrice?: number;
|
266
|
-
// Trailing percent for trailing stop orders.
|
267
|
-
trailPercent?: number;
|
268
|
-
// Whether the order is eligible for extended hours.
|
269
|
-
extendedHours?: boolean;
|
270
|
-
// Client-supplied identifier for the order.
|
271
|
-
clientOrderId?: string;
|
272
|
-
// Current status of the order.
|
273
|
-
status: OrderStatus;
|
274
|
-
// Timestamp when the order was submitted.
|
275
|
-
submittedAt?: Date;
|
276
|
-
// Timestamp when the order was filled.
|
277
|
-
filledAt?: Date;
|
278
|
-
// Average price at which the order was filled.
|
279
|
-
filledAvgPrice?: number;
|
280
|
-
// Reference to the action associated with the order.
|
281
|
-
actionId: string;
|
282
|
-
// The Alpaca account this order is associated with.
|
283
|
-
alpacaAccount: AlpacaAccount;
|
284
|
-
// The action this order is associated with.
|
285
|
-
action: Action;
|
286
|
-
// The asset this order is for.
|
287
|
-
asset: Asset;
|
288
|
-
// Fee associated with the order.
|
289
|
-
fee?: number;
|
290
|
-
}
|
291
|
-
|
292
|
-
export type Position = {
|
293
|
-
// Reference to the associated asset.
|
294
|
-
assetId: string;
|
295
|
-
// Relation to the Asset model.
|
296
|
-
asset: Asset;
|
297
|
-
// The average price at which the asset was acquired.
|
298
|
-
averageEntryPrice: number;
|
299
|
-
// Total quantity of the asset held.
|
300
|
-
qty: number;
|
301
|
-
// Quantity of the asset available for trading.
|
302
|
-
qtyAvailable: number;
|
303
|
-
// Current market value of the position.
|
304
|
-
marketValue: number;
|
305
|
-
// Total cost basis of the position.
|
306
|
-
costBasis: number;
|
307
|
-
// Unrealized profit or loss of the position.
|
308
|
-
unrealizedPL: number;
|
309
|
-
// Unrealized profit or loss as a percentage.
|
310
|
-
unrealizedPLPC: number;
|
311
|
-
// Unrealized intraday profit or loss.
|
312
|
-
unrealisedIntradayPL: number;
|
313
|
-
// Unrealized intraday profit or loss as a percentage.
|
314
|
-
unrealisedIntradayPLPC: number;
|
315
|
-
// Current price of the asset.
|
316
|
-
currentPrice: number;
|
317
|
-
// Last traded price of the asset.
|
318
|
-
lastTradePrice: number;
|
319
|
-
// Price change of the asset for the day.
|
320
|
-
changeToday: number;
|
321
|
-
// Indicates if the asset is marginable.
|
322
|
-
assetMarginable: boolean;
|
323
|
-
// Relation to the AlpacaAccount model, if applicable.
|
324
|
-
alpacaAccount?: AlpacaAccount;
|
325
|
-
// Foreign key referencing the AlpacaAccount.
|
326
|
-
alpacaAccountId: string;
|
327
|
-
}
|
328
|
-
|
329
|
-
export enum AlertType {
|
330
|
-
SUCCESS = "SUCCESS",
|
331
|
-
WARNING = "WARNING",
|
332
|
-
ERROR = "ERROR",
|
333
|
-
INFO = "INFO"
|
334
|
-
}
|
335
|
-
|
336
|
-
export type Alert = {
|
337
|
-
// Reference to the Alpaca account associated with the alert.
|
338
|
-
alpacaAccountId: string;
|
339
|
-
// Message content of the alert.
|
340
|
-
message: string;
|
341
|
-
// Type of the alert, defined by AlertType enum.
|
342
|
-
type: AlertType;
|
343
|
-
// Indicates whether the alert has been read by the user.
|
344
|
-
isRead: boolean;
|
345
|
-
// Relation to the AlpacaAccount model.
|
346
|
-
alpacaAccount: AlpacaAccount;
|
347
|
-
}
|
348
|
-
|
349
166
|
export type AlpacaAccount = {
|
350
167
|
// The type of Alpaca account (PAPER or LIVE).
|
351
168
|
type: AlpacaAccountType;
|
@@ -359,10 +176,6 @@ export type AlpacaAccount = {
|
|
359
176
|
marketOpen: boolean;
|
360
177
|
// Relation to the User model who owns this Alpaca account.
|
361
178
|
user: User;
|
362
|
-
// Foreign key referencing the User.
|
363
|
-
userId: string;
|
364
|
-
// List of trades executed through this Alpaca account.
|
365
|
-
trades: Trade[];
|
366
179
|
// List of orders placed through this Alpaca account.
|
367
180
|
orders: Order[];
|
368
181
|
// List of positions held in this Alpaca account.
|
@@ -376,11 +189,38 @@ export enum OptionContractType {
|
|
376
189
|
PUT = "PUT"
|
377
190
|
}
|
378
191
|
|
192
|
+
export enum ActionType {
|
193
|
+
BUY = "BUY",
|
194
|
+
GET_OPTION_CONTRACTS = "GET_OPTION_CONTRACTS",
|
195
|
+
EXERCISE_OPTION = "EXERCISE_OPTION",
|
196
|
+
SELL = "SELL",
|
197
|
+
CANCEL = "CANCEL",
|
198
|
+
ADJUST = "ADJUST",
|
199
|
+
HEDGE = "HEDGE"
|
200
|
+
}
|
201
|
+
|
202
|
+
export enum ActionStatus {
|
203
|
+
STAGED = "STAGED",
|
204
|
+
EXECUTED = "EXECUTED",
|
205
|
+
COMPLETED = "COMPLETED"
|
206
|
+
}
|
207
|
+
|
208
|
+
export type Action = {
|
209
|
+
// Sequence number of the action within the trade.
|
210
|
+
sequence: number;
|
211
|
+
// Type of trade action, defined by ActionType enum.
|
212
|
+
type: ActionType;
|
213
|
+
// Additional notes or comments about the action.
|
214
|
+
note: string;
|
215
|
+
// Current status of the trade action.
|
216
|
+
status: ActionStatus;
|
217
|
+
// Fees associated with the action.
|
218
|
+
fee?: number;
|
219
|
+
// The order associated with this action.
|
220
|
+
order?: Order;
|
221
|
+
}
|
222
|
+
|
379
223
|
export type Trade = {
|
380
|
-
// Reference to the Alpaca account used for the trade.
|
381
|
-
alpacaAccountId: string;
|
382
|
-
// Reference to the asset being traded.
|
383
|
-
assetId: string;
|
384
224
|
// Quantity of the asset being traded.
|
385
225
|
qty: number;
|
386
226
|
// Price at which the asset was traded.
|
@@ -401,8 +241,6 @@ export type Trade = {
|
|
401
241
|
status: TradeStatus;
|
402
242
|
// Relation to the AlpacaAccount model.
|
403
243
|
alpacaAccount: AlpacaAccount;
|
404
|
-
// Relation to the Asset model.
|
405
|
-
asset: Asset;
|
406
244
|
// If the asset.type is OPTION, then provide type of contract (CALL or PUT).
|
407
245
|
optionContractType?: OptionContractType;
|
408
246
|
// List of actions associated with this trade.
|
@@ -436,21 +274,13 @@ export type NewsArticle = {
|
|
436
274
|
topics: string[];
|
437
275
|
// URL to the logo image of the news source.
|
438
276
|
logo?: string;
|
439
|
-
// List of asset sentiments associated with this news article.
|
440
|
-
assets: NewsArticleAssetSentiment[];
|
441
277
|
}
|
442
278
|
|
443
279
|
export type NewsArticleAssetSentiment = {
|
444
|
-
// Reference to the associated asset.
|
445
|
-
assetId: string;
|
446
|
-
// Reference to the associated news article.
|
447
|
-
newsArticleId: string;
|
448
280
|
// URL of the news article, must be unique.
|
449
281
|
url: string;
|
450
282
|
// Relation to the NewsArticle model.
|
451
283
|
news: NewsArticle;
|
452
|
-
// Relation to the Asset model.
|
453
|
-
asset: Asset;
|
454
284
|
// Relevancy score indicating how relevant the news is to the asset.
|
455
285
|
relevancyScore?: string;
|
456
286
|
// Sentiment score derived from the news content.
|