Skip to main content

Get Wallet

Retrieve a single wallet by ID.

Endpoint

GET /api/v3/fermata/wallet/get?walletId={walletId}

Description

Returns the wallet object including type, status, and metadata.

Authentication

Requires Bearer token authentication.

Authorization: Bearer {access_token}

Query Parameters

ParameterTypeRequiredDescription
walletIdstringYesWallet ID

Response

Returns the wallet object.

FieldTypeDescription
walletIdstringWallet ID
walletTypestringWallet type (DEALER, CLIENT, EXCHANGE, ACCOUNTING)
statusstringWallet status (ACTIVE, FROZEN, CLOSED)
allowNegativebooleanWhether negative balances are allowed
metadataobjectAdditional attributes
createdAtintegerCreation timestamp (milliseconds)
updatedAtintegerLast update timestamp (milliseconds)

Usage

import requests

headers = {"Authorization": f"Bearer {access_token}"}

response = requests.get(
"https://cadenza-api.algo724.com/api/v3/fermata/wallet/get",
headers=headers,
params={"walletId": "880e8400-e29b-41d4-a716-446655440000"}
)

wallet = response.json()["data"]
print(f"Wallet: {wallet['walletId']} ({wallet['walletType']}, {wallet['status']})")
curl -X GET "https://cadenza-api.algo724.com/api/v3/fermata/wallet/get?walletId=880e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."

Example Response

{
"data": {
"walletId": "880e8400-e29b-41d4-a716-446655440000",
"walletType": "CLIENT",
"status": "ACTIVE",
"allowNegative": false,
"metadata": {
"nickname": "Trading Wallet"
},
"createdAt": 1711929600000,
"createdAtDateTime": "2025-04-01T00:00:00.000Z",
"updatedAt": 1711929600000,
"updatedAtDateTime": "2025-04-01T00:00:00.000Z"
},
"success": true,
"errno": 0,
"error": null
}

Error Responses

HTTP CodeErrorDescription
400Invalid requestMissing walletId
401UnauthorizedInvalid or expired access token
403ForbiddenInsufficient permissions
404Not foundWallet not found

Example Error

{
"data": null,
"success": false,
"errno": -140002,
"error": "Wallet not found: 880e8400-e29b-41d4-a716-446655440000"
}

Notes

  • Users can only query their own wallets
  • Admin users can query any wallet
  • Use the portfolio endpoint to get wallet balances