AccountApi class provides methods for retrieving and managing trading account information.
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
accountLoginGet
Retrieves account information by user login.User login ID to retrieve account information for
Account object containing account details including balance, equity, margin, and other account metrics
\D4T\MT5Sdk\ApiException- On non-2xx response (200 success, 400 error)\InvalidArgumentException- When login parameter is missing or empty
accountLoginGetWithHttpInfo
Retrieves account information with HTTP response details.User login ID to retrieve account information for
Array containing:
- [0]:
\D4T\MT5Sdk\Models\Account- The account object - [1]:
int- HTTP status code - [2]:
array- HTTP response headers
\D4T\MT5Sdk\ApiException- On non-2xx response (200 success, 400 error)\InvalidArgumentException- When login parameter is missing or empty
accountLoginGetAsync
Asynchronously retrieves account information by user login.User login ID to retrieve account information for
Promise that resolves to
\D4T\MT5Sdk\Models\Account\InvalidArgumentException- When login parameter is missing or empty
accountLoginGetAsyncWithHttpInfo
Asynchronously retrieves account information with HTTP details.User login ID to retrieve account information for
Promise that resolves to an array containing the account object, HTTP status code, and response headers
\InvalidArgumentException- When login parameter is missing or empty