frontend-monorepo icon indicating copy to clipboard operation
frontend-monorepo copied to clipboard

Ledger entries date filtering

Open mattrussell36 opened this issue 2 years ago • 1 comments

Story

As a trader I want to view ledger entriese for a specific time period So that I can inspect how my collateral was used more closely

Acceptance Criteria

  • [ ] I can filter by start date
  • [ ] I can filter by end date

Additional info

We might be able to leverage AgGrid's built in agDateColumnFilter

Screen Shot 2022-10-25 at 22 50 57

mattrussell36 avatar Oct 26 '22 05:10 mattrussell36

Use date range filtering

 query LedgerEntries($partyId: ID!) {
  ledgerEntries(
    filter: {AccountFromFilter: {partyIds: [$partyId]}}
    groupOptions: {ByAccountField: [PartyId, AccountType, AssetId, MarketId], ByLedgerEntryField: [TransferType]}
    pagination: {first: 500}
    dateRange: {
      start: <date>,
      end: <date>
    }
  ) {
    edges {
      node {
        ...LedgerEntry
      }
    }
  }

MadalinaRaicu avatar Nov 15 '22 16:11 MadalinaRaicu