Skip to content

Commit

Permalink
feat: update query
Browse files Browse the repository at this point in the history
Signed-off-by: ryanwolhuter <dev@ryanwolhuter.com>
  • Loading branch information
ryanwolhuter committed Jul 1, 2024
1 parent f1d4125 commit 2e5d77f
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 2e5d77f

Please sign in to comment.