For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Get spot account

Manage your DeltaDeFi spot trading account. A spot account is required for trading and holds your encrypted operation key.


Get spot account

get

Get spot account details for a user

Authorizations
Header parameters
X-API-KEYstringRequired

API Key

Responses
200

OK

application/json
account_idstringOptionalExample: 550e8400-e29b-41d4-a716-446655440000
account_typestringOptionalExample: spot
created_atstringOptionalExample: 2024-01-01T00:00:00Z
encrypted_operation_keystringOptionalExample: U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y=
operation_key_hashstringOptionalExample: abc123def456...
get/accounts/spot-account
GET /accounts/spot-account HTTP/1.1
X-API-KEY: text
Accept: */*
{
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "account_type": "spot",
  "created_at": "2024-01-01T00:00:00Z",
  "encrypted_operation_key": "U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y=",
  "operation_key_hash": "abc123def456..."
}

Understanding Operation Keys

The operation key is a crucial security component:

  • Generated client-side: Never sent to the server in plain text

  • Encrypted with your password: Uses AES-GCM encryption

  • Used for signing trades: Authorizes trading operations without your master wallet

Last updated