> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whitebit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Margin Trading

> Leveraged trading on spot pairs with up to 10x leverage using a collateral account on WhiteBIT.

Base URL

:

Leveraged trading on [spot pairs](https://docs.whitebit.com/concepts/markets.md) with up to 10x leverage using a collateral account. Margin Trading provides access to the same liquid spot markets (e.g., BTC\_USDT, ETH\_USDT) with amplified exposure through borrowed funds.

## Capabilities

* **Up to 10x leverage** — Adjustable per account via the [leverage endpoint](https://docs.whitebit.com/api-reference/trading/change-collateral-account-leverage.md)
* **Isolated Margin mode** — Limit risk to the margin allocated to a specific position, preventing cross-position liquidation cascades
* **6 order types** — Limit, Market, Stop-Limit, Trigger-Market, OCO, Bulk-Limit ([details](https://docs.whitebit.com/concepts/order-types.md))
* **Bulk orders** — Place up to 20 collateral limit orders in a single call ([endpoint](https://docs.whitebit.com/api-reference/trading/collateral-bulk-limit-order.md))
* **Position management** — Open, monitor, and close positions programmatically ([open positions](https://docs.whitebit.com/api-reference/trading/open-positions.md), [close](https://docs.whitebit.com/api-reference/trading/close-position.md))

> [!NOTE]
>
> **API naming convention:** WhiteBIT's API uses "collateral" endpoints for both
> Margin and Futures trading. The market pair determines the product:
> spot pairs (e.g., `BTC_USDT`) for Margin, perpetual pairs (e.g., `BTC_PERP`)
> for Futures. All endpoints under `/api/v4/order/collateral/` and
> `/api/v4/collateral-account/` serve both products.
> See [Compare Trading Products](https://docs.whitebit.com/products/compare-trading.md) for a full side-by-side comparison.

## Who Uses This

* **Hedge funds** — Hedging spot holdings or amplifying directional exposure with controlled risk
* **Prop trading firms** — Leveraged strategies on liquid spot pairs with isolated margin for risk containment
* **Experienced algo traders** — Programmatic margin management through the collateral account API

## Common Integration Patterns

**Hedging** — Open opposing margin positions to offset risk on existing spot holdings. For example, short BTC\_USDT on margin while holding BTC in a spot wallet. Use the [collateral account balance](https://docs.whitebit.com/api-reference/trading/collateral-account-balance.md) endpoint to monitor margin utilization.

**Leveraged directional trading** — Amplify exposure with controlled risk via isolated margin. Set leverage via the [leverage endpoint](https://docs.whitebit.com/api-reference/trading/change-collateral-account-leverage.md), place orders, and monitor positions through the [open positions endpoint](https://docs.whitebit.com/api-reference/trading/open-positions.md). The API returns a `liquidationPrice` field in position responses for risk monitoring.

## Risk Context

**Borrowed funds fee:** A commission is charged for using borrowed funds — only applied when an order is at least partially executed. Unexecuted orders incur no borrowing fee. See the [trading fees page](https://whitebit.com/trading-data/trading-fees) for the current rate. No public endpoint returns the rate itself; accrued cost per open borrow arrives as `unrealized_funding` on the [Borrows](https://docs.whitebit.com/websocket/account-streams/borrows.md) stream.

Liquidation can occur when the maintenance margin threshold is breached. The documented Maintenance Margin Rate is 3% for leverage 1x–10x, and partial liquidation closes part of the position before full liquidation.

Full mechanics — the maintenance margin schedule, leverage brackets, the liquidation sequence, and the `liquidationPrice` / `liquidationState` / `marginFraction` fields for risk monitoring: [Liquidation and margin requirements](https://docs.whitebit.com/concepts/liquidation.md).

> [!TIP]
>
> **WBT holder benefit:** Holding WBT (WhiteBIT Token) can reduce the maker commission by up to
> 100% on margin orders. See the [VIP program](https://whitebit.com/vip-program) for current tier details.

> [!NOTE]
>
> **Portfolio Margin** is available for institutional clients with a minimum 200,000 USDT collateral balance.
> Portfolio Margin provides up to 10x leverage with portfolio-level risk assessment.
> Contact [institutional@whitebit.com](mailto:institutional@whitebit.com) or see the
> [Institutional Overview](https://docs.whitebit.com/institutional/overview.md) for details.

## Technical Overview

| Detail | Value |
| - | - |
| Endpoints | 21 shared with Futures (all `POST`, all authenticated) |
| Authentication | HMAC-SHA512 ([guide](https://docs.whitebit.com/api-reference/authentication.md)) |
| Rate limits | Vary per endpoint ([details](https://docs.whitebit.com/api-reference/rate-limits.md)) |
| Pair format | Spot pairs: `BTC_USDT`, `ETH_USDT`, etc. |

Endpoint categories (shared with Futures Trading):

* **Account & Balance** — Balance, balance summary, account summary, leverage, hedge mode (6 endpoints)
* **Order Management** — Limit, bulk-limit, market, stop-limit, trigger-market, OCO, cancel (7 endpoints)
* **Order Queries** — Conditional orders, OCO orders (2 endpoints)
* **Position Management** — Open positions, ADL quantile (returns perpetual markets only), close position, position history, closed-position PNL, funding history (6 endpoints)

There is no collateral-specific modify endpoint. The shared [modify order](https://docs.whitebit.com/api-reference/trading/modify-order.md) endpoint covers collateral markets.

The pair name determines whether an order is Margin or Futures. Spot pairs (e.g., `BTC_USDT`) route to Margin. Perpetual pairs (e.g., `BTC_PERP`) route to Futures.

For full endpoint documentation, see the [Collateral Trading API Reference](https://docs.whitebit.com/api-reference/trading/collateral-overview.md).

For Go and PHP examples, see [SDKs](https://docs.whitebit.com/sdks.md).

## What's Next

> [card] [Margin & Futures Quickstart](https://docs.whitebit.com/products/margin-futures/quickstart.md)
>
> Open a first leveraged position in 5 minutes.

> [card] [Futures Trading](https://docs.whitebit.com/products/futures/overview.md)
>
> Compare with perpetual contracts — up to 100x leverage and Hedge Mode.

> [card] [API Reference](https://docs.whitebit.com/api-reference/trading/collateral-overview.md)
>
> Full endpoint documentation for all 21 collateral trading endpoints.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.