Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

POST /subaccounts

Create a subaccount for the authenticated main account. See Creating subaccounts for how to derive the subaccount and produce both signatures.

POST https://api.aevo.xyz/subaccounts

Authentication required. Include your AEVO-KEY and AEVO-SECRET headers. See Authentication. Call it with the main account's API key and no AEVO-SUBACCOUNT header. Read-only API keys can't call this endpoint.

The main account is always the authenticated account. It can't be set in the body.

Body Parameters

Field
Type
Required
Description

subaccount

string

Yes

Address of the new subaccount. It must not already have an Aevo account. Example: 0xYourSubaccountAddress

name

string

Yes

1 to 16 characters: letters, numbers, spaces, _ and -, with no leading or trailing spaces. Unique among the main account's active subaccounts. Example: Market Making

parent_signature

string

Yes

EIP-712 CreateSubaccount signature by the main wallet or one of the main account's signing keys.

subaccount_signature

string

Yes

EIP-712 LinkSubaccount signature by the subaccount's private key.

Example Request

curl --request POST \
     --url https://api.aevo.xyz/subaccounts \
     --header 'accept: application/json' \
     --header 'AEVO-KEY: <your-api-key>' \
     --header 'AEVO-SECRET: <your-api-secret>' \
     --header 'content-type: application/json' \
     --data '{
       "subaccount": "0xYourSubaccountAddress",
       "name": "Market Making",
       "parent_signature": "0x...",
       "subaccount_signature": "0x..."
     }'

Responses

200 — The subaccount was created.

Field
Type
Required
Description

parent

string

Yes

The main account. Example: 0xYourMainAccountAddress

subaccount

string

Yes

The new subaccount. Example: 0xYourSubaccountAddress

name

string

Yes

The subaccount name. Example: Market Making

400 — Bad request. See Creating subaccounts for the subaccount-specific errors.

Field
Type
Required
Description

error

string

Yes

Error message. Example: SUBACCOUNT_LIMIT_REACHED

401 — Unauthorized.

Field
Type
Required
Description

error

string

Yes

Error message. Example: UNAUTHORIZED

429 — Rate limit exceeded.

Field
Type
Required
Description

error

string

Yes

Error message. Example: RATE_LIMIT_EXCEEDED

500 — Internal server error.

Field
Type
Required
Description

error

string

Yes

Error message. Example: INTERNAL_ERROR

Last updated

Was this helpful?