The type of the asset to deposit.
The amount of the asset to deposit.
Optional
optionalAssetDetails: AssetDetailsOptional asset details for EURO_TOKEN deposits.
A promise that resolves to the transaction signature of the deposit operation.
Generated using TypeDoc
Deposits a specified amount of an asset to the trading account. If the trading account is not initialized, it will be initialized in this function. Associated token accounts and trading token account for the asset will be created if they do not exist. If the asset is a EURO_TOKEN, OptionChain must be provided in the optional param.
Todo
Add a rent checker for account creation cost.