Pacifica
  • Getting Started
    • Closed Alpha Guide
      • Link To Guide PDF
    • Closed Alpha Trading Competition
  • Trading on Pacifica
    • Overview
    • Contract Specifications
      • Oracle Price & Mark Price
      • Settlement Mechanism
    • Order Types
      • Market Order
      • Limit Order
      • Order Rules & Constraints
    • Margin & Leverage
    • Funding Rates
    • Liquidations
  • API Documentation
    • API
      • REST
        • Account
        • Agent
        • Funding
        • Info
        • Kline
        • Orders
        • Portfolio
        • Positions
        • Models
      • Websocket
        • Orderbook
        • Trades
        • Orders
        • Positions
        • User Order History
        • User Trade History
        • Candle
        • Account Data
    • Specification
  • Other
    • Brand Assets
    • Contact Us
    • Glossary of Terms
Powered by GitBook
On this page
  • Self-Trade Prevention
  • Maximum Order Size
  • Example
  1. Trading on Pacifica
  2. Order Types

Order Rules & Constraints

Pacifica applies specific rules to maintain orderly and fair trading conditions.

Self-Trade Prevention

Pacifica prevents self-trading by automatically canceling resting orders that match against newly placed aggressive orders from the same account. This ensures fair and efficient market conditions.

Maximum Order Size

Your maximum order size is dynamically determined based on your available margin, leverage, and current positions. The calculation is:

max_order_size = order_from_balance + order_from_opposite
  • order_from_balance: Determined by your available margin and leverage.

  • order_from_opposite: Calculated based on existing opposite positions and outstanding orders, enabling you to close positions without exceeding margin limits.

Example

If you have an account balance of $10,000 with 10x leverage and BTC price at $100,000, your maximum long order size initially would be:

order_from_balance = ($10,000 * 10) / $100,000 = 1 BTC

With an open 1 BTC long position and fully utilized margin, you cannot place additional buy orders but can place sell orders to reduce your position:

order_from_balance = 1 BTC  
order_from_opposite = 1 BTC (existing long position) - 0 (existing short orders) - 0 (existing long orders) = 1 BTC

max_order_size = 1 BTC + 1 BTC = 2 BTC

Thus, you can place sell orders up to 2 BTC in size to close and/or reverse your position.

PreviousLimit OrderNextMargin & Leverage

Last updated 2 months ago