Create vault
Changed onCreate a new vault by providing deployment parameters.Current user will be set as owner of the account and a new sub-account will be deployed as vault operator.
To create a Starknet vault operator, send the vault owner's main-key session JWT as the bearer token. Subkey, readonly and RPC tokens do not prove ownership. A request without that token is rejected with VAULT_OPERATOR_OWNER_PROOF_REQUIRED.
Request
- Base URLhttps://api.prod.paradex.trade/v1
- URLhttps://api.prod.paradex.trade/v1/vaults
- AuthAPI key in header Authorization
Headers
Onboarded by prdx:0xa123456789
Starknet signature
Starknet address
Account derivation path - m/44'/9004'/0'/0/1
Request body
Example request
{
"curator_name": "Some Curator",
"deposit_tx_signature": "[",
"description": "My vault description",
"lockup_period": 1,
"max_tvl": 1000000,
"name": "MyVault",
"operator_eth_address": "0x1234567890abcdef1234567890abcdef12345678",
"operator_index": 1,
"operator_signer_type": "eip191",
"profit_share": 10,
"public_key": "0x1234567890abcdef",
"show_balances": true,
"show_positions": true,
"strategy_description": "Delta Neutral"
}Response
Created
Example response
{
"address": "0x1234567890abcdef",
"created_at": 1517171717,
"curator_name": "Some Curator",
"description": "My description",
"last_updated_at": 1617171717,
"lockup_period": 1,
"max_tvl": 1000000,
"name": "MyVault",
"operator_account": "0x1234567890abcdef",
"owner_account": "0x0234567890abcdef",
"profit_share": 10,
"strategies": [
{
"address": "0x29464b79b02543ed8746bba6e71c8a15401dd27b7279a5fa2f2fe8e8cdfabb",
"name": "Alpha Strategy",
"visibility": {
"balances": true,
"positions": true
}
}
],
"strategy_description": "Delta Neutral",
"visibility": {
"balances": true,
"positions": true
}
}Changes
- warning
added the new
ADDRESS_BOOK_NOT_PARADEX_ACCOUNTenum value to the////response property for the response status - warning
added the new
ADDRESS_BOOK_REPEATED_IN_IMPORTenum value to the////response property for the response status - warning
added the new
STARKNET_PARENT_ONBOARDING_DISABLEDenum value to the////response property for the response status
- warning
- warning
added the new
SESSION_EXPIREDenum value to the////response property for the response status - warning
added the new
SESSION_REVOKEDenum value to the////response property for the response status
- warning