> ## 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.

# Collateral Trading

> Overview of collateral (margin) trading endpoints for managing positions, leverage, and collateral orders.

Collateral trading enables leveraged trading using margin. Manage the collateral account balance, place various order types (limit, market, stop-limit, OCO), query open orders, and manage positions.

For general API conventions (base URL, error format, rate limits), see the [API Reference Overview](/api-reference/overview).

***

## Account & Balance

<CardGroup cols={2}>
  <Card title="Collateral Account Balance" icon="wallet" href="/api-reference/trading/collateral-account-balance">
    Get collateral account balance
  </Card>

  <Card title="Collateral Account Balance Summary" icon="file-invoice-dollar" href="/api-reference/trading/collateral-account-balance-summary">
    Get collateral account balance summary
  </Card>

  <Card title="Collateral Account Summary" icon="chart-pie" href="/api-reference/trading/collateral-account-summary">
    Get complete collateral account summary
  </Card>

  <Card title="Change Collateral Account Leverage" icon="sliders" href="/api-reference/trading/change-collateral-account-leverage">
    Change account leverage
  </Card>

  <Card title="Collateral Account Hedge Mode" icon="shield" href="/api-reference/trading/collateral-account-hedge-mode">
    Get hedge mode status
  </Card>

  <Card title="Update Collateral Account Hedge Mode" icon="shield-halved" href="/api-reference/trading/update-collateral-account-hedge-mode">
    Update hedge mode settings
  </Card>
</CardGroup>

***

## Order Management

<CardGroup cols={2}>
  <Card title="Collateral Limit Order" icon="chart-line" href="/api-reference/trading/collateral-limit-order">
    Create a collateral limit order
  </Card>

  <Card title="Collateral Bulk Limit Order" icon="layer-group" href="/api-reference/trading/collateral-bulk-limit-order">
    Create multiple collateral limit orders
  </Card>

  <Card title="Collateral Market Order" icon="bolt" href="/api-reference/trading/collateral-market-order">
    Create a collateral market order
  </Card>

  <Card title="Collateral Stop-Limit Order" icon="stop" href="/api-reference/trading/collateral-stop-limit-order">
    Create a collateral stop-limit order
  </Card>

  <Card title="Collateral Trigger Market Order" icon="hand" href="/api-reference/trading/collateral-trigger-market-order">
    Create a collateral trigger market order
  </Card>

  <Card title="Create Collateral OCO Order" icon="code-branch" href="/api-reference/trading/create-collateral-oco-order">
    Create OCO (One-Cancels-Other) order
  </Card>

  <Card title="Cancel Conditional Order" icon="ban" href="/api-reference/trading/cancel-conditional-order">
    Cancel a conditional order
  </Card>
</CardGroup>

***

## Order Queries

Conditional and OCO queries are collateral-specific. Executed, canceled, unexecuted, and
trade-fill history are served by shared order-query endpoints that cover spot and futures
markets alike (documented under Trading → Order Queries).

<CardGroup cols={2}>
  <Card title="Query Unexecuted Conditional Orders" icon="list" href="/api-reference/trading/query-unexecuted-conditional-orders">
    Get active conditional orders
  </Card>

  <Card title="Query Unexecuted OCO Orders" icon="code-branch" href="/api-reference/trading/query-unexecuted-oco-orders">
    Get active OCO orders
  </Card>

  <Card title="Query Unexecuted Orders" icon="list-check" href="/api-reference/trading/query-unexecuted-orders">
    Open orders on spot and futures markets
  </Card>

  <Card title="Query Executed Orders" icon="clock-rotate-left" href="/api-reference/trading/query-executed-orders">
    Executed and canceled order history (spot and futures)
  </Card>

  <Card title="Query Executed Order History" icon="rectangle-history" href="/api-reference/trading/query-executed-order-history">
    Full execution history
  </Card>

  <Card title="Query Executed Order Deals" icon="receipt" href="/api-reference/trading/query-executed-order-deals">
    Individual trade fills for an executed order
  </Card>
</CardGroup>

***

## Position Management

<CardGroup cols={2}>
  <Card title="Open Positions" icon="arrows-left-right" href="/api-reference/trading/open-positions">
    Get all open positions
  </Card>

  <Card title="Close Position" icon="door-closed" href="/api-reference/trading/close-position">
    Close a specific position
  </Card>

  <Card title="Positions History" icon="clock-rotate-left" href="/api-reference/trading/positions-history">
    Get positions history
  </Card>

  <Card title="Closed-Position PNL" icon="sack-dollar" href="/api-reference/trading/closed-position-pnl">
    Get PNL per closed position
  </Card>

  <Card title="Funding History" icon="money-bill-transfer" href="/api-reference/trading/funding-history">
    Get funding history
  </Card>
</CardGroup>
