diff --git a/source/index.html.md b/source/index.html.md index e372411..ca56a6b 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -195,8 +195,7 @@ const [txSig, userPublickKey] = await driftClient.initializeUser( ``` ```python -# todo: cannot init with name -tx_sig = await drift_client.intialize_user(0) +tx_sig = await drift_client.initialize_user(sub_account_id=0, name="toly") ``` | Parameter | Description | Optional | Default | @@ -240,6 +239,10 @@ driftClient.switchActiveUser( ); ``` +```python +drift_client.switch_active_user(sub_account_id=1) +``` + | Parameter | Description | Optional | Default | | ----------- | ----------- | -------- | ------- | | subAccountId | The sub account to switch to | No | 0 |