Skip to content

Commit

Permalink
Merge pull request #413 from powerhouse-inc/feaet-update-rwa-query
Browse files Browse the repository at this point in the history
feat: update query
  • Loading branch information
ryanwolhuter authored Jul 1, 2024
2 parents f1d4125 + 2e5d77f commit 914c7be
Showing 1 changed file with 51 additions and 46 deletions.
97 changes: 51 additions & 46 deletions src/utils/getSwitchboardUrl.ts
Original file line number Diff line number Diff line change
@@ -1,50 +1,55 @@
const rwaQuery = `... on RealWorldAssets {
state {
accounts {
id
reference
label
}
principalLenderAccountId
spvs {
id
name
}
serviceProviderFeeTypes {
id
name
feeType
accountId
}
fixedIncomeTypes {
id
name
}
portfolio {
... on FixedIncome {
id
spvId
ISIN
CUSIP
coupon
}
... on Cash {
id
spvId
currency
}
}
transactions {
type
entryTime
cashBalanceChange
feeTransactions {
id
amount
tradeTime
}
}
}
state {
portfolio {
__typename
... on FixedIncome {
name
CUSIP
purchaseDate
purchasePrice
purchaseProceeds
salesProceeds
totalDiscount
spvId
}
... on Cash {
id
balance
}
}
transactions {
id
type
entryTime
cashBalanceChange
fees {
id
serviceProviderFeeTypeId
amount
}
txRef
cashTransaction {
id
assetId
amount
entryTime
tradeTime
settlementTime
accountId
counterPartyAccountId
}
fixedIncomeTransaction {
id
assetId
amount
entryTime
tradeTime
settlementTime
accountId
counterPartyAccountId
}
}
}
}`;

const accountSnapshot = `... on AccountSnapshot {
Expand Down

0 comments on commit 914c7be

Please sign in to comment.