adaptic-backend 1.0.69 → 1.0.70
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 +90 -36
- package/Action.cjs +215 -71
- package/Alert.cjs +249 -81
- package/AlpacaAccount.cjs +215 -71
- package/Asset.cjs +215 -71
- package/Authenticator.cjs +90 -36
- package/Customer.cjs +90 -36
- package/NewsArticle.cjs +90 -36
- package/NewsArticleAssetSentiment.cjs +249 -81
- package/Order.cjs +205 -67
- package/Position.cjs +408 -126
- package/README.md +1 -0
- package/Session.cjs +90 -36
- package/Trade.cjs +567 -171
- package/User.cjs +249 -81
- package/generated/typeStrings/Account.cjs +51 -19
- 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 +51 -19
- 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/AlpacaAccount.cjs +51 -19
- 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 +51 -19
- 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 +51 -19
- 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 +51 -19
- 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 +51 -19
- 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/Order.cjs +52 -20
- 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/Session.cjs +51 -19
- 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 +51 -19
- 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/enums.cjs +16 -3
- package/generated/typeStrings/enums.d.ts +15 -4
- package/generated/typeStrings/enums.d.ts.map +1 -1
- package/generated/typeStrings/enums.js.map +1 -1
- package/generated/typeStrings/index.d.ts +10 -10
- package/generated/typegraphql-prisma/enhance.cjs +46 -36
- package/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.cjs +15 -6
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +15 -6
- 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/enums/OrderStatus.cjs +4 -2
- package/generated/typegraphql-prisma/enums/OrderStatus.d.ts +5 -3
- package/generated/typegraphql-prisma/enums/OrderStatus.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enums/OrderStatus.js.map +1 -1
- package/generated/typegraphql-prisma/enums/OrderType.cjs +1 -0
- package/generated/typegraphql-prisma/enums/OrderType.d.ts +2 -1
- package/generated/typegraphql-prisma/enums/OrderType.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enums/OrderType.js.map +1 -1
- package/generated/typegraphql-prisma/enums/TimeInForce.cjs +42 -0
- package/generated/typegraphql-prisma/enums/TimeInForce.d.ts +10 -0
- package/generated/typegraphql-prisma/enums/TimeInForce.d.ts.map +1 -0
- package/generated/typegraphql-prisma/enums/TimeInForce.js.map +1 -0
- package/generated/typegraphql-prisma/enums/index.cjs +3 -1
- package/generated/typegraphql-prisma/enums/index.d.ts +1 -0
- package/generated/typegraphql-prisma/enums/index.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enums/index.js.map +1 -1
- package/generated/typegraphql-prisma/models/Order.cjs +84 -19
- package/generated/typegraphql-prisma/models/Order.d.ts +52 -13
- 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/BoolNullableFilter.cjs +56 -0
- package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.d.ts +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.cjs +76 -0
- package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.d.ts +11 -0
- package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.cjs +50 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.cjs +69 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.d.ts +8 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.cjs +89 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.d.ts +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.cjs +55 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.d.ts +5 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.cjs +75 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.d.ts +10 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.d.ts +3 -3
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.cjs +68 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.cjs +88 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.d.ts +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.cjs +49 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.cjs +26 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts +6 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.cjs +60 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +15 -6
- 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 +65 -10
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +15 -6
- 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 +66 -11
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +16 -7
- 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 +66 -11
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +16 -7
- 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 +66 -11
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +16 -7
- 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 +65 -10
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +15 -6
- 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 +65 -10
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +15 -6
- 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 +65 -10
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +15 -6
- 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 +60 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +15 -6
- 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 +60 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +15 -6
- 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 +61 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +15 -6
- 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 +61 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +15 -6
- 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 +68 -11
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +19 -7
- 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 +68 -11
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +19 -7
- 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/OrderSumOrderByAggregateInput.cjs +26 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts +6 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.cjs +65 -9
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +17 -6
- 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 +65 -9
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +17 -6
- 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 +65 -9
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +17 -6
- 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 +65 -9
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +17 -6
- 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 +65 -9
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +17 -6
- 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 +68 -11
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +19 -7
- 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 +65 -9
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +17 -6
- 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/inputs/index.cjs +30 -9
- package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +10 -0
- package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.cjs +66 -11
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +16 -7
- 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/OrderAvgAggregate.cjs +26 -2
- package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts +6 -2
- package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.cjs +60 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +15 -6
- 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 +66 -11
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +16 -7
- 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 +62 -7
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +16 -7
- 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 +62 -7
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +16 -7
- 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/outputs/OrderSumAggregate.cjs +26 -2
- package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts +6 -2
- package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.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 +90 -36
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +215 -71
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +249 -81
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +215 -71
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +215 -71
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +90 -36
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +90 -36
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +90 -36
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +249 -81
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +205 -67
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +408 -126
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +90 -36
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +567 -171
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +249 -81
- 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 +51 -19
- 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 +51 -19
- 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 +51 -19
- 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 +51 -19
- 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 +51 -19
- 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 +51 -19
- 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 +51 -19
- 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 +52 -20
- 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 +51 -19
- 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 +51 -19
- package/server/generated/typeStrings/enums.d.ts +15 -4
- package/server/generated/typeStrings/enums.d.ts.map +1 -1
- package/server/generated/typeStrings/enums.js.map +1 -1
- package/server/generated/typeStrings/enums.mjs +15 -2
- package/server/generated/typeStrings/index.d.ts +10 -10
- package/server/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +46 -36
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +15 -6
- 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 +15 -6
- package/server/generated/typegraphql-prisma/enums/OrderStatus.d.ts +5 -3
- package/server/generated/typegraphql-prisma/enums/OrderStatus.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enums/OrderStatus.js.map +1 -1
- package/server/generated/typegraphql-prisma/enums/OrderStatus.mjs +4 -2
- package/server/generated/typegraphql-prisma/enums/OrderType.d.ts +2 -1
- package/server/generated/typegraphql-prisma/enums/OrderType.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enums/OrderType.js.map +1 -1
- package/server/generated/typegraphql-prisma/enums/OrderType.mjs +1 -0
- package/server/generated/typegraphql-prisma/enums/TimeInForce.d.ts +10 -0
- package/server/generated/typegraphql-prisma/enums/TimeInForce.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/enums/TimeInForce.js.map +1 -0
- package/server/generated/typegraphql-prisma/enums/TimeInForce.mjs +16 -0
- package/server/generated/typegraphql-prisma/enums/index.d.ts +1 -0
- package/server/generated/typegraphql-prisma/enums/index.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enums/index.js.map +1 -1
- package/server/generated/typegraphql-prisma/enums/index.mjs +1 -0
- package/server/generated/typegraphql-prisma/models/Order.d.ts +52 -13
- 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 +135 -31
- 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/BoolNullableFilter.d.ts +6 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.mjs +32 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.d.ts +11 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.mjs +55 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.d.ts +3 -3
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.d.ts +3 -3
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.d.ts +3 -3
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.d.ts +3 -3
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.d.ts +4 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.mjs +25 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.d.ts +8 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.mjs +47 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.d.ts +13 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.mjs +70 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.d.ts +5 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.mjs +31 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.d.ts +10 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.mjs +54 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.d.ts +3 -3
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.d.ts +3 -3
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.d.ts +3 -3
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.d.ts +3 -3
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.d.ts +7 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.mjs +46 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.d.ts +12 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.mjs +69 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.d.ts +4 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.mjs +24 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts +6 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.mjs +32 -4
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +15 -6
- 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 +75 -12
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +15 -6
- 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 +79 -15
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +16 -7
- 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 +81 -17
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +16 -7
- 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 +81 -17
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +16 -7
- 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 +81 -17
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +15 -6
- 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 +79 -15
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +15 -6
- 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 +79 -15
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +15 -6
- 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 +79 -15
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +15 -6
- 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 +75 -12
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +15 -6
- 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 +75 -12
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +15 -6
- 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 +76 -13
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +15 -6
- 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 +76 -13
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +19 -7
- 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 +83 -17
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +19 -7
- 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 +83 -17
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts +6 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.mjs +32 -4
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +17 -6
- 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 +79 -14
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +17 -6
- 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 +79 -14
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +17 -6
- 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 +79 -14
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +17 -6
- 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 +79 -14
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +17 -6
- 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 +79 -14
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +19 -7
- 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 +83 -17
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +17 -6
- 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 +79 -14
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +10 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.mjs +10 -0
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +16 -7
- 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 +81 -17
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts +6 -2
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.mjs +32 -4
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +15 -6
- 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 +75 -12
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +16 -7
- 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 +81 -17
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +16 -7
- 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 +77 -13
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +16 -7
- 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 +77 -13
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts +6 -2
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.mjs +32 -4
- 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
@@ -205,23 +205,36 @@ export type User = {
|
|
205
205
|
alpacaAccounts: AlpacaAccount[];
|
206
206
|
}
|
207
207
|
|
208
|
+
export enum OrderSide {
|
209
|
+
BUY = "BUY",
|
210
|
+
SELL = "SELL"
|
211
|
+
}
|
212
|
+
|
208
213
|
export enum OrderType {
|
209
214
|
MARKET = "MARKET",
|
210
215
|
LIMIT = "LIMIT",
|
211
216
|
STOP = "STOP",
|
212
|
-
STOP_LIMIT = "STOP_LIMIT"
|
217
|
+
STOP_LIMIT = "STOP_LIMIT",
|
218
|
+
TRAILING_STOP = "TRAILING_STOP"
|
213
219
|
}
|
214
220
|
|
215
|
-
|
216
|
-
|
217
|
-
|
221
|
+
// Time in force enum (day, gtc, opg, cls, etc.).
|
222
|
+
export enum TimeInForce {
|
223
|
+
DAY = "DAY",
|
224
|
+
GTC = "GTC",
|
225
|
+
OPG = "OPG",
|
226
|
+
CLS = "CLS",
|
227
|
+
IOC = "IOC",
|
228
|
+
FOK = "FOK"
|
218
229
|
}
|
219
230
|
|
220
231
|
export enum OrderStatus {
|
221
|
-
|
232
|
+
NEW = "NEW",
|
233
|
+
PARTIALLY_FILLED = "PARTIALLY_FILLED",
|
222
234
|
FILLED = "FILLED",
|
223
|
-
|
224
|
-
REJECTED = "REJECTED"
|
235
|
+
CANCELED = "CANCELED",
|
236
|
+
REJECTED = "REJECTED",
|
237
|
+
EXPIRED = "EXPIRED"
|
225
238
|
}
|
226
239
|
|
227
240
|
export type Order = {
|
@@ -229,21 +242,40 @@ export type Order = {
|
|
229
242
|
alpacaAccountId: string;
|
230
243
|
// Reference to the asset being ordered.
|
231
244
|
assetId: string;
|
232
|
-
//
|
233
|
-
|
234
|
-
//
|
235
|
-
|
245
|
+
// Symbol of the asset (ticker symbol).
|
246
|
+
symbol: string;
|
247
|
+
// Quantity of the asset to be ordered.
|
248
|
+
qty?: number;
|
249
|
+
// Notional value of the order. Optional, used if qty is not provided.
|
250
|
+
notional?: number;
|
236
251
|
// Side of the order (BUY or SELL).
|
237
252
|
side: OrderSide;
|
238
|
-
//
|
239
|
-
|
240
|
-
//
|
241
|
-
|
242
|
-
|
243
|
-
|
253
|
+
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
254
|
+
type: OrderType;
|
255
|
+
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
256
|
+
timeInForce: TimeInForce;
|
257
|
+
// Limit price for limit or stop-limit orders.
|
258
|
+
limitPrice?: number;
|
259
|
+
// Stop price for stop or stop-limit orders.
|
260
|
+
stopPrice?: number;
|
261
|
+
// Trailing price for trailing stop orders.
|
262
|
+
trailPrice?: number;
|
263
|
+
// Trailing percent for trailing stop orders.
|
264
|
+
trailPercent?: number;
|
265
|
+
// Whether the order is eligible for extended hours.
|
266
|
+
extendedHours?: boolean;
|
267
|
+
// Client-supplied identifier for the order.
|
268
|
+
clientOrderId?: string;
|
269
|
+
// Current status of the order.
|
244
270
|
status: OrderStatus;
|
245
|
-
// Timestamp when the
|
246
|
-
|
271
|
+
// Timestamp when the order was submitted.
|
272
|
+
submittedAt?: Date;
|
273
|
+
// Timestamp when the order was filled.
|
274
|
+
filledAt?: Date;
|
275
|
+
// Average price at which the order was filled.
|
276
|
+
filledAvgPrice?: number;
|
277
|
+
// Reference to the action associated with the order.
|
278
|
+
actionId: string;
|
247
279
|
// The Alpaca account this order is associated with.
|
248
280
|
alpacaAccount: AlpacaAccount;
|
249
281
|
// The action this order is associated with.
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const AuthenticatorTypeString = "\nYour response should adhere to the following type definition for the \"Authenticator\" type, and its nested object types (which include '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 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 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 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 enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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 OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\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 // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\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 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\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 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\n";
|
1
|
+
export declare const AuthenticatorTypeString = "\nYour response should adhere to the following type definition for the \"Authenticator\" type, and its nested object types (which include '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 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 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 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 enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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 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 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\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 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\n";
|
2
2
|
//# sourceMappingURL=Authenticator.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
1
|
+
{"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,k8TA6UnC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG
|
1
|
+
{"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6UtC,CAAC"}
|
@@ -135,23 +135,36 @@ export type Trade = {
|
|
135
135
|
actions: Action[];
|
136
136
|
}
|
137
137
|
|
138
|
+
export enum OrderSide {
|
139
|
+
BUY = "BUY",
|
140
|
+
SELL = "SELL"
|
141
|
+
}
|
142
|
+
|
138
143
|
export enum OrderType {
|
139
144
|
MARKET = "MARKET",
|
140
145
|
LIMIT = "LIMIT",
|
141
146
|
STOP = "STOP",
|
142
|
-
STOP_LIMIT = "STOP_LIMIT"
|
147
|
+
STOP_LIMIT = "STOP_LIMIT",
|
148
|
+
TRAILING_STOP = "TRAILING_STOP"
|
143
149
|
}
|
144
150
|
|
145
|
-
|
146
|
-
|
147
|
-
|
151
|
+
// Time in force enum (day, gtc, opg, cls, etc.).
|
152
|
+
export enum TimeInForce {
|
153
|
+
DAY = "DAY",
|
154
|
+
GTC = "GTC",
|
155
|
+
OPG = "OPG",
|
156
|
+
CLS = "CLS",
|
157
|
+
IOC = "IOC",
|
158
|
+
FOK = "FOK"
|
148
159
|
}
|
149
160
|
|
150
161
|
export enum OrderStatus {
|
151
|
-
|
162
|
+
NEW = "NEW",
|
163
|
+
PARTIALLY_FILLED = "PARTIALLY_FILLED",
|
152
164
|
FILLED = "FILLED",
|
153
|
-
|
154
|
-
REJECTED = "REJECTED"
|
165
|
+
CANCELED = "CANCELED",
|
166
|
+
REJECTED = "REJECTED",
|
167
|
+
EXPIRED = "EXPIRED"
|
155
168
|
}
|
156
169
|
|
157
170
|
export type Order = {
|
@@ -159,21 +172,40 @@ export type Order = {
|
|
159
172
|
alpacaAccountId: string;
|
160
173
|
// Reference to the asset being ordered.
|
161
174
|
assetId: string;
|
162
|
-
//
|
163
|
-
|
164
|
-
//
|
165
|
-
|
175
|
+
// Symbol of the asset (ticker symbol).
|
176
|
+
symbol: string;
|
177
|
+
// Quantity of the asset to be ordered.
|
178
|
+
qty?: number;
|
179
|
+
// Notional value of the order. Optional, used if qty is not provided.
|
180
|
+
notional?: number;
|
166
181
|
// Side of the order (BUY or SELL).
|
167
182
|
side: OrderSide;
|
168
|
-
//
|
169
|
-
|
170
|
-
//
|
171
|
-
|
172
|
-
|
173
|
-
|
183
|
+
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
184
|
+
type: OrderType;
|
185
|
+
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
186
|
+
timeInForce: TimeInForce;
|
187
|
+
// Limit price for limit or stop-limit orders.
|
188
|
+
limitPrice?: number;
|
189
|
+
// Stop price for stop or stop-limit orders.
|
190
|
+
stopPrice?: number;
|
191
|
+
// Trailing price for trailing stop orders.
|
192
|
+
trailPrice?: number;
|
193
|
+
// Trailing percent for trailing stop orders.
|
194
|
+
trailPercent?: number;
|
195
|
+
// Whether the order is eligible for extended hours.
|
196
|
+
extendedHours?: boolean;
|
197
|
+
// Client-supplied identifier for the order.
|
198
|
+
clientOrderId?: string;
|
199
|
+
// Current status of the order.
|
174
200
|
status: OrderStatus;
|
175
|
-
// Timestamp when the
|
176
|
-
|
201
|
+
// Timestamp when the order was submitted.
|
202
|
+
submittedAt?: Date;
|
203
|
+
// Timestamp when the order was filled.
|
204
|
+
filledAt?: Date;
|
205
|
+
// Average price at which the order was filled.
|
206
|
+
filledAvgPrice?: number;
|
207
|
+
// Reference to the action associated with the order.
|
208
|
+
actionId: string;
|
177
209
|
// The Alpaca account this order is associated with.
|
178
210
|
alpacaAccount: AlpacaAccount;
|
179
211
|
// The action this order is associated with.
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type, and its nested object types (which include 'User' type), as well as any ENUMS used by it (which include 'SubscriptionPlan' 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 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 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 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 enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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 OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\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 // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\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 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\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 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\n";
|
1
|
+
export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type, and its nested object types (which include 'User' type), as well as any ENUMS used by it (which include 'SubscriptionPlan' 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 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 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 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 enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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 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 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\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 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\n";
|
2
2
|
//# sourceMappingURL=Customer.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,
|
1
|
+
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,sgUA6U9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG
|
1
|
+
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6UjC,CAAC"}
|
@@ -135,23 +135,36 @@ export type Trade = {
|
|
135
135
|
actions: Action[];
|
136
136
|
}
|
137
137
|
|
138
|
+
export enum OrderSide {
|
139
|
+
BUY = "BUY",
|
140
|
+
SELL = "SELL"
|
141
|
+
}
|
142
|
+
|
138
143
|
export enum OrderType {
|
139
144
|
MARKET = "MARKET",
|
140
145
|
LIMIT = "LIMIT",
|
141
146
|
STOP = "STOP",
|
142
|
-
STOP_LIMIT = "STOP_LIMIT"
|
147
|
+
STOP_LIMIT = "STOP_LIMIT",
|
148
|
+
TRAILING_STOP = "TRAILING_STOP"
|
143
149
|
}
|
144
150
|
|
145
|
-
|
146
|
-
|
147
|
-
|
151
|
+
// Time in force enum (day, gtc, opg, cls, etc.).
|
152
|
+
export enum TimeInForce {
|
153
|
+
DAY = "DAY",
|
154
|
+
GTC = "GTC",
|
155
|
+
OPG = "OPG",
|
156
|
+
CLS = "CLS",
|
157
|
+
IOC = "IOC",
|
158
|
+
FOK = "FOK"
|
148
159
|
}
|
149
160
|
|
150
161
|
export enum OrderStatus {
|
151
|
-
|
162
|
+
NEW = "NEW",
|
163
|
+
PARTIALLY_FILLED = "PARTIALLY_FILLED",
|
152
164
|
FILLED = "FILLED",
|
153
|
-
|
154
|
-
REJECTED = "REJECTED"
|
165
|
+
CANCELED = "CANCELED",
|
166
|
+
REJECTED = "REJECTED",
|
167
|
+
EXPIRED = "EXPIRED"
|
155
168
|
}
|
156
169
|
|
157
170
|
export type Order = {
|
@@ -159,21 +172,40 @@ export type Order = {
|
|
159
172
|
alpacaAccountId: string;
|
160
173
|
// Reference to the asset being ordered.
|
161
174
|
assetId: string;
|
162
|
-
//
|
163
|
-
|
164
|
-
//
|
165
|
-
|
175
|
+
// Symbol of the asset (ticker symbol).
|
176
|
+
symbol: string;
|
177
|
+
// Quantity of the asset to be ordered.
|
178
|
+
qty?: number;
|
179
|
+
// Notional value of the order. Optional, used if qty is not provided.
|
180
|
+
notional?: number;
|
166
181
|
// Side of the order (BUY or SELL).
|
167
182
|
side: OrderSide;
|
168
|
-
//
|
169
|
-
|
170
|
-
//
|
171
|
-
|
172
|
-
|
173
|
-
|
183
|
+
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
184
|
+
type: OrderType;
|
185
|
+
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
186
|
+
timeInForce: TimeInForce;
|
187
|
+
// Limit price for limit or stop-limit orders.
|
188
|
+
limitPrice?: number;
|
189
|
+
// Stop price for stop or stop-limit orders.
|
190
|
+
stopPrice?: number;
|
191
|
+
// Trailing price for trailing stop orders.
|
192
|
+
trailPrice?: number;
|
193
|
+
// Trailing percent for trailing stop orders.
|
194
|
+
trailPercent?: number;
|
195
|
+
// Whether the order is eligible for extended hours.
|
196
|
+
extendedHours?: boolean;
|
197
|
+
// Client-supplied identifier for the order.
|
198
|
+
clientOrderId?: string;
|
199
|
+
// Current status of the order.
|
174
200
|
status: OrderStatus;
|
175
|
-
// Timestamp when the
|
176
|
-
|
201
|
+
// Timestamp when the order was submitted.
|
202
|
+
submittedAt?: Date;
|
203
|
+
// Timestamp when the order was filled.
|
204
|
+
filledAt?: Date;
|
205
|
+
// Average price at which the order was filled.
|
206
|
+
filledAvgPrice?: number;
|
207
|
+
// Reference to the action associated with the order.
|
208
|
+
actionId: string;
|
177
209
|
// The Alpaca account this order is associated with.
|
178
210
|
alpacaAccount: AlpacaAccount;
|
179
211
|
// The action this order is associated with.
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" type, and its nested object types (which include '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 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 // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\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 TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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 OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\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 // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\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 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 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\n";
|
1
|
+
export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" type, and its nested object types (which include '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 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 // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\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 TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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 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 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 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\n";
|
2
2
|
//# sourceMappingURL=NewsArticle.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,
|
1
|
+
{"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,yzWA2WjC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG
|
1
|
+
{"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2WpC,CAAC"}
|
@@ -103,23 +103,36 @@ export type Trade = {
|
|
103
103
|
actions: Action[];
|
104
104
|
}
|
105
105
|
|
106
|
+
export enum OrderSide {
|
107
|
+
BUY = "BUY",
|
108
|
+
SELL = "SELL"
|
109
|
+
}
|
110
|
+
|
106
111
|
export enum OrderType {
|
107
112
|
MARKET = "MARKET",
|
108
113
|
LIMIT = "LIMIT",
|
109
114
|
STOP = "STOP",
|
110
|
-
STOP_LIMIT = "STOP_LIMIT"
|
115
|
+
STOP_LIMIT = "STOP_LIMIT",
|
116
|
+
TRAILING_STOP = "TRAILING_STOP"
|
111
117
|
}
|
112
118
|
|
113
|
-
|
114
|
-
|
115
|
-
|
119
|
+
// Time in force enum (day, gtc, opg, cls, etc.).
|
120
|
+
export enum TimeInForce {
|
121
|
+
DAY = "DAY",
|
122
|
+
GTC = "GTC",
|
123
|
+
OPG = "OPG",
|
124
|
+
CLS = "CLS",
|
125
|
+
IOC = "IOC",
|
126
|
+
FOK = "FOK"
|
116
127
|
}
|
117
128
|
|
118
129
|
export enum OrderStatus {
|
119
|
-
|
130
|
+
NEW = "NEW",
|
131
|
+
PARTIALLY_FILLED = "PARTIALLY_FILLED",
|
120
132
|
FILLED = "FILLED",
|
121
|
-
|
122
|
-
REJECTED = "REJECTED"
|
133
|
+
CANCELED = "CANCELED",
|
134
|
+
REJECTED = "REJECTED",
|
135
|
+
EXPIRED = "EXPIRED"
|
123
136
|
}
|
124
137
|
|
125
138
|
export type Order = {
|
@@ -127,21 +140,40 @@ export type Order = {
|
|
127
140
|
alpacaAccountId: string;
|
128
141
|
// Reference to the asset being ordered.
|
129
142
|
assetId: string;
|
130
|
-
//
|
131
|
-
|
132
|
-
//
|
133
|
-
|
143
|
+
// Symbol of the asset (ticker symbol).
|
144
|
+
symbol: string;
|
145
|
+
// Quantity of the asset to be ordered.
|
146
|
+
qty?: number;
|
147
|
+
// Notional value of the order. Optional, used if qty is not provided.
|
148
|
+
notional?: number;
|
134
149
|
// Side of the order (BUY or SELL).
|
135
150
|
side: OrderSide;
|
136
|
-
//
|
137
|
-
|
138
|
-
//
|
139
|
-
|
140
|
-
|
141
|
-
|
151
|
+
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
152
|
+
type: OrderType;
|
153
|
+
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
154
|
+
timeInForce: TimeInForce;
|
155
|
+
// Limit price for limit or stop-limit orders.
|
156
|
+
limitPrice?: number;
|
157
|
+
// Stop price for stop or stop-limit orders.
|
158
|
+
stopPrice?: number;
|
159
|
+
// Trailing price for trailing stop orders.
|
160
|
+
trailPrice?: number;
|
161
|
+
// Trailing percent for trailing stop orders.
|
162
|
+
trailPercent?: number;
|
163
|
+
// Whether the order is eligible for extended hours.
|
164
|
+
extendedHours?: boolean;
|
165
|
+
// Client-supplied identifier for the order.
|
166
|
+
clientOrderId?: string;
|
167
|
+
// Current status of the order.
|
142
168
|
status: OrderStatus;
|
143
|
-
// Timestamp when the
|
144
|
-
|
169
|
+
// Timestamp when the order was submitted.
|
170
|
+
submittedAt?: Date;
|
171
|
+
// Timestamp when the order was filled.
|
172
|
+
filledAt?: Date;
|
173
|
+
// Average price at which the order was filled.
|
174
|
+
filledAvgPrice?: number;
|
175
|
+
// Reference to the action associated with the order.
|
176
|
+
actionId: string;
|
145
177
|
// The Alpaca account this order is associated with.
|
146
178
|
alpacaAccount: AlpacaAccount;
|
147
179
|
// The action this order is associated with.
|