Skip to content

Get Group

GetGroup

Returns information about a trading group by its group name.

int GetGroup(const std::string& group_name, GroupRecord* group);

Parameters

  • symbol — string containing the group name (e.g., "ECN_TRADE").
  • cs — pointer to a GroupRecord structure where the result will be stored.

Return Value

  • RET_OK — data successfully retrieved.
  • RET_NOT_FOUNT — error (group not found).
  • Return Codes

Example

GroupRecord rec;
if (GetGroup("ECT_TRADE", &rec) == RET_OK) {
    // Use data from rec
}

Warning

  • Before calling, allocate a GroupRecord structure and pass its address.
  • If an error occurs, data in group may be invalid — always check the return code.