Create Subaccount

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. Required minimum session key permission level is admin

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Amount of the asset to deposit

string
required

Name of asset to deposit

string | null
Defaults to null

Base currency of the subaccount (only for PM)

string
enum
required

PM (Portfolio Margin), PM2 (Portfolio Margin 2), or SM` (Standard Margin))

Allowed:
integer
required

Unique nonce defined as (UTC_timestamp in ms)(random_number_up_to_6_digits) (e.g. 1695836058725001, where 001 is the random number)

string
required

Ethereum signature of the deposit

integer
required

Unix timestamp in seconds. Expiry MUST be >5min from now

string
required

Ethereum wallet address that is signing the deposit

string
required

Ethereum wallet address

Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json