Groups Endpoint

The Groups endpoint manages account groups and includes powerful calculated fields for real-time statistics.

Endpoint Information

  • URL: GET /api/v0/groups

  • Authentication: Required

  • Permissions: SUPER_ADMIN or Group_getAll

Searchable Fields

Regular Fields

Field
Type
Description
Example

id

Long

Group ID

id=1

name

String

Group name

name__like=trading

description

String

Group description

description__like=vip

currency.name

String

Currency name (nested)

currency.name=USD

stopOutLevel

Integer

Stop out percentage

stopOutLevel__ge=50

marginCallLevel

Integer

Margin call percentage

marginCallLevel__le=100

limitPositions

Integer

Max positions allowed

limitPositions__gt=10

limitPending

Integer

Max pending orders

limitPending__ge=5

createdAt

Date

Creation date

createdAt__ge=2024-01-01

updatedAt

Date

Last update date

updatedAt__le=2024-12-31

Calculated Fields (Real-time)

Field
Type
Description
Example

accountsCount

Long

Number of accounts in group

accountsCount__gt=10

symbolsCount

Long

Number of symbols configured

symbolsCount__ge=5

positionsCount

Long

Number of open positions

positionsCount__gt=0

Common Use Cases

Find Active Groups

Group Analysis

Risk Management Settings

Calculated Fields Performance

⚠️ Performance Note: Calculated fields use hybrid processing:

  1. Database filters regular fields first

  2. Calculated fields processed in memory

  3. Best practice: Combine with regular field filters

Complex Queries

Business Intelligence

Administrative Insights

Sorting Options

Sort by Calculated Fields

Sort by Regular Fields