Get Transactions in Graphql


This query returns transactions for one portfolio and an accounting date range.

Screenshot 2025-12-16 at 17.57.40.png



GraphQL Query

query GetTransactionList {
  transaction(
    pagination: {
      limit: 20
      offset: 0
    }
    filters: {
      portfolio: {
        user_code: {
          exact: "Commodity Portfolio"
        }
      }
      accounting_date: {
        gte: "2021-01-01"
        lte: "2023-12-31"
      }
    }
  ) {
    id
    accounting_date
    position_size_with_sign
    cash_consideration
    trade_price
    instrument {
      id
      user_code
      name
    }
    portfolio {
      id
      user_code
      name
    }
    account_cash {
      id
      user_code
      name
    }
    account_position {
      id
      user_code
      name
    }
    transaction_class {
      id
      user_code
      name
    }
  }
}

Filter Highlights

Filter by Portfolio (nested filter)

portfolio: {
  user_code: { exact: "Commodity Portfolio" }
}

Filter by Date Range

accounting_date: {
  gte: "2021-01-01"
  lte: "2023-12-31"
}

How filters work together

All filters in one filters block are combined with AND.

So this query means:



Revision #3
Created 2025-12-16 16:51:48 UTC by Sergei Zhitenev
Updated 2025-12-16 16:58:40 UTC by Sergei Zhitenev