Skip to main content

List Dealers

List all dealers with optional filtering.

Endpoint

GET /api/v3/fermata/dealer/list

Description

Returns a paginated list of dealers. Supports filtering by status. Admin only.

Authentication

Requires Bearer token authentication with admin role.

Authorization: Bearer {access_token}

Query Parameters

ParameterTypeRequiredDescription
statusstringNoFilter by dealer status (ACTIVE, PAUSED, ARCHIVED)
limitintegerNoMaximum items to return (default: 10, max: 100)
offsetintegerNoNumber of items to skip
cursorstringNoCursor for next page

Response

Returns an array of dealer objects with pagination.

FieldTypeDescription
dataarrayArray of dealer objects
data[].dealerAccountIdstringDealer account ID
data[].namestringDealer name
data[].statusstringDealer status
data[].baseCurrenciesstring[]Base currencies
data[].riskThresholdstringRisk threshold
data[].linkedAccountIdsstring[]Trading account IDs of linked exchange accounts
data[].createdAtintegerCreation timestamp (milliseconds)
data[].updatedAtintegerLast update timestamp (milliseconds)
paginationobjectPagination metadata

Usage

import requests

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

# List all active dealers
response = requests.get(
"https://cadenza-api.algo724.com/api/v3/fermata/dealer/list",
headers=headers,
params={"status": "ACTIVE", "limit": 20}
)

dealers = response.json()["data"]
for dealer in dealers:
print(f"{dealer['name']} ({dealer['dealerAccountId']}): {dealer['status']}")
curl -X GET "https://cadenza-api.algo724.com/api/v3/fermata/dealer/list?status=ACTIVE&limit=20" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."

Example Response

{
"data": [
{
"dealerAccountId": "550e8400-e29b-41d4-a716-446655440000",
"name": "Main Dealer",
"status": "ACTIVE",
"baseCurrencies": ["USDT", "USDC"],
"riskThreshold": "1000000",
"linkedAccountIds": [
"660e8400-e29b-41d4-a716-446655440001"
],
"config": {},
"createdAt": 1711929600000,
"createdAtDateTime": "2025-04-01T00:00:00.000Z",
"updatedAt": 1711929700000,
"updatedAtDateTime": "2025-04-01T00:01:40.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
403ForbiddenRequires admin role

Example Error

{
"data": null,
"success": false,
"errno": -130003,
"error": "Invalid status filter: UNKNOWN"
}

Notes

  • Admin only -- clients cannot list all dealers
  • Archived dealers are excluded by default; use status=ARCHIVED to include them