Skip to content

Commit 4fd8fbe

Browse files
authored
Merge pull request #70 from SystemNAS918/patch-1
Update GraphQL queries in graphql_queries.py
2 parents 933fcf1 + 5df92cb commit 4fd8fbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ws_api/graphql_queries.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
GRAPHQL_QUERIES = {
44
"FetchAllAccountFinancials": "query FetchAllAccountFinancials($identityId: ID!, $startDate: Date, $pageSize: Int = 25, $cursor: String) {\n identity(id: $identityId) {\n id\n ...AllAccountFinancials\n __typename\n }\n}\n\nfragment AllAccountFinancials on Identity {\n accounts(filter: {}, first: $pageSize, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n __typename\n }\n edges {\n cursor\n node {\n ...AccountWithFinancials\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n}\n\nfragment AccountWithFinancials on Account {\n ...AccountWithLink\n ...AccountFinancials\n __typename\n}\n\nfragment AccountWithLink on Account {\n ...Account\n linkedAccount {\n ...Account\n __typename\n }\n __typename\n}\n\nfragment Account on Account {\n ...AccountCore\n custodianAccounts {\n ...CustodianAccount\n __typename\n }\n __typename\n}\n\nfragment AccountCore on Account {\n id\n archivedAt\n branch\n closedAt\n createdAt\n cacheExpiredAt\n currency\n requiredIdentityVerification\n unifiedAccountType\n supportedCurrencies\n nickname\n status\n accountOwnerConfiguration\n accountFeatures {\n ...AccountFeature\n __typename\n }\n accountOwners {\n ...AccountOwner\n __typename\n }\n type\n __typename\n}\n\nfragment AccountFeature on AccountFeature {\n name\n enabled\n __typename\n}\n\nfragment AccountOwner on AccountOwner {\n accountId\n identityId\n accountNickname\n clientCanonicalId\n accountOpeningAgreementsSigned\n name\n email\n ownershipType\n activeInvitation {\n ...AccountOwnerInvitation\n __typename\n }\n sentInvitations {\n ...AccountOwnerInvitation\n __typename\n }\n __typename\n}\n\nfragment AccountOwnerInvitation on AccountOwnerInvitation {\n id\n createdAt\n inviteeName\n inviteeEmail\n inviterName\n inviterEmail\n updatedAt\n sentAt\n status\n __typename\n}\n\nfragment CustodianAccount on CustodianAccount {\n id\n branch\n custodian\n status\n updatedAt\n __typename\n}\n\nfragment AccountFinancials on Account {\n id\n custodianAccounts {\n id\n branch\n financials {\n current {\n ...CustodianAccountCurrentFinancialValues\n __typename\n }\n __typename\n }\n __typename\n }\n financials {\n currentCombined {\n id\n ...AccountCurrentFinancials\n __typename\n }\n __typename\n }\n __typename\n}\n\nfragment CustodianAccountCurrentFinancialValues on CustodianAccountCurrentFinancialValues {\n deposits {\n ...Money\n __typename\n }\n earnings {\n ...Money\n __typename\n }\n netDeposits {\n ...Money\n __typename\n }\n netLiquidationValue {\n ...Money\n __typename\n }\n withdrawals {\n ...Money\n __typename\n }\n __typename\n}\n\nfragment Money on Money {\n amount\n cents\n currency\n __typename\n}\n\nfragment AccountCurrentFinancials on AccountCurrentFinancials {\n id\n netLiquidationValue {\n ...Money\n __typename\n }\n netDeposits {\n ...Money\n __typename\n }\n simpleReturns(referenceDate: $startDate) {\n ...SimpleReturns\n __typename\n }\n totalDeposits {\n ...Money\n __typename\n }\n totalWithdrawals {\n ...Money\n __typename\n }\n __typename\n}\n\nfragment SimpleReturns on SimpleReturns {\n amount {\n ...Money\n __typename\n }\n asOf\n rate\n referenceDate\n __typename\n}",
5-
"FetchActivityFeedItems": "query FetchActivityFeedItems($first: Int, $cursor: Cursor, $condition: ActivityCondition, $orderBy: [ActivitiesOrderBy!] = OCCURRED_AT_DESC) {\n activityFeedItems(\n first: $first\n after: $cursor\n condition: $condition\n orderBy: $orderBy\n ) {\n edges {\n node {\n ...Activity\n __typename\n }\n __typename\n }\n pageInfo {\n hasNextPage\n endCursor\n __typename\n }\n __typename\n }\n}\n\nfragment Activity on ActivityFeedItem {\n accountId\n aftOriginatorName\n aftTransactionCategory\n aftTransactionType\n amount\n amountSign\n assetQuantity\n assetSymbol\n canonicalId\n currency\n eTransferEmail\n eTransferName\n externalCanonicalId\n identityId\n institutionName\n occurredAt\n p2pHandle\n p2pMessage\n spendMerchant\n securityId\n billPayCompanyName\n billPayPayeeNickname\n redactedExternalAccountNumber\n opposingAccountId\n status\n subType\n type\n strikePrice\n contractType\n expiryDate\n chequeNumber\n provisionalCreditAmount\n primaryBlocker\n interestRate\n frequency\n counterAssetSymbol\n rewardProgram\n counterPartyCurrency\n counterPartyCurrencyAmount\n counterPartyName\n fxRate\n fees\n reference\n __typename\n}",
5+
"FetchActivityFeedItems": "query FetchActivityFeedItems($first: Int, $cursor: Cursor, $condition: ActivityCondition, $orderBy: [ActivitiesOrderBy!] = OCCURRED_AT_DESC) {\n activityFeedItems(\n first: $first\n after: $cursor\n condition: $condition\n orderBy: $orderBy\n ) {\n edges {\n node {\n ...Activity\n __typename\n }\n __typename\n }\n pageInfo {\n hasNextPage\n endCursor\n __typename\n }\n __typename\n }\n}\n\nfragment Activity on ActivityFeedItem {\n accountId\n aftOriginatorName\n aftTransactionCategory\n aftTransactionType\n amount\n amountSign\n assetQuantity\n assetSymbol\n canonicalId\n currency\n eTransferEmail\n eTransferName\n externalCanonicalId\n identityId\n institutionName\n occurredAt\n p2pHandle\n p2pMessage\n spendMerchant\n securityId\n billPayCompanyName\n billPayPayeeNickname\n redactedExternalAccountNumber\n opposingAccountId\n status\n subType\n type\n strikePrice\n contractType\n expiryDate\n chequeNumber\n provisionalCreditAmount\n primaryBlocker\n interestRate\n frequency\n counterAssetSymbol\n rewardProgram\n counterPartyCurrency\n counterPartyCurrencyAmount\n counterPartyName\n fxRate\n fees\n reference\n optionStrategy\n rejectionReason\n resolvable\n withholdingTaxAmount\n announcementDate\n recordDate\n payableDate\n grossDividendRate\n unifiedStatus\n estimatedCompletionDate\n realizedPnl\n settlementIndicator\n __typename\n}",
66
"FetchSecuritySearchResult": "query FetchSecuritySearchResult($query: String!) {\n securitySearch(input: {query: $query}) {\n results {\n ...SecuritySearchResult\n __typename\n }\n __typename\n }\n}\n\nfragment SecuritySearchResult on Security {\n id\n buyable\n status\n stock {\n symbol\n name\n primaryExchange\n __typename\n }\n securityGroups {\n id\n name\n __typename\n }\n quoteV2 {\n ... on EquityQuote {\n marketStatus\n __typename\n }\n __typename\n }\n __typename\n}",
77
"FetchSecurityHistoricalQuotes": 'query FetchSecurityHistoricalQuotes($id: ID!, $timerange: String! = "1d") {\n security(id: $id) {\n id\n historicalQuotes(timeRange: $timerange) {\n ...HistoricalQuote\n __typename\n }\n __typename\n }\n}\n\nfragment HistoricalQuote on HistoricalQuote {\n adjustedPrice\n currency\n date\n securityId\n time\n __typename\n}',
88
"FetchAccountsWithBalance": "query FetchAccountsWithBalance($ids: [String!]!, $type: BalanceType!) {\n accounts(ids: $ids) {\n ...AccountWithBalance\n __typename\n }\n}\n\nfragment AccountWithBalance on Account {\n id\n custodianAccounts {\n id\n financials {\n ... on CustodianAccountFinancialsSo {\n balance(type: $type) {\n ...Balance\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n}\n\nfragment Balance on Balance {\n quantity\n securityId\n __typename\n}",

0 commit comments

Comments
 (0)