Skip to main content

Get wallets

GET 

/accounts

This endpoint returns key information relating to all your accounts which may either be cash accounts or margin accounts. This includes digital asset balances, instrument balances, margin requirements, margin trigger estimates and auxiliary information such as available funds, PnL of open positions and portfolio value.

Responses

Schema
    oneOf
    accounts objectrequired

    A structure containing structures with account-related information for all margin and cash accounts.

    cash objectrequired
    type stringrequired

    Possible values: [cashAccount]

    The type of the account (always "cashAccount").

    balances objectrequired

    A structure containing account balances.

    property name* decimal
    flex objectrequired

    Structure showing multi-collateral wallet details.

    type string

    Possible values: [multiCollateralMarginAccount]

    The type of the account (always multiCollateralMarginAccount)

    currencies objectrequired

    Structure with collateral currency details.

    property name* FlexCurrencySummary
    quantity numberrequired

    Quantity of asset.

    value numberrequired

    USD value of asset.

    collateral numberrequired

    USD value of the asset usable for margin (Asset Value * Haircut).

    available numberrequired

    Margin (in base currency) available for trading.

    initialMargin numberrequired

    Total initial margin held for open positions (USD).

    initialMarginWithOrders numberrequired

    Total initial margin held for open positions and open orders (USD).

    maintenanceMargin numberrequired

    Total maintenance margin held for open positions (USD).

    balanceValue numberrequired

    USD value of all collateral in multi-collateral wallet.

    portfolioValue numberrequired

    Balance value plus unrealised PnL in USD.

    collateralValue numberrequired

    USD value of balances in account usable for margin (Balance Value * Haircut).

    pnl numberrequired

    Unrealised PnL in USD.

    unrealizedFunding numberrequired

    Unrealised funding from funding rate (USD).

    totalUnrealized numberrequired

    Total USD value of unrealised funding and unrealised PnL.

    totalUnrealizedAsMargin numberrequired

    Unrealised pnl and unrealised funding that is usable as margin `[(Unrealised Profit/Loss

    • Unrealised Funding Rate) * Haircut - Conversion Fee]`.
    availableMargin numberrequired

    Margin Equity - Total Initial Margin.

    marginEquity numberrequired

    [Balance Value in USD * (1-Haircut)] + (Total Unrealised Profit/Loss as Margin in USD)

    portfolioMarginBreakdown object

    Breakdown of portfolio margin components.

    totalCrossAssetNettedMarketRisk doublerequired
    totalMarketRisk doublerequired
    totalScenarioPnls double[]
    totalAbsoluteOptionPositionDeltaNotional doublerequired
    netPortfolioDelta doublerequired
    totalPremium doublerequired
    isBuyOnly booleanrequired
    futuresMaintenanceMargin doublerequired
    property name* MarginAccount
    type stringrequired

    Possible values: [marginAccount]

    The type of the account (always "marginAccount").

    currency stringrequired

    The currency of the account. All figures shown in auxiliary and marginRequirements are in this currency.

    balances objectrequired

    A structure containing account balances.

    property name* decimal
    auxiliary objectrequired

    A structure containing auxiliary account information.

    usd numberrequired
    pv numberrequired

    The portfolio value of the account, in currency.

    pnl numberrequired

    The PnL of current open positions of the account, in currency.

    af numberrequired

    The available funds of the account, in currency.

    funding numberrequired
    marginRequirements objectrequired

    A structure containing the account's margin requirements.

    im numberrequired

    The initial margin requirement of the account.

    mm numberrequired

    The maintenance margin requirement of the account.

    lt numberrequired

    The liquidation threshold of the account.

    tt numberrequired

    The termination threshold of the account

    triggerEstimates objectrequired

    A structure containing the account's margin trigger estimates.

    im numberrequired

    The initial margin requirement of the account.

    mm numberrequired

    The maintenance margin requirement of the account.

    lt numberrequired

    The liquidation threshold of the account.

    tt numberrequired

    The termination threshold of the account

    result stringrequired

    Possible values: [success]

    serverTime date-timerequired

    Server time in Coordinated Universal Time (UTC)

Loading...