Get Margin Account Summary

Returns complete summary of the authenticated user's margin account including balances, status, and risk metrics.

Endpoint URL

GET https://api.bitso.com/margin_trading/v1alpha/account


Request

This endpoint requires no request parameters.


Response

Fields

FieldTypeDescription
statusstringCurrent status of the margin account. The status changes from INACTIVE to ACTIVE on deposit, to BLOCKED when the account is being liquidated, and back to INACTIVE when liquidation has ended or the user withdraws everything. Possible values: ACTIVE, INACTIVE, BLOCKED
balancesarrayList of currency balances held by the margin account
margin_levelsobjectMargin level thresholds information and current level
margin_figuresobjectMargin account financial figures including assets, liabilities and trading power

Balance Object

FieldTypeDescription
currencystringCurrency code
net_amountstringNet balance amount. Positive values represent net asset positions, negative values represent net liability positions

Margin Levels Object

FieldTypeDescription
currentstringCalculated margin level of the account ratio (total assets / total liabilities)
safestringSafe margin level threshold for the account, orders can be created when current is above this level
maintenancestringMaintenance margin level threshold for the account, liquidation is executed when current is below this level

Margin Figures Object

FieldTypeDescription
currencystringCurrency in which the figures are expressed
total_assetsstringSum of all assets converted to the specified currency
total_liabilitiesstringSum of all liabilities converted to the specified currency
trading_powerstringAvailable trading power in the specified currency. This is the maximum amount that can be used to place orders while borrowing funds

Payload Example

{
  "status": "ACTIVE",
  "margin_levels": {
    "current": "2.5",
    "safe": "1.5",
    "maintenance": "1.1"
  },
  "margin_figures": {
    "currency": "usd",
    "total_assets": "10000.00",
    "total_liabilities": "4000.00",
    "trading_power": "5000.00"
  },
  "balances": [
    {
      "currency": "btc",
      "net_amount": "0.50000000"
    },
    {
      "currency": "usd",
      "net_amount": "-1000.00"
    }
  ]
}