Skip to main content

List Wallets

List wallets with optional filtering.

Endpoint

GET /api/v3/fermata/wallet/list

Description

Returns a paginated list of wallets. Supports filtering by wallet type.

Authentication

Requires Bearer token authentication.

Authorization: Bearer {access_token}

Query Parameters

ParameterTypeRequiredDescription
walletTypestringNoFilter by wallet type (DEALER, CLIENT, EXCHANGE, ACCOUNTING)
limitintegerNoMaximum items to return (default: 10, max: 100)
offsetintegerNoNumber of items to skip
cursorstringNoCursor for next page

Response

Returns an array of wallet objects with pagination.

FieldTypeDescription
dataarrayArray of wallet objects
data[].walletIdstringWallet ID
data[].walletTypestringWallet type
data[].statusstringWallet status
data[].allowNegativebooleanWhether negative balances allowed
data[].metadataobjectAdditional attributes
data[].createdAtintegerCreation timestamp (milliseconds)
data[].updatedAtintegerLast update timestamp (milliseconds)
paginationobjectPagination metadata

Usage

import requests

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

# List all client wallets
response = requests.get(
"https://cadenza-api.algo724.com/api/v3/fermata/wallet/list",
headers=headers,
params={"walletType": "CLIENT", "limit": 20}
)

wallets = response.json()["data"]
for wallet in wallets:
print(f"{wallet['walletId']}: {wallet['walletType']} ({wallet['status']})")
curl -X GET "https://cadenza-api.algo724.com/api/v3/fermata/wallet/list?walletType=CLIENT&limit=20" \
-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,
"pagination": {
"offset": 0,
"limit": 20,
"total": 1
}
}

Error Responses

HTTP CodeErrorDescription
400Invalid requestInvalid query parameters
401UnauthorizedInvalid or expired access token
403ForbiddenInsufficient permissions

Example Error

{
"data": null,
"success": false,
"errno": -140003,
"error": "Invalid walletType: UNKNOWN"
}

Notes

  • Regular users see only their own wallets
  • Admin users can list all wallets, including dealer and exchange wallets