Creating a Margin Account

Creates a new margin account for the authenticated user if one does not already exist. User must meet eligibility criteria to create a margin account. The margin account will be used to hold balances and positions specifically dedicated for margin trading.

Creating Your Margin Account

To create a margin account, use the Create margin account endpoint. Once created, your account will have an initial INACTIVE status that transitions to ACTIVE when you deposit funds.

The account provides:

  • Balances: List of currency balances held by your margin account
  • Margin Levels: Thresholds for safe trading operations and maintenance levels
  • Margin Figures: Financial metrics including total assets, liabilities, and available trading power

Available Currencies for Margin Trading

Before depositing funds, you should check which currencies are available for margin trading. The Get margin available currencies endpoint provides:

  • Currency Code: The identifier for the currency (e.g., btc, eth, usd)
  • Interest Rate: Hourly interest rate applied to borrowed amounts in that currency
  • Discount Factor: Used for collateral valuation to determine how much value each currency provides as collateral

This information helps you understand the cost of borrowing and the collateral value of different currencies in your margin account.

Moving Funds to Your Margin Account

After creating your margin account, you can move funds between your main balance and your margin account using the Funding your Margin Account process. This allows you to deposit funds to start trading or withdraw funds when you're done.

Account status changes as follows:

  • Starts as INACTIVE when created
  • Becomes ACTIVE when you make your first deposit
  • Can be BLOCKED during liquidation
  • Returns to INACTIVE when all funds are withdrawn