Skip to content

Commit

Permalink
Merge pull request #412 from powerhouse-inc/feat-update-rwa-switchboa…
Browse files Browse the repository at this point in the history
…rd-query

feat: update rwa switchboard query
  • Loading branch information
ryanwolhuter authored Jul 1, 2024
2 parents e5661c9 + 3ca3f2a commit dda929e
Showing 1 changed file with 50 additions and 45 deletions.
95 changes: 50 additions & 45 deletions src/utils/getSwitchboardUrl.ts
Original file line number Diff line number Diff line change
@@ -1,51 +1,56 @@
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 {
state {
Expand Down

0 comments on commit dda929e

Please sign in to comment.