Creating an Account and Depositing Funds
Step 1: Create a SubAccount
# SubAccountCreationData = (name, metadata, symmioCore, isolationType, singleVAMode)
# isolationType uses SubAccountIsolationType: 0=POSITION, 1=MARKET, 2=MARKET_DIRECTION, 3=CUSTOM
sub_account_data = [(
"TradingAccount", # name
b"", # metadata
symmio_core_address, # symmioCore
0, # isolationType (POSITION)
False, # singleVAMode
)]
account_layer.functions.createSubAccounts(
affiliate_address,
sub_account_data, # array, create several at once if you like
).transact({"from": user})Step 2: Deposit collateral
Step 3: Fund the VirtualAccount before trading
Last updated

