Overview
TheBalanceType model represents the data structure used for deposit and withdrawal operations on trading accounts. This model is used as the request body for the userDepositPost() and userWithdrawPost() methods in the UserApi.
Properties
The user’s login ID for the trading account
The amount to deposit or withdraw. Must be a positive number.
The transaction type indicator. Typically used to categorize the balance operation.
Optional comment or description for the balance operation
Example JSON
Usage Example
Methods
Getters
getLogin(): int- Get the login IDgetAmount(): float- Get the amountgetType(): float- Get the transaction typegetComment(): string- Get the comment
Setters
setLogin(int $login): self- Set the login IDsetAmount(float $amount): self- Set the amountsetType(float $type): self- Set the transaction typesetComment(string $comment): self- Set the comment
Related
- UserApi - Use this model with deposit and withdrawal methods
- User Model - User account information
- Account Model - Account balance and equity details