querySubMembersV5
Retrieve a paginated list of all sub-accounts under a Bybit master account, including status, type, and UTA mode. Use the returned cursor to fetch additional pages.
Instructions
Query all sub-accounts of the master account with pagination support. Use master account's API key.
Important notes (from official Bybit V5 documentation):
Only master account can call this endpoint
Returns paginated list of sub-accounts with comprehensive information
Supports cursor-based pagination
Includes account status, type, and configuration details
Shows UTA (Unified Trading Account) mode for each sub-account
Required Permissions:
Master API key with appropriate permissions
Pagination:
Default page size: 100 (auto-set if not provided or <= 0)
Maximum page size: 100
Use
nextCursorfor fetching next pageReturns 0 as nextCursor when no more pages
First request: Use nextCursor=0 or omit
What information is returned:
✅ Sub-account UID and username
✅ Account type (1/4/6/14/15/16, see memberType field)
✅ Account status (normal, banned, frozen, deleted)
✅ Account mode (Classic, UTA 1.0/2.0, UTA Pro, Unified)
✅ Remark/notes for each sub-account
✅ Next cursor for pagination
Process Flow:
Parse metadata from request context to get master account ID
Validate pageSize (auto-adjust to 100 if invalid, error if > 100)
If first page (nextCursor=0): Check for entrust trading team sub-accounts
Query "SPECIAL_EXCHANGE_MEMBER" tag to identify exchange members
Get entrust trading team sub-accounts via QueryEntrustMembersByExchangeID
Fetch their relationship data from member_relations table
Get paginated sub-accounts via GetMemberRelationByPageV3
Adjusted page size = requested pageSize - entrust accounts count
Fetch from member_relations table ordered by ID
Combine entrust accounts + regular sub-accounts
Calculate nextCursor based on the DB-fetched count (before type=4 tag filtering): ID of last fetched sub-account if the fetched page is full (>= pageSize), else 0. Note: type=4 filtering happens after this step, so the finally returned count may be less than pageSize even when nextCursor is non-zero
Fetch login names for all sub-accounts from member_login table
Fetch 7 account tags in one query: UTA, UNIFIED, UTA_PRO, UTA_INVERSE, copytrade_upgrade, copytrade_mt5, enrolled_series_game. Account-mode uses UTA/UNIFIED/UTA_PRO/UTA_INVERSE; type=4 filtering uses 5 of them (copytrade_upgrade, copytrade_mt5, UTA, enrolled_series_game, UTA_INVERSE) — note UTA and UTA_INVERSE are shared by both determination
Filter sub-accounts: return type=1/4/6/14/15/16; type=4 only when it has any of the 5 tags copytrade_upgrade/copytrade_mt5/UTA/enrolled_series_game/UTA_INVERSE
Calculate account mode based on tag combinations
Return sub-account list with nextCursor
Account Types:
Type 1: Normal sub-account - standard trading sub-account (MEMBER_RELATION_TYPE_OWN)
Type 4: Copy trading leader sub-account, only when it has any of the type-4 tags (MEMBER_RELATION_TYPE_COPY_TRADE_LEADER)
Type 6: Custodial sub-account - for institutional custody use (MEMBER_RELATION_TYPE_ENTRUST_TRADE)
Type 14: General AI sub-account (MEMBER_RELATION_TYPE_AI)
Type 15: Bycustody sub-account (MEMBER_RELATION_TYPE_BYCUSTODY)
Type 16: Bybit AI sub-account (MEMBER_RELATION_TYPE_INNER_AI)
Account Status:
Status 1: Normal (active)
Status 2: Login banned
Status 4: Frozen
Status 8: Deleted (soft delete)
Account Mode Determination Logic: The account mode is determined by checking member tags in the following priority:
If both UTA_PRO=SUCCESS and UTA_INVERSE=SUCCESS → UTA 2.0 Pro (6)
If UTA_INVERSE=SUCCESS → UTA 2.0 (5)
If UTA_PRO=SUCCESS → UTA 1.0 Pro (4)
If UTA=SUCCESS → UTA 1.0 (3)
If UNIFIED=SUCCESS → Unified (7)
Otherwise → Classic (1)
Special Features:
Entrust Trading Team Support: First page includes entrust trading team sub-accounts
Tag-based Mode Detection: Uses member_tags table to determine UTA status
Cursor-based Pagination: Efficient for large sub-account lists
Filtered Results: shows type=1/4/6/14/15/16 accounts (type=4 only when it has any of the type-4 tags)
Use Cases:
List all sub-accounts for management dashboard
Check sub-account statuses and modes
Audit sub-account configurations
Monitor UTA upgrade status across sub-accounts
Paginate through large numbers of sub-accounts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageSize | No | ||
| nextCursor | No |