adaptic-backend 1.0.164 → 1.0.165
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/AlpacaAccount.cjs +3 -75
- package/Position.cjs +3 -109
- package/User.cjs +3 -12
- package/generated/typeStrings/Action.cjs +2 -2
- package/generated/typeStrings/Action.d.ts +1 -1
- package/generated/typeStrings/Action.d.ts.map +1 -1
- package/generated/typeStrings/AlpacaAccount.cjs +2 -2
- package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/generated/typeStrings/Asset.cjs +2 -2
- package/generated/typeStrings/Asset.d.ts +1 -1
- package/generated/typeStrings/Asset.d.ts.map +1 -1
- package/generated/typeStrings/Customer.cjs +2 -2
- package/generated/typeStrings/Customer.d.ts +1 -1
- package/generated/typeStrings/Customer.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.cjs +2 -2
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/generated/typeStrings/Order.cjs +2 -2
- package/generated/typeStrings/Order.d.ts +1 -1
- package/generated/typeStrings/Order.d.ts.map +1 -1
- package/generated/typeStrings/Position.cjs +2 -2
- package/generated/typeStrings/Position.d.ts +1 -1
- package/generated/typeStrings/Position.d.ts.map +1 -1
- package/generated/typeStrings/Session.cjs +2 -2
- package/generated/typeStrings/Session.d.ts +1 -1
- package/generated/typeStrings/Session.d.ts.map +1 -1
- package/generated/typeStrings/StopLoss.cjs +2 -2
- package/generated/typeStrings/StopLoss.d.ts +1 -1
- package/generated/typeStrings/StopLoss.d.ts.map +1 -1
- package/generated/typeStrings/TakeProfit.cjs +2 -2
- package/generated/typeStrings/TakeProfit.d.ts +1 -1
- package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
- package/generated/typeStrings/Trade.cjs +4 -4
- package/generated/typeStrings/Trade.d.ts +1 -1
- package/generated/typeStrings/Trade.d.ts.map +1 -1
- package/generated/typeStrings/User.cjs +2 -2
- package/generated/typeStrings/User.d.ts +1 -1
- package/generated/typeStrings/User.d.ts.map +1 -1
- package/generated/typeStrings/index.d.ts +12 -12
- package/generated/typegraphql-prisma/models/Asset.cjs +2 -2
- package/generated/typegraphql-prisma/models/Asset.d.ts +2 -2
- package/generated/typegraphql-prisma/models/Asset.js.map +1 -1
- package/generated/typegraphql-prisma/models/Position.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.js.map +1 -1
- package/package.json +1 -1
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +3 -75
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +3 -109
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +3 -12
- package/server/generated/selectionSets/AlpacaAccount.d.ts +1 -1
- package/server/generated/selectionSets/AlpacaAccount.d.ts.map +1 -1
- package/server/generated/selectionSets/AlpacaAccount.js.map +1 -1
- package/server/generated/selectionSets/AlpacaAccount.mjs +3 -75
- package/server/generated/selectionSets/Position.d.ts +1 -1
- package/server/generated/selectionSets/Position.d.ts.map +1 -1
- package/server/generated/selectionSets/Position.js.map +1 -1
- package/server/generated/selectionSets/Position.mjs +3 -109
- package/server/generated/selectionSets/User.d.ts +1 -1
- package/server/generated/selectionSets/User.d.ts.map +1 -1
- package/server/generated/selectionSets/User.js.map +1 -1
- package/server/generated/selectionSets/User.mjs +3 -12
- package/server/generated/typeStrings/Action.d.ts +1 -1
- package/server/generated/typeStrings/Action.d.ts.map +1 -1
- package/server/generated/typeStrings/Action.mjs +2 -2
- package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.mjs +2 -2
- package/server/generated/typeStrings/Asset.d.ts +1 -1
- package/server/generated/typeStrings/Asset.d.ts.map +1 -1
- package/server/generated/typeStrings/Asset.mjs +2 -2
- package/server/generated/typeStrings/Customer.d.ts +1 -1
- package/server/generated/typeStrings/Customer.d.ts.map +1 -1
- package/server/generated/typeStrings/Customer.mjs +2 -2
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +2 -2
- package/server/generated/typeStrings/Order.d.ts +1 -1
- package/server/generated/typeStrings/Order.d.ts.map +1 -1
- package/server/generated/typeStrings/Order.mjs +2 -2
- package/server/generated/typeStrings/Position.d.ts +1 -1
- package/server/generated/typeStrings/Position.d.ts.map +1 -1
- package/server/generated/typeStrings/Position.mjs +2 -2
- package/server/generated/typeStrings/Session.d.ts +1 -1
- package/server/generated/typeStrings/Session.d.ts.map +1 -1
- package/server/generated/typeStrings/Session.mjs +2 -2
- package/server/generated/typeStrings/StopLoss.d.ts +1 -1
- package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
- package/server/generated/typeStrings/StopLoss.mjs +2 -2
- package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
- package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
- package/server/generated/typeStrings/TakeProfit.mjs +2 -2
- package/server/generated/typeStrings/Trade.d.ts +1 -1
- package/server/generated/typeStrings/Trade.d.ts.map +1 -1
- package/server/generated/typeStrings/Trade.mjs +4 -4
- package/server/generated/typeStrings/User.d.ts +1 -1
- package/server/generated/typeStrings/User.d.ts.map +1 -1
- package/server/generated/typeStrings/User.mjs +2 -2
- package/server/generated/typeStrings/index.d.ts +12 -12
- package/server/generated/typegraphql-prisma/models/Asset.d.ts +2 -2
- package/server/generated/typegraphql-prisma/models/Asset.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/Asset.mjs +4 -4
- package/server/generated/typegraphql-prisma/models/Position.d.ts +1 -1
- package/server/generated/typegraphql-prisma/models/Position.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.mjs +1 -1
package/server/User.mjs
CHANGED
@@ -301,6 +301,9 @@ id
|
|
301
301
|
assetId
|
302
302
|
asset {
|
303
303
|
id
|
304
|
+
symbol
|
305
|
+
name
|
306
|
+
type
|
304
307
|
logoUrl
|
305
308
|
description
|
306
309
|
cik
|
@@ -355,18 +358,6 @@ id
|
|
355
358
|
bidPrice
|
356
359
|
createdAt
|
357
360
|
updatedAt
|
358
|
-
trades {
|
359
|
-
id
|
360
|
-
}
|
361
|
-
orders {
|
362
|
-
id
|
363
|
-
}
|
364
|
-
positions {
|
365
|
-
id
|
366
|
-
}
|
367
|
-
newsMentions {
|
368
|
-
id
|
369
|
-
}
|
370
361
|
}
|
371
362
|
averageEntryPrice
|
372
363
|
qty
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const AlpacaAccount = "\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n minOrderSize\n maxOrderSize\n minPercentageChange\n volumeThreshold\n user {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n role\n bio\n jobTitle\n currentAccount\n customer {\n id\n authUserId\n name\n plan\n stripeCustomerId\n stripeSubscriptionId\n stripePriceId\n stripeCurrentPeriodEnd\n createdAt\n updatedAt\n }\n customerId\n accounts {\n id\n userId\n type\n provider\n providerAccountId\n refresh_token\n access_token\n expires_at\n token_type\n scope\n id_token\n session_state\n createdAt\n updatedAt\n }\n sessions {\n id\n sessionToken\n userId\n expires\n createdAt\n updatedAt\n }\n authenticators {\n id\n userId\n credentialID\n publicKey\n counter\n createdAt\n updatedAt\n }\n plan\n openaiAPIKey\n openaiModel\n }\n userId\n createdAt\n updatedAt\n trades {\n id\n alpacaAccountId\n assetId\n qty\n price\n total\n optionType\n signal\n strategy\n analysis\n summary\n confidence\n timestamp\n createdAt\n updatedAt\n status\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n newsMentions {\n id\n assetId\n newsArticleId\n url\n news {\nid\n }\n relevancyScore\n sentimentScore\n sentimentLabel\n }\n }\n actions {\n id\n sequence\n tradeId\n type\n note\n status\n fee\n order {\n id\n clientOrderId\n alpacaAccountId\n assetId\n qty\n notional\n side\n type\n orderClass\n timeInForce\n limitPrice\n stopPrice\n stopLoss {\nid\n }\n takeProfit {\nid\n }\n trailPrice\n trailPercent\n extendedHours\n status\n createdAt\n updatedAt\n submittedAt\n filledAt\n filledQty\n filledAvgPrice\n cancelRequestedAt\n canceledAt\n actionId\n asset {\nid\n }\n fee\n strikePrice\n expirationDate\n optionType\n stopLossId\n takeProfitId\n }\n }\n }\n orders {\n id\n clientOrderId\n alpacaAccountId\n assetId\n qty\n notional\n side\n type\n orderClass\n timeInForce\n limitPrice\n stopPrice\n stopLoss {\n id\n stopPrice\n limitPrice\n createdAt\n updatedAt\n orderId\n }\n takeProfit {\n id\n limitPrice\n stopPrice\n createdAt\n updatedAt\n orderId\n }\n trailPrice\n trailPercent\n extendedHours\n status\n createdAt\n updatedAt\n submittedAt\n filledAt\n filledQty\n filledAvgPrice\n cancelRequestedAt\n canceledAt\n actionId\n action {\n id\n sequence\n tradeId\n type\n note\n status\n fee\n }\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n trades {\n id\n alpacaAccountId\n assetId\n qty\n price\n total\n optionType\n signal\n strategy\n analysis\n summary\n confidence\n timestamp\n createdAt\n updatedAt\n status\n actions {\nid\n }\n }\n orders {\nid\n }\n }\n fee\n strikePrice\n expirationDate\n optionType\n stopLossId\n takeProfitId\n }\n positions {\n id\n assetId\n asset {\n id\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n
|
1
|
+
export declare const AlpacaAccount = "\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n minOrderSize\n maxOrderSize\n minPercentageChange\n volumeThreshold\n user {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n role\n bio\n jobTitle\n currentAccount\n customer {\n id\n authUserId\n name\n plan\n stripeCustomerId\n stripeSubscriptionId\n stripePriceId\n stripeCurrentPeriodEnd\n createdAt\n updatedAt\n }\n customerId\n accounts {\n id\n userId\n type\n provider\n providerAccountId\n refresh_token\n access_token\n expires_at\n token_type\n scope\n id_token\n session_state\n createdAt\n updatedAt\n }\n sessions {\n id\n sessionToken\n userId\n expires\n createdAt\n updatedAt\n }\n authenticators {\n id\n userId\n credentialID\n publicKey\n counter\n createdAt\n updatedAt\n }\n plan\n openaiAPIKey\n openaiModel\n }\n userId\n createdAt\n updatedAt\n trades {\n id\n alpacaAccountId\n assetId\n qty\n price\n total\n optionType\n signal\n strategy\n analysis\n summary\n confidence\n timestamp\n createdAt\n updatedAt\n status\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n newsMentions {\n id\n assetId\n newsArticleId\n url\n news {\nid\n }\n relevancyScore\n sentimentScore\n sentimentLabel\n }\n }\n actions {\n id\n sequence\n tradeId\n type\n note\n status\n fee\n order {\n id\n clientOrderId\n alpacaAccountId\n assetId\n qty\n notional\n side\n type\n orderClass\n timeInForce\n limitPrice\n stopPrice\n stopLoss {\nid\n }\n takeProfit {\nid\n }\n trailPrice\n trailPercent\n extendedHours\n status\n createdAt\n updatedAt\n submittedAt\n filledAt\n filledQty\n filledAvgPrice\n cancelRequestedAt\n canceledAt\n actionId\n asset {\nid\n }\n fee\n strikePrice\n expirationDate\n optionType\n stopLossId\n takeProfitId\n }\n }\n }\n orders {\n id\n clientOrderId\n alpacaAccountId\n assetId\n qty\n notional\n side\n type\n orderClass\n timeInForce\n limitPrice\n stopPrice\n stopLoss {\n id\n stopPrice\n limitPrice\n createdAt\n updatedAt\n orderId\n }\n takeProfit {\n id\n limitPrice\n stopPrice\n createdAt\n updatedAt\n orderId\n }\n trailPrice\n trailPercent\n extendedHours\n status\n createdAt\n updatedAt\n submittedAt\n filledAt\n filledQty\n filledAvgPrice\n cancelRequestedAt\n canceledAt\n actionId\n action {\n id\n sequence\n tradeId\n type\n note\n status\n fee\n }\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n trades {\n id\n alpacaAccountId\n assetId\n qty\n price\n total\n optionType\n signal\n strategy\n analysis\n summary\n confidence\n timestamp\n createdAt\n updatedAt\n status\n actions {\nid\n }\n }\n orders {\nid\n }\n }\n fee\n strikePrice\n expirationDate\n optionType\n stopLossId\n takeProfitId\n }\n positions {\n id\n assetId\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n }\n averageEntryPrice\n qty\n qtyAvailable\n marketValue\n costBasis\n unrealizedPL\n unrealizedPLPC\n unrealisedIntradayPL\n unrealisedIntradayPLPC\n currentPrice\n lastTradePrice\n changeToday\n assetMarginable\n alpacaAccountId\n }\n alerts {\n id\n alpacaAccountId\n message\n type\n isRead\n createdAt\n updatedAt\n }\n";
|
2
2
|
//# sourceMappingURL=AlpacaAccount.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
1
|
+
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,25OA8bzB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG
|
1
|
+
{"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8b5B,CAAC"}
|
@@ -362,6 +362,9 @@ id
|
|
362
362
|
assetId
|
363
363
|
asset {
|
364
364
|
id
|
365
|
+
symbol
|
366
|
+
name
|
367
|
+
type
|
365
368
|
logoUrl
|
366
369
|
description
|
367
370
|
cik
|
@@ -416,81 +419,6 @@ id
|
|
416
419
|
bidPrice
|
417
420
|
createdAt
|
418
421
|
updatedAt
|
419
|
-
trades {
|
420
|
-
id
|
421
|
-
alpacaAccountId
|
422
|
-
assetId
|
423
|
-
qty
|
424
|
-
price
|
425
|
-
total
|
426
|
-
optionType
|
427
|
-
signal
|
428
|
-
strategy
|
429
|
-
analysis
|
430
|
-
summary
|
431
|
-
confidence
|
432
|
-
timestamp
|
433
|
-
createdAt
|
434
|
-
updatedAt
|
435
|
-
status
|
436
|
-
actions {
|
437
|
-
id
|
438
|
-
}
|
439
|
-
}
|
440
|
-
orders {
|
441
|
-
id
|
442
|
-
clientOrderId
|
443
|
-
alpacaAccountId
|
444
|
-
assetId
|
445
|
-
qty
|
446
|
-
notional
|
447
|
-
side
|
448
|
-
type
|
449
|
-
orderClass
|
450
|
-
timeInForce
|
451
|
-
limitPrice
|
452
|
-
stopPrice
|
453
|
-
stopLoss {
|
454
|
-
id
|
455
|
-
}
|
456
|
-
takeProfit {
|
457
|
-
id
|
458
|
-
}
|
459
|
-
trailPrice
|
460
|
-
trailPercent
|
461
|
-
extendedHours
|
462
|
-
status
|
463
|
-
createdAt
|
464
|
-
updatedAt
|
465
|
-
submittedAt
|
466
|
-
filledAt
|
467
|
-
filledQty
|
468
|
-
filledAvgPrice
|
469
|
-
cancelRequestedAt
|
470
|
-
canceledAt
|
471
|
-
actionId
|
472
|
-
fee
|
473
|
-
strikePrice
|
474
|
-
expirationDate
|
475
|
-
optionType
|
476
|
-
stopLossId
|
477
|
-
takeProfitId
|
478
|
-
}
|
479
|
-
positions {
|
480
|
-
id
|
481
|
-
}
|
482
|
-
newsMentions {
|
483
|
-
id
|
484
|
-
assetId
|
485
|
-
newsArticleId
|
486
|
-
url
|
487
|
-
news {
|
488
|
-
id
|
489
|
-
}
|
490
|
-
relevancyScore
|
491
|
-
sentimentScore
|
492
|
-
sentimentLabel
|
493
|
-
}
|
494
422
|
}
|
495
423
|
averageEntryPrice
|
496
424
|
qty
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const Position = "\n id\n assetId\n asset {\n id\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n
|
1
|
+
export declare const Position = "\n id\n assetId\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n }\n averageEntryPrice\n qty\n qtyAvailable\n marketValue\n costBasis\n unrealizedPL\n unrealizedPLPC\n unrealisedIntradayPL\n unrealisedIntradayPLPC\n currentPrice\n lastTradePrice\n changeToday\n assetMarginable\n alpacaAccountId\n";
|
2
2
|
//# sourceMappingURL=Position.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,
|
1
|
+
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,gzCA6EpB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Position.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/Position.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG
|
1
|
+
{"version":3,"file":"Position.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/Position.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EvB,CAAC"}
|
@@ -3,6 +3,9 @@ export const Position = `
|
|
3
3
|
assetId
|
4
4
|
asset {
|
5
5
|
id
|
6
|
+
symbol
|
7
|
+
name
|
8
|
+
type
|
6
9
|
logoUrl
|
7
10
|
description
|
8
11
|
cik
|
@@ -57,115 +60,6 @@ export const Position = `
|
|
57
60
|
bidPrice
|
58
61
|
createdAt
|
59
62
|
updatedAt
|
60
|
-
trades {
|
61
|
-
id
|
62
|
-
alpacaAccountId
|
63
|
-
assetId
|
64
|
-
qty
|
65
|
-
price
|
66
|
-
total
|
67
|
-
optionType
|
68
|
-
signal
|
69
|
-
strategy
|
70
|
-
analysis
|
71
|
-
summary
|
72
|
-
confidence
|
73
|
-
timestamp
|
74
|
-
createdAt
|
75
|
-
updatedAt
|
76
|
-
status
|
77
|
-
actions {
|
78
|
-
id
|
79
|
-
sequence
|
80
|
-
tradeId
|
81
|
-
type
|
82
|
-
note
|
83
|
-
status
|
84
|
-
fee
|
85
|
-
order {
|
86
|
-
id
|
87
|
-
}
|
88
|
-
}
|
89
|
-
}
|
90
|
-
orders {
|
91
|
-
id
|
92
|
-
clientOrderId
|
93
|
-
alpacaAccountId
|
94
|
-
assetId
|
95
|
-
qty
|
96
|
-
notional
|
97
|
-
side
|
98
|
-
type
|
99
|
-
orderClass
|
100
|
-
timeInForce
|
101
|
-
limitPrice
|
102
|
-
stopPrice
|
103
|
-
stopLoss {
|
104
|
-
id
|
105
|
-
stopPrice
|
106
|
-
limitPrice
|
107
|
-
createdAt
|
108
|
-
updatedAt
|
109
|
-
orderId
|
110
|
-
}
|
111
|
-
takeProfit {
|
112
|
-
id
|
113
|
-
limitPrice
|
114
|
-
stopPrice
|
115
|
-
createdAt
|
116
|
-
updatedAt
|
117
|
-
orderId
|
118
|
-
}
|
119
|
-
trailPrice
|
120
|
-
trailPercent
|
121
|
-
extendedHours
|
122
|
-
status
|
123
|
-
createdAt
|
124
|
-
updatedAt
|
125
|
-
submittedAt
|
126
|
-
filledAt
|
127
|
-
filledQty
|
128
|
-
filledAvgPrice
|
129
|
-
cancelRequestedAt
|
130
|
-
canceledAt
|
131
|
-
actionId
|
132
|
-
fee
|
133
|
-
strikePrice
|
134
|
-
expirationDate
|
135
|
-
optionType
|
136
|
-
stopLossId
|
137
|
-
takeProfitId
|
138
|
-
}
|
139
|
-
positions {
|
140
|
-
id
|
141
|
-
}
|
142
|
-
newsMentions {
|
143
|
-
id
|
144
|
-
assetId
|
145
|
-
newsArticleId
|
146
|
-
url
|
147
|
-
news {
|
148
|
-
id
|
149
|
-
title
|
150
|
-
content
|
151
|
-
source
|
152
|
-
sourceDomain
|
153
|
-
url
|
154
|
-
sentiment
|
155
|
-
authors
|
156
|
-
summary
|
157
|
-
bannerImage
|
158
|
-
timePublished
|
159
|
-
category
|
160
|
-
topics
|
161
|
-
logo
|
162
|
-
createdAt
|
163
|
-
updatedAt
|
164
|
-
}
|
165
|
-
relevancyScore
|
166
|
-
sentimentScore
|
167
|
-
sentimentLabel
|
168
|
-
}
|
169
63
|
}
|
170
64
|
averageEntryPrice
|
171
65
|
qty
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const User = "\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n role\n bio\n jobTitle\n currentAccount\n customer {\n id\n authUserId\n name\n plan\n stripeCustomerId\n stripeSubscriptionId\n stripePriceId\n stripeCurrentPeriodEnd\n createdAt\n updatedAt\n }\n customerId\n accounts {\n id\n userId\n type\n provider\n providerAccountId\n refresh_token\n access_token\n expires_at\n token_type\n scope\n id_token\n session_state\n createdAt\n updatedAt\n }\n sessions {\n id\n sessionToken\n userId\n expires\n createdAt\n updatedAt\n }\n authenticators {\n id\n userId\n credentialID\n publicKey\n counter\n createdAt\n updatedAt\n }\n plan\n alpacaAccounts {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n minOrderSize\n maxOrderSize\n minPercentageChange\n volumeThreshold\n userId\n createdAt\n updatedAt\n trades {\n id\n alpacaAccountId\n assetId\n qty\n price\n total\n optionType\n signal\n strategy\n analysis\n summary\n confidence\n timestamp\n createdAt\n updatedAt\n status\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n newsMentions {\nid\n }\n }\n actions {\n id\n sequence\n tradeId\n type\n note\n status\n fee\n order {\nid\n }\n }\n }\n orders {\n id\n clientOrderId\n alpacaAccountId\n assetId\n qty\n notional\n side\n type\n orderClass\n timeInForce\n limitPrice\n stopPrice\n stopLoss {\n id\n stopPrice\n limitPrice\n createdAt\n updatedAt\n orderId\n }\n takeProfit {\n id\n limitPrice\n stopPrice\n createdAt\n updatedAt\n orderId\n }\n trailPrice\n trailPercent\n extendedHours\n status\n createdAt\n updatedAt\n submittedAt\n filledAt\n filledQty\n filledAvgPrice\n cancelRequestedAt\n canceledAt\n actionId\n action {\n id\n sequence\n tradeId\n type\n note\n status\n fee\n }\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n trades {\nid\n }\n orders {\nid\n }\n }\n fee\n strikePrice\n expirationDate\n optionType\n stopLossId\n takeProfitId\n }\n positions {\n id\n assetId\n asset {\n id\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n
|
1
|
+
export declare const User = "\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n role\n bio\n jobTitle\n currentAccount\n customer {\n id\n authUserId\n name\n plan\n stripeCustomerId\n stripeSubscriptionId\n stripePriceId\n stripeCurrentPeriodEnd\n createdAt\n updatedAt\n }\n customerId\n accounts {\n id\n userId\n type\n provider\n providerAccountId\n refresh_token\n access_token\n expires_at\n token_type\n scope\n id_token\n session_state\n createdAt\n updatedAt\n }\n sessions {\n id\n sessionToken\n userId\n expires\n createdAt\n updatedAt\n }\n authenticators {\n id\n userId\n credentialID\n publicKey\n counter\n createdAt\n updatedAt\n }\n plan\n alpacaAccounts {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n minOrderSize\n maxOrderSize\n minPercentageChange\n volumeThreshold\n userId\n createdAt\n updatedAt\n trades {\n id\n alpacaAccountId\n assetId\n qty\n price\n total\n optionType\n signal\n strategy\n analysis\n summary\n confidence\n timestamp\n createdAt\n updatedAt\n status\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n newsMentions {\nid\n }\n }\n actions {\n id\n sequence\n tradeId\n type\n note\n status\n fee\n order {\nid\n }\n }\n }\n orders {\n id\n clientOrderId\n alpacaAccountId\n assetId\n qty\n notional\n side\n type\n orderClass\n timeInForce\n limitPrice\n stopPrice\n stopLoss {\n id\n stopPrice\n limitPrice\n createdAt\n updatedAt\n orderId\n }\n takeProfit {\n id\n limitPrice\n stopPrice\n createdAt\n updatedAt\n orderId\n }\n trailPrice\n trailPercent\n extendedHours\n status\n createdAt\n updatedAt\n submittedAt\n filledAt\n filledQty\n filledAvgPrice\n cancelRequestedAt\n canceledAt\n actionId\n action {\n id\n sequence\n tradeId\n type\n note\n status\n fee\n }\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n trades {\nid\n }\n orders {\nid\n }\n }\n fee\n strikePrice\n expirationDate\n optionType\n stopLossId\n takeProfitId\n }\n positions {\n id\n assetId\n asset {\n id\n symbol\n name\n type\n logoUrl\n description\n cik\n exchange\n currency\n country\n sector\n industry\n address\n officialSite\n fiscalYearEnd\n latestQuarter\n marketCapitalization\n ebitda\n peRatio\n pegRatio\n bookValue\n dividendPerShare\n dividendYield\n eps\n revenuePerShareTTM\n profitMargin\n operatingMarginTTM\n returnOnAssetsTTM\n returnOnEquityTTM\n revenueTTM\n grossProfitTTM\n dilutedEPSTTM\n quarterlyEarningsGrowthYOY\n quarterlyRevenueGrowthYOY\n analystTargetPrice\n analystRatingStrongBuy\n analystRatingBuy\n analystRatingHold\n analystRatingSell\n analystRatingStrongSell\n trailingPE\n forwardPE\n priceToSalesRatioTTM\n priceToBookRatio\n evToRevenue\n evToEbitda\n beta\n week52High\n week52Low\n day50MovingAverage\n day200MovingAverage\n sharesOutstanding\n dividendDate\n exDividendDate\n askPrice\n bidPrice\n createdAt\n updatedAt\n }\n averageEntryPrice\n qty\n qtyAvailable\n marketValue\n costBasis\n unrealizedPL\n unrealizedPLPC\n unrealisedIntradayPL\n unrealisedIntradayPLPC\n currentPrice\n lastTradePrice\n changeToday\n assetMarginable\n alpacaAccountId\n }\n alerts {\n id\n alpacaAccountId\n message\n type\n isRead\n createdAt\n updatedAt\n }\n }\n openaiAPIKey\n openaiModel\n";
|
2
2
|
//# sourceMappingURL=User.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/User.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/User.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,wwNA4XhB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/User.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/User.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4XnB,CAAC"}
|
@@ -293,6 +293,9 @@ id
|
|
293
293
|
assetId
|
294
294
|
asset {
|
295
295
|
id
|
296
|
+
symbol
|
297
|
+
name
|
298
|
+
type
|
296
299
|
logoUrl
|
297
300
|
description
|
298
301
|
cik
|
@@ -347,18 +350,6 @@ id
|
|
347
350
|
bidPrice
|
348
351
|
createdAt
|
349
352
|
updatedAt
|
350
|
-
trades {
|
351
|
-
id
|
352
|
-
}
|
353
|
-
orders {
|
354
|
-
id
|
355
|
-
}
|
356
|
-
positions {
|
357
|
-
id
|
358
|
-
}
|
359
|
-
newsMentions {
|
360
|
-
id
|
361
|
-
}
|
362
353
|
}
|
363
354
|
averageEntryPrice
|
364
355
|
qty
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The order associated with this action.\n order?: {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be \u2265 base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be \u2264 basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice \u2264 market price (must be \u2264 base_price - 0.01). For BUY orders: stopPrice \u2265 market price (must be \u2265 base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset
|
1
|
+
export declare const ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The order associated with this action.\n order?: {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be \u2265 base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be \u2264 basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice \u2264 market price (must be \u2264 base_price - 0.01). For BUY orders: stopPrice \u2265 market price (must be \u2265 base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\n };\n};\nexport enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
|
2
2
|
//# sourceMappingURL=Action.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,myLAuL5B,CAAC"}
|
@@ -68,9 +68,9 @@ export type Action = {
|
|
68
68
|
canceledAt?: Date;
|
69
69
|
// The asset this order is for.
|
70
70
|
asset: {
|
71
|
-
// Ticker symbol of the asset
|
71
|
+
// Ticker symbol of the asset
|
72
72
|
symbol: string;
|
73
|
-
// Full name of the asset
|
73
|
+
// Full name of the asset
|
74
74
|
name: string;
|
75
75
|
// Type of the asset, defined by AssetType enum.
|
76
76
|
type: AssetType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
1
|
+
export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n};\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n";
|
2
2
|
//# sourceMappingURL=AlpacaAccount.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
1
|
+
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,g6EAgFnC,CAAC"}
|
@@ -14,9 +14,9 @@ export type AlpacaAccount = {
|
|
14
14
|
positions: {
|
15
15
|
// Relation to the Asset model.
|
16
16
|
asset: {
|
17
|
-
// Ticker symbol of the asset
|
17
|
+
// Ticker symbol of the asset
|
18
18
|
symbol: string;
|
19
|
-
// Full name of the asset
|
19
|
+
// Full name of the asset
|
20
20
|
name: string;
|
21
21
|
// Type of the asset, defined by AssetType enum.
|
22
22
|
type: AssetType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const AssetTypeString = "\nYour response should adhere to the following type definition for the \"Asset\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset
|
1
|
+
export declare const AssetTypeString = "\nYour response should adhere to the following type definition for the \"Asset\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n";
|
2
2
|
//# sourceMappingURL=Asset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
1
|
+
{"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,88BAqC3B,CAAC"}
|
@@ -4,9 +4,9 @@ Your response should adhere to the following type definition for the "Asset" typ
|
|
4
4
|
Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
|
5
5
|
|
6
6
|
export type Asset = {
|
7
|
-
// Ticker symbol of the asset
|
7
|
+
// Ticker symbol of the asset
|
8
8
|
symbol: string;
|
9
|
-
// Full name of the asset
|
9
|
+
// Full name of the asset
|
10
10
|
name: string;
|
11
11
|
// Type of the asset, defined by AssetType enum.
|
12
12
|
type: AssetType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
1
|
+
export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n }[];\n};\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
|
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,w/HAmI9B,CAAC"}
|
@@ -40,9 +40,9 @@ export type Customer = {
|
|
40
40
|
positions: {
|
41
41
|
// Relation to the Asset model.
|
42
42
|
asset: {
|
43
|
-
// Ticker symbol of the asset
|
43
|
+
// Ticker symbol of the asset
|
44
44
|
symbol: string;
|
45
|
-
// Full name of the asset
|
45
|
+
// Full name of the asset
|
46
46
|
name: string;
|
47
47
|
// Type of the asset, defined by AssetType enum.
|
48
48
|
type: AssetType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset
|
1
|
+
export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n};\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n";
|
2
2
|
//# sourceMappingURL=NewsArticleAssetSentiment.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,
|
1
|
+
{"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,y5CAgD/C,CAAC"}
|
@@ -8,9 +8,9 @@ export type NewsArticleAssetSentiment = {
|
|
8
8
|
url: string;
|
9
9
|
// Relation to the Asset model.
|
10
10
|
asset: {
|
11
|
-
// Ticker symbol of the asset
|
11
|
+
// Ticker symbol of the asset
|
12
12
|
symbol: string;
|
13
|
-
// Full name of the asset
|
13
|
+
// Full name of the asset
|
14
14
|
name: string;
|
15
15
|
// Type of the asset, defined by AssetType enum.
|
16
16
|
type: AssetType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const OrderTypeString = "\nYour response should adhere to the following type definition for the \"Order\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be \u2265 base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be \u2264 basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice \u2264 market price (must be \u2264 base_price - 0.01). For BUY orders: stopPrice \u2265 market price (must be \u2265 base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset
|
1
|
+
export declare const OrderTypeString = "\nYour response should adhere to the following type definition for the \"Order\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided. But importantly, either qty or notional must be provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be \u2265 base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders. It must be \u2264 basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice \u2264 market price (must be \u2264 base_price - 0.01). For BUY orders: stopPrice \u2265 market price (must be \u2265 base_price + 0.01).\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required for TRAILING_STOP orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Fee associated with the order.\n fee?: number;\n // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\n};\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
|
2
2
|
//# sourceMappingURL=Order.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
1
|
+
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,47JA0J3B,CAAC"}
|