Calculated Fields

Calculated fields are special computed values available in the Groups endpoint. These fields are calculated in real-time and provide powerful insights into your data.

Available Calculated Fields

accountsCount

The number of accounts assigned to a group.

symbolsCount

The number of symbols configured for a group.

positionsCount

The number of open positions for accounts in the group.

Supported Operations

All calculated fields support these operations:

Operation
Syntax
Description
Example

eq

field__eq=value

Exact count

accountsCount__eq=5

ne

field__ne=value

Not equal count

symbolsCount__ne=0

gt

field__gt=value

More than count

accountsCount__gt=10

ge

field__ge=value

At least count

symbolsCount__ge=1

lt

field__lt=value

Less than count

positionsCount__lt=100

le

field__le=value

At most count

accountsCount__le=20

Examples

Find Active Groups

Find Empty Groups

Range Filtering

Complex Queries

Performance Notes

⚠️ Hybrid Processing: Calculated fields use a hybrid approach:

  1. Regular database filtering is applied first

  2. Calculated field filtering happens in memory

  3. Results are then paginated

💡 Best Practice: For better performance, combine calculated field filters with regular field filters:

Sorting

You can also sort by calculated fields:

Next Steps

  • Learn about Field Types for detailed type information

  • Check out Usage Examples for more practical implementations