c5b6032184
* feat: account hitory poc * feat(#469): update account history and chart * feat(#469): remove radix toggle group * fix: add use memo and some tweaks to make sure you pass undefined to cancel all * feat(#469): add new version pennant * feat(#469): style account history chart and no data splash * fix(#469): use splash only * fix(#469): sort assets list * feat(#469): new pennant version * fix: update query * fix: update query * Update libs/orders/src/lib/components/order-list/order-list.tsx * Update libs/assets/src/lib/asset-details-dialog.tsx * feat(#469): update test on trading positions tab * Update apps/trading-e2e/src/integration/trading-positions.cy.ts * fix: click on positions in portfolio * feat(#469): refactor with async renderer * feat(#469): refactor date range in account history Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
38 lines
641 B
GraphQL
38 lines
641 B
GraphQL
query AccountHistory(
|
|
$partyId: ID!
|
|
$assetId: ID!
|
|
$accountTypes: [AccountType!]
|
|
$dateRange: DateRange
|
|
) {
|
|
balanceChanges(
|
|
filter: {
|
|
partyIds: [$partyId]
|
|
accountTypes: $accountTypes
|
|
assetId: $assetId
|
|
}
|
|
dateRange: $dateRange
|
|
) {
|
|
edges {
|
|
node {
|
|
timestamp
|
|
partyId
|
|
balance
|
|
marketId
|
|
assetId
|
|
accountType
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query AccountsWithBalance($partyId: ID!, $dateRange: DateRange) {
|
|
balanceChanges(filter: { partyIds: [$partyId] }, dateRange: $dateRange) {
|
|
edges {
|
|
node {
|
|
assetId
|
|
accountType
|
|
}
|
|
}
|
|
}
|
|
}
|