Cancellation Reasons

This page documents all order cancellation reasons returned by the Bluefin Pro API via WebSocket order updates.

User-Initiated Cancellations

  • USER_CANCELLED -- Explicitly canceled by the user
  • USER_CANCELLED_ALL_ON_MARKET -- Canceled as part of bulk cancellation for a
    symbol
  • USER_CANCELLED_ALL_STANDBY_ON_MARKET -- Conditional order canceled via bulk
    request

Margin & Balance Issues

  • INSUFFICIENT_MARGIN -- Order's margin requirement surpasses available margin
  • MARGIN_CALL -- Account margin ratio fell below maintenance threshold
  • INSUFFICIENT_BALANCE -- Account lacks deposited funds for the operation

Order Parameter Violations

  • INVALID_SYMBOL -- Trading pair doesn't exist
  • INVALID_LEVERAGE -- Leverage outside allowed market range
  • INVALID_INPUT -- Order parameters conflict with business rules
  • PRICE_OUT_OF_BOUND -- Price exceeds market limits
  • QUANTITY_OUT_OF_BOUND -- Quantity outside market range
  • PRICE_OUT_OF_TICK_SIZE -- Price not aligned with minimum increment
  • QUANTITY_OUT_OF_STEP_SIZE -- Quantity not aligned with minimum increment

Order Logic Violations

  • DUPLICATE_ORDER -- Order ID already submitted
  • POST_ONLY_WOULD_TRADE -- Post-only order would immediately match
  • REDUCE_ONLY_WOULD_OPEN -- Reduce-only order would increase position size
  • SELF_TRADE_PREVENTION -- Order would match against own existing order
  • SIGNED_AT_TOO_OLD -- Signature timestamp exceeds acceptable age

Market & Position Constraints

  • MARKET_NOT_TRADING -- Market halted or closed
  • TOO_MANY_OPEN_ORDERS_ON_MARKET -- Exceeds market's order limit
  • POSITION_EXCEEDS_MAX_OPEN_INTEREST -- Position would surpass notional limit
  • ORDERS_EXCEED_MAX_OPEN_INTEREST -- Aggregate open orders would surpass market's maximum open interest
  • INSUFFICIENT_LIQUIDITY -- IOC/FOK order lacks matching counterparties

Matching & Trading Issues

  • TOO_MANY_MATCHES -- Single order matched excessive maker orders
  • TRADE_QUANTITY_OUT_OF_BOUND -- Resulting trade falls below minimum size
  • MARKET_TAKE_BOUND_BREACHED -- Fill price deviates excessively from mark
    price

Time & Expiration

  • ORDER_EXPIRED -- Time-limited order reached expiration

Account & Liquidation

  • LEVERAGE_UPDATE -- Leverage modification triggered automatic cancellation
  • ACCOUNT_NOT_FOUND -- Referenced account doesn't exist
  • ACCOUNT_DEAUTHORIZED -- Trading authorization revoked
  • POSITION_NOT_FOUND -- Referenced position doesn't exist
  • LIQUIDATION_OUT_OF_ORDER -- Liquidation sequence error
  • ACCOUNT_NOT_LIQUIDATABLE -- Account margin recovered before liquidation
  • ORDER_NOT_REDUCING_POSITION -- Liquidation order fails to reduce position

Generic

  • UNSPECIFIED -- No more specific reason applicable