GroupApi class provides methods for retrieving and managing trading group configurations.
Constructor
Guzzle HTTP client instance. If not provided, a new Client will be created.
SDK configuration object. If not provided, a new Configuration will be created.
Header selector instance. If not provided, a new HeaderSelector will be created.
Methods
getConfig
Retrieves the current configuration object.The current SDK configuration object
groupsGet
Retrieves a list of all available trading groups.Array of group names (strings) available on the MT5 server
\D4T\MT5Sdk\ApiException- On non-2xx response (200 success, 400 error)\InvalidArgumentException- On invalid arguments
groupsGetWithHttpInfo
Retrieves all groups with HTTP response details.Array containing:
- [0]:
string[]- Array of group names - [1]:
int- HTTP status code - [2]:
array- HTTP response headers
\D4T\MT5Sdk\ApiException- On non-2xx response\InvalidArgumentException- On invalid arguments
groupsGetAsync
Asynchronously retrieves all trading groups.Promise that resolves to an array of group names (string[])
\InvalidArgumentException- On invalid arguments
groupsGetAsyncWithHttpInfo
Asynchronously retrieves all groups with HTTP details.Promise that resolves to an array containing groups, status code, and headers
\InvalidArgumentException- On invalid arguments
groupGroupNameGet
Retrieves detailed configuration for a specific trading group.The name of the group to retrieve
Group object containing detailed group configuration including:
- Trading settings
- Margin requirements
- Commissions
- Permissions
- And other group-specific parameters
\D4T\MT5Sdk\ApiException- On non-2xx response (200 success, 400 error)\InvalidArgumentException- When group_name is missing or empty
groupGroupNameGetWithHttpInfo
Retrieves group details with HTTP response information.The name of the group to retrieve
Array containing:
- [0]:
\D4T\MT5Sdk\Models\Group- The group object - [1]:
int- HTTP status code - [2]:
array- HTTP response headers
\D4T\MT5Sdk\ApiException- On non-2xx response\InvalidArgumentException- When group_name is missing
groupGroupNameGetAsync
Asynchronously retrieves group configuration.The name of the group to retrieve
Promise that resolves to
\D4T\MT5Sdk\Models\Group\InvalidArgumentException- When group_name is missing
groupGroupNameGetAsyncWithHttpInfo
Asynchronously retrieves group configuration with HTTP details.The name of the group to retrieve
Promise that resolves to an array containing the group object, HTTP status code, and response headers
\InvalidArgumentException- When group_name is missing