Get subaccounts
GET/subaccounts
Return information about subaccounts, including balances and UIDs.
Responses
- 200
- application/json
- Schema
- kfSuccess
Schema
- Success Response
- ErrorResponse
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
accountInactive
: The Futures account the request refers to is inactiveapiLimitExceeded
: The API limit for the calling IP address has been exceededauthenticationError
: The request could not be authenticatedinsufficientFunds
: The amount requested for transfer is below the amount of funds availableinvalidAccount
: The Futures account the transfer request refers to is invalidinvalidAmount
: The amount the transfer request refers to is invalidinvalidArgument
: One or more arguments provided are invalidinvalidUnit
: The unit the transfer request refers to is invalidJson Parse Error
: The request failed to pass valid JSON as an argumentmarketUnavailable
: The market is currently unavailablenonceBelowThreshold
: The provided nonce is below the thresholdnonceDuplicate
: The provided nonce is a duplicate as it has been used in a previous requestnotFound
: The requested information could not be foundrequiredArgumentMissing
: One or more required arguments are missingServer Error
: There was an error processing the requestUnavailable
: The endpoint being called is unavailableunknownError
: An unknown error has occurred
Master account UID
subaccounts object[]
The sub-accounts.
The account UID
The email associated with the account
The name of the account
holdingAccounts object[]
Structure containing structures with holding accounts information for a specific holding account asset.
The currency of the account. All figures shown in this currency.
The amount of currency in the holding account.
futuresAccounts object[]
Structure containing structures with single-collateral accounts information for a specific futures account asset.
The name of the futures account as the account pair.
The amount of currency in the holding account in the quote currency of the name pair.
flexAccount object
Multi-collateral account structure.
currencies object[]
The name of the currency.
The amount of currency in the multi-collateral account.
The value of the currency quantity.
The collateral value of the currency quantity (value * haircut).
The available currency (quantity - margin requirement)
The total initial margin for the multi-collateral account in USD.
The total initial margin of open positions without the margin held by open orders for the multi-collateral account in USD.
The total maintenance margin for the multi-collateral account in USD.
The total balance value for the multi-collateral account in USD.
The total value of the portfolio in USD (Balance Value + Total Unrealised Profit/Loss).
The USD value of balances in account usable for margin [(Balance Value * (1-Haircut)].
The unrealised pnl for the multi-collateral account.
The total unrealised funding for the multi-collateral account in USD.
Total unrealised Profit/Loss and unrealised funding of open positions in USD (Unrealised Position(s) Profit/Loss + Unrealised Funding Rate Profit/Loss) * USD rate
.
Unrealised Profit/Loss and unrealised funding that is usable as margin (Unrealised Profit/Loss + Unrealised Funding Rate) * Haircut - Conversion Fee
.
Account-wide margin available to create new orders (Margin Equity - Total Initial Margin).
The Balance Value multiplied by the dollar rate and with haircuts applied to non-USD currencies, plus unrealised profit or loss as Margin.
[Balance Value in USD * (1-Haircut)] + (Total Unrealised Profit/Loss as Margin in USD)
Possible values: [success
]
Server time in Coordinated Universal Time (UTC)
Possible values: [accountInactive
, apiLimitExceeded
, authenticationError
, insufficientFunds
, invalidAccount
, invalidAmount
, invalidArgument
, invalidUnit
, Json Parse Error
, marketUnavailable
, nonceBelowThreshold
, nonceDuplicate
, notFound
, requiredArgumentMissing
, Server Error
, Unavailable
, unknownError
]
Possible values: [accountInactive
, apiLimitExceeded
, authenticationError
, insufficientFunds
, invalidAccount
, invalidAmount
, invalidArgument
, invalidUnit
, Json Parse Error
, marketUnavailable
, nonceBelowThreshold
, nonceDuplicate
, notFound
, requiredArgumentMissing
, Server Error
, Unavailable
, unknownError
]
Error description.
Possible values: [error
]
Server time in Coordinated Universal Time (UTC)
{
"result": "success",
"serverTime": "2022-03-31T20:38:53.677Z",
"masterAccountUid": "ba598ca1-65c1-4f48-927d-0e2b647d627a",
"subaccounts": [
{
"holdingAccounts": [
{
"currency": "gbp",
"amount": 0
},
{
"currency": "bch",
"amount": 0.00004
},
{
"currency": "xrp",
"amount": 13662.85078
},
{
"currency": "usd",
"amount": 0
},
{
"currency": "eth",
"amount": 3.0000485057
},
{
"currency": "usdt",
"amount": 0
},
{
"currency": "ltc",
"amount": 0.00002
},
{
"currency": "usdc",
"amount": 0
},
{
"currency": "xbt",
"amount": 3.46e-9
}
],
"futuresAccounts": [
{
"name": "f-xrp:usd",
"availableMargin": 16187.33210488726
},
{
"name": "f-eth:usd",
"availableMargin": 67.59768318324302
},
{
"name": "f-xbt:usd",
"availableMargin": -0.0009056832839642471
},
{
"name": "f-ltc:usd",
"availableMargin": 67.51126059691163
},
{
"name": "f-xrp:xbt",
"availableMargin": 2.34e-9
},
{
"name": "f-bch:usd",
"availableMargin": 47.151615710695495
}
],
"flexAccount": {
"currencies": [
{
"currency": "eth",
"quantity": 0.5,
"value": 1646.575,
"collateral": 1543.91104875,
"available": 0.49999966035931903
},
{
"currency": "usdt",
"quantity": 0,
"value": 0,
"collateral": 0,
"available": 0
},
{
"currency": "gbp",
"quantity": 0,
"value": 0,
"collateral": 0,
"available": 0
},
{
"currency": "xbt",
"quantity": 0,
"value": 0,
"collateral": 0,
"available": 0
},
{
"currency": "usdc",
"quantity": 0,
"value": 0,
"collateral": 0,
"available": 0
},
{
"currency": "usd",
"quantity": 0,
"value": 0,
"collateral": 0,
"available": 0
}
],
"initialMargin": 0,
"initialMarginWithOrders": 0,
"maintenanceMargin": 0,
"balanceValue": 1646.58,
"portfolioValue": 1646.58,
"collateralValue": 1543.91,
"pnl": 0,
"unrealizedFunding": 0,
"totalUnrealized": 0,
"totalUnrealizedAsMargin": 0,
"availableMargin": 1543.91,
"marginEquity": 1543.91
},
"fullName": "fullname redacted",
"email": "email redacted",
"accountUid": "7f5c528e-2285-45f0-95f5-83d53d4bfcd2"
}
]
}