List client balances
This API call allows clients to get trading and allocated balances at BitGo for any connected trading partner. The trading balances are live data. The data under networkBalances are not the live balances at the partner, the live balances should be viewed on the partner's platform. networkBalances will only update as a result of allocations, deallocations, and settlement.
Error scenarios:
-
400: Invalid Request Error
-
Occurs when the request parameters are invalid or malformed
-
Examples: Invalid UUID format for enterpriseId, invalid filter parameters, invalid pagination parameters, invalid connection or partner IDs
-
401: Authentication Error
-
Occurs when the request is not authorized
-
Examples: Caller is not a member of the enterprise.
-
403: Permission Denied Error
-
Occurs when the authenticated client doesn't have necessary permissions
-
Examples: Client doesn't have permission to view balances. Enterprise does not have OES license.
-
404: Not Found Error
-
Occurs when the specified enterprise or resources cannot be found
-
Examples: Enterprise doesn't exist.
-
500: Internal Server Error
-
Occurs when there's an unexpected server error processing the request
-
Examples: Database connection issues, transient network errors,
Requires access token scope: settlement_network_read
Path Params
-
enterpriseIdstring requiredThe enterprise identifier of the client. This identifies the client enterprise that owns the allocation.
Query Params
-
pageNumberstring integerThe page number (integer) you wish to fetch. When provided, the API will skip pageSize * pageNumber records. Page numbers are zero-based, so the first page is 0. If not provided, defaults to 0. -
pageSizestringThe page size (integer) you wish to fetch. When provided, the API will return at most pageSize records per page. If not provided, a default page size defined by the server will be used. -
connectionIdsarray of stringsOptional array of connection IDs to filter by.
If provided:
- Only balances for connections with these specific IDs will be returned.
- Useful for monitoring specific trading relationships or connections.
- Can be used to focus on particular allocation targets.
If omitted, results will include data for all your connections subject to other filters.
-
partnerIdsarray of stringsOptional array of partner IDs to filter by.
If provided:
- Only balances for connections to partners with these IDs will be returned.
- Useful for focusing on balances with specific partner organizations.
- Can be used to monitor exposure to particular partners.
If omitted, results will include data for connections to all partners.
Responses
200
OK
Response Body
object
-
clientIdstring requiredUnique identifier of the client whose balances are being returned. This UUID corresponds to your organization within the BitGo system. -
balancesmap of objects requiredA record of account balances indexed by currency code.
Each key in this record is a currency identifier (e.g., "ofcbtc", "ofceth", "ofcusdc"), and the corresponding value is an AccountBalance object containing the available and held amounts for that currency in base units.
balances object
-
<key>objectvalue object
-
availablestring requiredAmount of the specified currency available in the specified account. The amount is represented as a non-negative integer string in the currency's base units. -
heldstring requiredAmount of the specified currency held (encumbered) in the specified account. The amount is represented as a non-negative integer string in the currency's base units.
-
-
-
networkBalancesmap of objects requiredDetailed information about balances across all your partner connections.
This record contains:
- Keys: Connection IDs that uniquely identify each connection
- Values: Detailed information about the connection and its balances
networkBalances object
-
<key>objectNetwork account balance information formatted for client consumption. Contains details about a partner connection and associated balances.value object
-
partnerIdstring requiredUnique identifier of the partner associated with this connection. This UUID uniquely identifies the OES partner within the BitGo system. -
partnersConnectionIdstring requiredExternal identifier of the connection as known by the partner system. This is the identifier that the partner uses to reference this connection. -
namestring requiredHuman-readable name of the connection. This is typically set during connection creation. -
partnerInstitutionIdentifierstring requiredInstitution identifier of the partner. This is typically set during connection creation to help identify the connection. -
balancesmap of objects requiredBalances available for this connection, indexed by currency code. Represents the funds that have been allocated to this connection and their status.balances object
-
<key>objectvalue object
-
availablestring requiredAmount of the specified currency available in the specified account. The amount is represented as a non-negative integer string in the currency's base units. -
heldstring requiredAmount of the specified currency held (encumbered) in the specified account. The amount is represented as a non-negative integer string in the currency's base units.
-
-
-
401
Unauthorized
Response Body
object
-
errorstring required
403
Forbidden
Response Body
object
-
errorstring required
404
Not Found
Response Body
object
-
errorstring required
500
Internal Server Error
Response Body
object
-
errorstring required