Calculated Fields
Available Calculated Fields
accountsCount
symbolsCount
positionsCount
Supported Operations
Operation
Syntax
Description
Example
# Groups with at least one account
GET /api/v0/groups?accountsCount__ge=1
# Groups with configured symbols
GET /api/v0/groups?symbolsCount__gt=0
# Groups with active positions
GET /api/v0/groups?positionsCount__gt=0# Groups with no accounts
GET /api/v0/groups?accountsCount__eq=0
# Groups with no symbols configured
GET /api/v0/groups?symbolsCount__eq=0# Medium-sized groups (5-50 accounts)
GET /api/v0/groups?accountsCount__ge=5&accountsCount__le=50
# Groups with moderate trading activity
GET /api/v0/groups?positionsCount__ge=1&positionsCount__le=100# Well-configured active groups
GET /api/v0/groups?accountsCount__ge=10&symbolsCount__ge=5&positionsCount__gt=0
# Groups that need attention (accounts but no symbols)
GET /api/v0/groups?accountsCount__gt=0&symbolsCount__eq=0# Good: Filter by name first, then by calculated field
GET /api/v0/groups?name__like=trading&accountsCount__gt=10
# Less optimal: Only calculated field filter
GET /api/v0/groups?accountsCount__gt=10# Sort by number of accounts (descending)
GET /api/v0/groups?sort=accountsCount&order=DESC
# Sort by symbol count (ascending)
GET /api/v0/groups?sort=symbolsCount&order=ASC
# Sort by positions count
GET /api/v0/groups?sort=positionsCount&order=DESC