HomeDocumentationAPI Reference
Log In

Create Subaccount

Method Name


Create a new subaccount under a given wallet, and deposit an asset into that subaccount.

See public/create_subaccount_debug for debugging invalid signature issues or go to guides in Documentation.


amount string required
Amount of the asset to deposit
asset_name string required
Name of asset to deposit
margin_type string required
PM (Portfolio Margin) or SM (Standard Margin)
enum PM SM
nonce integer required
Unique nonce defined as (e.g. 1695836058725001, where 001 is the random number)
signature string required
Ethereum signature of the deposit
signature_expiry_sec integer required
Unix timestamp in seconds. Expiry MUST be >5min from now
signer string required
Ethereum wallet address that is signing the deposit
wallet string required
Ethereum wallet address
currency string
Base currency of the subaccount (only for PM)


id string or integer required
result object required
result.status string required
result.transaction_id string required
Transaction id of the request



The above command returns JSON structured like this: